1. pytablewriter

PyPI package version Supported Python versions Linux/macOS CI status Windows CI status Test coverage GitHub stars

1.1. Summary

pytablewriter is a Python library to write a table in various formats: CSV / Elasticsearch / HTML / JavaScript / JSON / LaTeX / LDJSON / LTSV / Markdown / MediaWiki / NumPy / Excel / Pandas / Python / reStructuredText / SQLite / TOML / TSV.

1.2. Features

  • Write a table in various formats:
  • Automatic tabular data formatting
    • Alignment
    • Padding
    • Decimal places of numbers
  • Configure cell styles:
    • Text alignment
    • Font size/weight
    • Thousand separator for numbers
  • Multibyte character support
  • Write table to a stream such as a file/standard-output/string-buffer/Jupyter-Notebook
  • Get rendered tabular text
  • ANSI color support