Skip to main content

sphinxcontrib-datatemplates

This package contains sphinxcontrb.datatemplates, an extension for Sphinx to render parts of reStructuredText pages from data files in formats like JSON, YAML, and CSV.

Sample YAML Input

---
key1: value1
key2:
  - list item 1
  - list item 2
  - list item 3
nested-list:
  - ['a', 'b', 'c']
  - ['A', 'B', 'C']
mapping-series:
  - cola: a
    colb: b
    colc: c
  - cola: A
    colb: B
    colc: C

Sample Template

.. -*- mode: rst -*-

Individual Item
~~~~~~~~~~~~~~~

{{ data['key1'] }}

List of Items
~~~~~~~~~~~~~

{% for item in data['key2'] %}
- {{item}}
{% endfor %}

Nested List Table
~~~~~~~~~~~~~~~~~

Rendering a table from a list of nested sequences using hard-coded
headers.

{{ make_list_table(
    ['One', 'Two', 'Three'],
    data['nested-list'],
    title='Table from nested lists',
    ) }}

Mapping Series Table
~~~~~~~~~~~~~~~~~~~~

Rendering a table from a list of nested dictionaries using dynamic
headers.

{{ make_list_table_from_mappings(
    [('One', 'cola'), ('Two', 'colb'), ('Three', 'colc')],
    data['mapping-series'],
    title='Table from series of mappings',
    ) }}

Rendered Output

See the sphinx output online.

Metadata

Release files for sphinxcontrib.datatemplates 0.9.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 sphinxcontrib.datatemplates 0.9.0
File Size Uploaded Provenance Actions
sphinxcontrib.datatemplates-0.9.0.tar.gz 27.9 kB Without provenance Details for sphinxcontrib.datatemplates-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinxcontrib.datatemplates 0.9.0
File Interpreter ABI Platform Actions
sphinxcontrib.datatemplates-0.9.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for sphinxcontrib.datatemplates-0.9.0-py2.py3-none-any.whl

Total release size: 41.6 kB

Release files / sphinxcontrib.datatemplates-0.9.0.tar.gz

Download URL sphinxcontrib.datatemplates-0.9.0.tar.gz
Size 27.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5003d7b8b0dc1f77ef9c368ee3e95c365fefc16d31ae8da2e1d8822733dafd30
BLAKE2b-256 checksum
How to use checksums
1f0a449a453ac93eaa6144b660d7315132151e955e2f49b2084a866c3b602c0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / sphinxcontrib.datatemplates-0.9.0-py2.py3-none-any.whl

Download URL sphinxcontrib.datatemplates-0.9.0-py2.py3-none-any.whl
Size 13.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
794d38f0ced9d0a79bde8041121a5da3823dd6e705ae7ed7f01bf6024a69a318
BLAKE2b-256 checksum
How to use checksums
5e5fa9663a39c79ab922d55dc0d11e913ec7588db70fbe1f61625aaffc76be25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Security for sphinxcontrib.datatemplates 0.9.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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