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 details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for sphinx-csv-filter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b9ce20583ee1cd806608d5e999d55b164f0fc81e0b7e53bdacbe90e95beb368b
MD5 01c1b3ae4c62e494dbf83267c60a1e15
BLAKE2b-256 ae870d72ea7abd0c504405e76bee4ef0834926b623342760f7c3cbaa72049734

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