Sphinx directives for CSV-powered tabular authoring.
Project description
sphinx-tabular
Donations to help support this project...
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
Markdown, external file:
.. rcsv-table:: Title
:file: table.rcsv
Markdown, 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
Additional Capabilities
See full documentation for additional capabilities:
Formatting
- Custom theming.
=ALIGN()horizontal/vertical cell value alignment.=BG()set the background cell color.=FG()set text color.=ICON()use a Font Awesome or Bootstrap icon, or a fallback.=STATUS()insert a colored status pill.
Spreadsheet
'interprest as literal text without evaluation.+,-,*,/arithmetic operations on cells.=C4cell references.=A4:B4cell ranges.=AVG()take the average.=CONCAT()concatenation of cell values.=COUNT()count number of numerical values.=IF()conditional evaluation.=MAX()find the maximum value.=MIN()find the minimum value.=ROUND()round the number to an int or the specified decimal places.=SUM()sum a set or range of values.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_tabular-0.1.7.tar.gz.
File metadata
- Download URL: sphinx_tabular-0.1.7.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e5357ead8af63917ed0bb24684850d67633190abc272542dc7fca6ac182edff
|
|
| MD5 |
9bd0f1bc09f4839e9335a0bc99d09dfe
|
|
| BLAKE2b-256 |
5ef94dcb8e5683e7fa8579db0a572e87b7b56ba09fdbccf10ac48096f4f4f8de
|
Provenance
The following attestation bundles were made for sphinx_tabular-0.1.7.tar.gz:
Publisher:
publish.yml on deepthinker2001/sphinx-tabular
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_tabular-0.1.7.tar.gz -
Subject digest:
8e5357ead8af63917ed0bb24684850d67633190abc272542dc7fca6ac182edff - Sigstore transparency entry: 2084771794
- Sigstore integration time:
-
Permalink:
deepthinker2001/sphinx-tabular@e622efd22fef0e17bf93b4b93a055d313c9589ad -
Branch / Tag:
refs/heads/main - Owner: https://github.com/deepthinker2001
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e622efd22fef0e17bf93b4b93a055d313c9589ad -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file sphinx_tabular-0.1.7-py3-none-any.whl.
File metadata
- Download URL: sphinx_tabular-0.1.7-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d016f7c9a8295c89879fa6dfc171bae7543bb78ef5a7cd11355183039bbac53
|
|
| MD5 |
9ede95b911f096061bfb217de068fab0
|
|
| BLAKE2b-256 |
9db736269c90f29e98d73f44564fa78bb9f7656ee3a70f9588b0f7bcb24ee499
|
Provenance
The following attestation bundles were made for sphinx_tabular-0.1.7-py3-none-any.whl:
Publisher:
publish.yml on deepthinker2001/sphinx-tabular
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_tabular-0.1.7-py3-none-any.whl -
Subject digest:
0d016f7c9a8295c89879fa6dfc171bae7543bb78ef5a7cd11355183039bbac53 - Sigstore transparency entry: 2084771807
- Sigstore integration time:
-
Permalink:
deepthinker2001/sphinx-tabular@e622efd22fef0e17bf93b4b93a055d313c9589ad -
Branch / Tag:
refs/heads/main - Owner: https://github.com/deepthinker2001
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e622efd22fef0e17bf93b4b93a055d313c9589ad -
Trigger Event:
workflow_dispatch
-
Statement type: