Skip to main content

Sphinx directives for CSV-powered tabular authoring.

Project description

sphinx-tabular

Features

  • Sphinx extension.
  • Uses standard CSV file format.
  • Easily merge table cells with < and ^.
  • Support reStructuredText and Markdown.
  • Support for inline table data and external files.
  • Optional sticky header support for one or more header rows.
  • Provides a minimal set of spreadsheet formulas.
  • Set table cell alignment and per-cell alignment in both horizontal and vertical directions.
  • Set custom cell text and background colors.
  • Custom status pill.
  • Support for Font Awesome and Bootstrip icons if installed by your theme.

Installation

pip install sphinx-tabular

conf.py

extensions = [
    ...,
    'sphinx_tabular',
    ...,
]

Directives

RST, external file:

.. rcsv-table:: Title
    :file: table.rcsv

RST, inline data.

.. rcsv-table:: Title

    Col 1, Row 1
    Col 2, Row 2

MD, external file:

.. rcsv-table:: Title
    :file: table.rcsv

MD, inline data.

.. rcsv-table:: Title

    Col 1, Row 1
    Col 2, Row 2

Merging Cells

Columns

.. rcsv-table:: Title

    Merged,<
    Unmerged, Unmerged

Rows

.. rcsv-table:: Title

    Merged,Unmerged
    ^, Unmerged

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_tabular-0.1.0.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_tabular-0.1.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_tabular-0.1.0.tar.gz.

File metadata

  • Download URL: sphinx_tabular-0.1.0.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sphinx_tabular-0.1.0.tar.gz
Algorithm Hash digest
SHA256 56ef8d5116dc3cb10053b173f47384dd220dd276204aa4fdd07961a92d07b798
MD5 afc39b41fab3a951ee61741137e09900
BLAKE2b-256 9e570e2cde002a1c740b6ecae449e6a206cbec3c306f80096293932cd4779fe6

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_tabular-0.1.0.tar.gz:

Publisher: publish.yml on deepthinker2001/sphinx-tabular

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_tabular-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sphinx_tabular-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sphinx_tabular-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b46e508fe176a3562d93528e6e469c77fc1e7594303b03e600aa9a43744528a
MD5 92f71c354209698ead8a2737e6e9cf9f
BLAKE2b-256 789d037039ef4a03f0c50fd7d9c49e915da5f61b0edb0daa5cff9da065604f6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_tabular-0.1.0-py3-none-any.whl:

Publisher: publish.yml on deepthinker2001/sphinx-tabular

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page