Skip to main content

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] and dict[str, list] into RST by passing the object into the Table class

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

toRST-0.1.51-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

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