Command line tool for converting CSV and JSON files into reStructuredText Tables.
Project description
=====
toRST
Convert various data formats to reStructuredText tables.
Currently supports:
- CSV
- JSON
Planned formats:
- Excel
installation
pip install toRST
CLI Usage
example
Convert file1.csv and file2.json into RST
torst file1.csv file2.json -o ./outputfolder
Python Usage
example
Import Table class
from toRST.toRST import Table
Convert file1.csv into RST string
rst_table = Table('file1').build_table()
Positional Arguments:
inputs One or more input files to convert to RST. Currently only CSV and JSON files are supported, but additional formats will be added.
Optional Arguments:
-o, --output_dir Output directory for generated RST files. Defaults to the current working directory if not provided.
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
toRST-0.0.5.tar.gz
(6.3 kB
view hashes)
Built Distribution
toRST-0.0.5-py3-none-any.whl
(7.0 kB
view hashes)