Sphinx CSV filter extension for Crate Documentation
Project description
This is a sphinx plugin that extends csv-table directive of the docutils text-processing system. It appends additional filter options which exclude rows of a given CSV table.
Features
[x] Filters rows of a referenced CSV table that contains a regex pattern at a given column index.
Installation
To include the extension add the following line to the config.py in your Sphinx-Project.
extensions = ['crate.sphinx.csv']
If you have other extensions use:
extensions.append('crate.sphinx.csv')
First Example
This example excludes all rows if the value of column Attend? (Idx: 3) matches the regex pattern.
.. csv-table:: Example Table :header: Company,Contact,Country,Attend? :file: example.csv :exclude: {3: '(?i)Y\w*'}
Options
:exclude:: Python dictionary that defines on which column indizes the regex pattern are applied.
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
Built Distribution
Hashes for sphinx_csv_filter-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ea9226c7a7563432a1f0b0af4583691e9713d423d9196b0a1a361f90601611d |
|
MD5 | 7b8bbc572771a784112e6a65dc7baf23 |
|
BLAKE2b-256 | 7fb3f07ace18e4e76d34df5d90cb5165327b1e34c56a1dbb10bab4a6b7cc6420 |