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.10.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sphinx_literalizer-2026.10.19.tar.gz | 216.9 kB | With provenance | Details for sphinx_literalizer-2026.10.19.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_literalizer-2026.10.19-py3-none-any.whl | Python 3 | none | any | Details for sphinx_literalizer-2026.10.19-py3-none-any.whl |
Total release size: 241.2 kB
Release files / sphinx_literalizer-2026.10.19.tar.gz
| Download URL | sphinx_literalizer-2026.10.19.tar.gz |
|---|---|
| Size | 216.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a40995df35a24671a9dbcd0bcd60f956ef987d6d7afca710c293c1971fa6060c
|
|
BLAKE2b-256 checksum How to use checksums |
785866c71e5d0056f95ea8b2e87ca4f0f69eb27ea4469367bd1c101a1ffd3210
|
| 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 Oct 19, 2026.
Transparency logRelease files / sphinx_literalizer-2026.10.19-py3-none-any.whl
| Download URL | sphinx_literalizer-2026.10.19-py3-none-any.whl |
|---|---|
| Size | 24.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1ffd08721c78f2bb2aad2f8c04feacf479e299f5659aa2312b09f887c4bd973
|
|
BLAKE2b-256 checksum How to use checksums |
41c696fa8a7fe6c7a64aa21d17f446a18d46c810e4d19b15eaf42a26a44cbe36
|
| 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 Oct 19, 2026.
Transparency logSecurity for sphinx-literalizer 2026.10.19
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.
Attestation for sphinx_literalizer-2026.10.19.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 Oct 19, 2026.
Transparency logA 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.