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.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Supported by

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