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
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.
Python Usage
example
Import Table class
from toRST.toRST import Table
Convert file1.csv into RST string
rst_table = Table('file1.csv').build_table()
Can also convert list[list or tuple or dict]
into RST by passing the object into the Table
class
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.1.0.tar.gz
(6.8 kB
view hashes)
Built Distribution
toRST-0.1.0-py3-none-any.whl
(7.3 kB
view hashes)