Skip to main content

Build Status PyPI

sphinx-literalizer

sphinx-literalizer is a Sphinx extension for literalizer, which converts JSON, YAML, TOML, and JSON5 data structures to native language literal syntax (Python, TypeScript, Go, etc.).

Installation

Requires Python 3.12+.

pip install sphinx-literalizer

Usage

Add to your Sphinx conf.py:

extensions = [
    # ...
    "sphinx_literalizer",
]

Then use the literalizer directive in your .rst files:

.. literalizer:: path/to/data.json
   :language: python
   :wrap:

This reads the data file and renders its contents as a native Python literal in a code block. Input format is auto-detected from the file extension (.json, .yaml/.yml, .toml, .json5), or can be set explicitly with :input-format:.

Full documentation

See the full documentation for more information including how to contribute.

Metadata

Release files for sphinx-literalizer 2026.11.4.3

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

Source distribution (sdist)

Source distribution for sphinx-literalizer 2026.11.4.3
File Size Uploaded Provenance Actions
sphinx_literalizer-2026.11.4.3.tar.gz 254.3 kB With provenance Details for sphinx_literalizer-2026.11.4.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-literalizer 2026.11.4.3
File Interpreter ABI Platform Actions
sphinx_literalizer-2026.11.4.3-py3-none-any.whl Python 3 none any Details for sphinx_literalizer-2026.11.4.3-py3-none-any.whl

Total release size: 282.8 kB

Release files / sphinx_literalizer-2026.11.4.3.tar.gz

Download URL sphinx_literalizer-2026.11.4.3.tar.gz
Size 254.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7e4e035649f664a91f55441f37a4ec64491429df3703b9a9c9c03cefd88a18e8
BLAKE2b-256 checksum
How to use checksums
362a8f36e9845b89c5312d97d4abbfd1a5eec6b3dbd150a7fc6eba55ba3d0dd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Release files / sphinx_literalizer-2026.11.4.3-py3-none-any.whl

Download URL sphinx_literalizer-2026.11.4.3-py3-none-any.whl
Size 28.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20f4f5ddccbb50531bbc0dfc4d996d320e5ea81aefd2eb4ffe3d6e5f09181bfc
BLAKE2b-256 checksum
How to use checksums
9ef429392b664dfa0a90ba3054eea6264cb5aa0a61e15565ddea49e254826aa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Security for sphinx-literalizer 2026.11.4.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sphinx_literalizer-2026.11.4.3.tar.gz

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 Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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