Skip to main content

nrdl

A pure-Python implementation of NRDL, the Nestable, Readable Document Language — a superset of JSON with comments, multi-line strings, and symbols. This package is a port of the reference implementation in Common Lisp, following the language specification and ABNF in the repository README.

Installation

pip install nrdl

Usage

import nrdl

# Deserialize an NRDL document into Python data.
doc = nrdl.parse_from("""
{
    the-wind "bullseye"
    the-trees false
    the-sparrows his-eye
}
""")
# -> {"the-wind": "bullseye", "the-trees": False, "the-sparrows": "his-eye"}

# Serialize Python data back to NRDL.
nrdl.generate_to(doc, pretty_indent=4)
# -> '{\n    the-sparrows "his-eye"\n    the-trees false\n    the-wind "bullseye"\n}'

# Emit a JSON document instead.
nrdl.generate_to(doc, json_mode=True)
# -> '{"the-sparrows": "his-eye", "the-trees": false, "the-wind": "bullseye"}'

Because Python has no symbol type, NRDL symbols deserialize to plain strings, and true/false/null deserialize to True/False/None. When serializing, dictionary keys are written as symbols while string values are written as quoted strings.

Full documentation is available on ReadTheDocs.

Metadata

Release files for nrdl 0.1.0

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

Source distribution (sdist)

Source distribution for nrdl 0.1.0
File Size Uploaded
nrdl-0.1.0.tar.gz 15.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nrdl 0.1.0
File Interpreter ABI Platform
nrdl-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 kB

Release files / nrdl-0.1.0.tar.gz

Download URL nrdl-0.1.0.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5ad98d9783c8b833f027e86663a280322fd24d6b0f8e082bba613b15412127a3
BLAKE2b-256 checksum
How to use checksums
04d5db1a72fa9ab074ec1651f22adcfb265b91c639c79ef62df2be59bde1adff
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 Aug 18, 2026.

Transparency log

Release files / nrdl-0.1.0-py3-none-any.whl

Download URL nrdl-0.1.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c9547d80676c9d060bf3bfa5d18de5b678abaf3ec57e9310329be7f35209afe
BLAKE2b-256 checksum
How to use checksums
c34742ee4015b300303241c27e045885c0b8fa1d037502f9d986fb51f02027e3
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 Aug 18, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 This release

2 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