Skip to main content

CSV to ASCII Table Converter

This package provides an asynchronous CSV to ASCII table converter. It reads CSV files and outputs them as formatted ASCII tables.

Features

  • Asynchronous file I/O for improved performance with large files
  • Customizable column width and alignment
  • Option to limit the number of rows displayed
  • Support for output to file or console
  • Error handling for file operations and CSV parsing

Installation

You can install the package using pip: pip install csv-to-ascii-table

Usage

Here's a basic example of how to use the converter:

import asyncio
from csv_to_ascii_table import CSVToASCIITable

async def main():
    converter = CSVToASCIITable('path/to/your/file.csv', max_width=30, max_rows=100, align='<')
    await converter.run()

if __name__ == "__main__":
    asyncio.run(main())

Release files for csv-to-ascii-table 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csv-to-ascii-table 0.5.1
File Size Uploaded
csv_to_ascii_table-0.5.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for csv-to-ascii-table 0.5.1
File Interpreter ABI Platform
csv_to_ascii_table-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / csv_to_ascii_table-0.5.1.tar.gz

Download URL csv_to_ascii_table-0.5.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
59f65dee1987d1ffb8d5f93352a0000381aea21efd5ec906d740d8fb2bef01d0
BLAKE2b-256 checksum
How to use checksums
53fb73c32364b03c4a2b97d701757dd3906a8f99bb1f7a6425a2ac4895c4bcd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / csv_to_ascii_table-0.5.1-py3-none-any.whl

Download URL csv_to_ascii_table-0.5.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c98be4fd8ea1eb0bb4b20566ee58135c021baeaa7cc76506dbfe964e285ae04
BLAKE2b-256 checksum
How to use checksums
6ecd50433569c11fafbbf7b15df72c0baea7ddce80656c5a53493c8c1fdb32a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page