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

Uploaded Python 3

File details

Details for the file toRST-0.1.51-py3-none-any.whl.

File metadata

  • Download URL: toRST-0.1.51-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for toRST-0.1.51-py3-none-any.whl
Algorithm Hash digest
SHA256 a72b748e8524d5f053fdc7c540c26bc649d2e878bd665c931963368fbcae5670
MD5 72f940468b310b5b8a6f0197eb6df24f
BLAKE2b-256 920fab3287bf6ba34cbf985549106578bde15009e497ad484d3f45141849b19a

See more details on using hashes here.

Supported by

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