Skip to main content

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

sphinx-csv-filter-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

sphinx_csv_filter-0.1.1-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sphinx-csv-filter-0.1.1.tar.gz.

File metadata

File hashes

Hashes for sphinx-csv-filter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 27cc0c6443dfe2ec53f41139a75ea32deec5e7166493a0def846a4b81d411112
MD5 9e359ec006cd84c7b2e5a66acf494951
BLAKE2b-256 13a384f543d3264a56d8ec84258d80d23779860e5daf7e060e2e875851347d04

See more details on using hashes here.

File details

Details for the file sphinx_csv_filter-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_csv_filter-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0ea9226c7a7563432a1f0b0af4583691e9713d423d9196b0a1a361f90601611d
MD5 7b8bbc572771a784112e6a65dc7baf23
BLAKE2b-256 7fb3f07ace18e4e76d34df5d90cb5165327b1e34c56a1dbb10bab4a6b7cc6420

See more details on using hashes here.

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