Skip to main content

YAMLStar JSON Comments Plugin

This repository builds the JSON comments event-source plugin for YAMLStar. The plugin accepts UTF-8 input through the YAMLStar shared-plugin ABI and returns YAMLStar parser events as EDN.

Version 0.1 supports Unix shared libraries. It deliberately has no installation or download side effects.

The build downloads the same released reference-parser artifact used by YAMLStar:

make build

Run the performance regression gate with:

make benchmark

This compares the plugin with the reference parser on a generated 240 KiB document and checks sanitizer scaling from 256 KiB to 1 MiB.

Select the resulting library by adding its directory to the search path:

YAMLSTAR_LIBRARY_PATH=$PWD/lib yaml --plugin=json-comments

The plugin recognizes // line comments and /* ... */ block comments. A comment can directly follow JSON literals and numbers. A comment after any other plain scalar requires separating whitespace.

Binary Releases

Experimental releases provide native shared libraries for Linux and macOS on x86-64 and ARM64. Linux release libraries require glibc 2.28 or newer. The initial macOS artifacts are not Developer ID signed or notarized.

The release archives use the same platform names as YAMLStar:

yamlstar-plugin-json-comments-VERSION-linux-x64.tar.xz
yamlstar-plugin-json-comments-VERSION-linux-aarch64.tar.xz
yamlstar-plugin-json-comments-VERSION-macos-x64.tar.xz
yamlstar-plugin-json-comments-VERSION-macos-arm64.tar.xz

Install the library for the current user by copying it from the unpacked archive:

install -d "$HOME/.local/lib"
install -m 755 \
  lib/libyamlstar-plugin-json-comments.so \
  "$HOME/.local/lib/"

Use the .dylib filename on macOS.

Python Wheels

Install the plugin for the YAMLStar Python binding with:

pip install yamlstar-plugin-json-comments

The package registers the plugin through the yamlstar.plugins entry-point group. YAMLStar bindings that support this entry point find the installed shared library automatically when json-comments is selected. The package also exposes library_path() and library_dir() from the yamlstar_plugin_json_comments module.

Only platform wheels are published because installing from an sdist would require compiling the native plugin locally.

Maintainers build and validate a release archive with:

make wheel VERSION=0.1.1

On Linux this runs the final shared-library build and archive checks in the pinned manylinux container, so Docker must be available. On macOS it builds natively and uses GNU tar as gtar. The wheel wraps the library from that validated archive.

List the complete release process with:

make release-list

Publish an already-versioned first release with:

make release v=0.1.0

For subsequent releases, provide the old and new versions:

make release o=0.1.1 v=0.1.2

The interactive command checks the version and working tree, updates the version files when needed, commits and tags the release, publishes the branch and tag, then dispatches and watches the GitHub release workflow. The workflow publishes the native archives and wheels to GitHub, then publishes the wheels to PyPI. PyPI trusted publishing must authorize the release.yaml workflow in the pypi GitHub environment for the yamlstar/yamlstar-plugin-json-comments repository. Use d=1 to preview the release without changing anything. Use a=1 to allow the full release command to run from a branch other than main. Retry a failed release workflow with:

make release-retry v=0.1.2

Before GitHub assets exist, retry updates the release tag and starts a new workflow run. After assets exist, it reruns the failed jobs so a failed PyPI publication can resume without rebuilding or replacing immutable files.

The GitHub release workflow requires an existing plain version tag such as 0.1.0. It does not download, build, or test YAMLStar.

Metadata

Release files for yamlstar-plugin-json-comments 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for yamlstar-plugin-json-comments 0.1.4
File
yamlstar_plugin_json_comments-0.1.4-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details
yamlstar_plugin_json_comments-0.1.4-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details
yamlstar_plugin_json_comments-0.1.4-py3-none-macosx_15_0_x86_64.whl Python 3 none macOS 15.0+ x86-64 Details
yamlstar_plugin_json_comments-0.1.4-py3-none-macosx_14_0_arm64.whl Python 3 none macOS 14.0+ ARM64 Details

Total release size: 30.9 MB

Release files / yamlstar_plugin_json_comments-0.1.4-py3-none-manylinux_2_28_x86_64.whl

Download URL yamlstar_plugin_json_comments-0.1.4-py3-none-manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7b1f5069076184881cf8ae722263adf87e40e81821c7b8f585137c0128d0a337
BLAKE2b-256 checksum
How to use checksums
461ea9d1d6d4e51cfa6d95e752730c5575258833662881ea8d62ec9bef5a68b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / yamlstar_plugin_json_comments-0.1.4-py3-none-manylinux_2_28_aarch64.whl

Download URL yamlstar_plugin_json_comments-0.1.4-py3-none-manylinux_2_28_aarch64.whl
Size 7.3 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
8df00cf5c6d3295cd2c6fbd5bba90bb17d8ac49fb98f48c88fefef37b46a5520
BLAKE2b-256 checksum
How to use checksums
2f86cd9e296619784bba72990169650a554f69e67b6fd611acc118d23052ac6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / yamlstar_plugin_json_comments-0.1.4-py3-none-macosx_15_0_x86_64.whl

Download URL yamlstar_plugin_json_comments-0.1.4-py3-none-macosx_15_0_x86_64.whl
Size 8.0 MB
Tags Python 3 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
a31e504d79e187be7f878ce85b77886c9657b503f4fa78cdf17d38a304c29371
BLAKE2b-256 checksum
How to use checksums
32e24fe6a13e9e2d663d62f8a03a606f739a7e5875c0e75a90564d4132c2aa07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / yamlstar_plugin_json_comments-0.1.4-py3-none-macosx_14_0_arm64.whl

Download URL yamlstar_plugin_json_comments-0.1.4-py3-none-macosx_14_0_arm64.whl
Size 7.2 MB
Tags Python 3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
743d0fd86e70067ea85502edf258a4cc85697a198889a1ec05a2614138dd8397
BLAKE2b-256 checksum
How to use checksums
54e2488e698296af64642c745853e776edd29faa15636562f80a3cb9bca095e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.9

4 release files

0.1.8

4 release files

0.1.7

4 release files

0.1.6

4 release files

0.1.5

4 release files

This release

0.1.4 This release

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page