Skip to main content

An asynchronous CSV to ASCII table converter

Project description

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

Project details


Download files

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

Source Distribution

csv_to_ascii_table-0.5.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

csv_to_ascii_table-0.5.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file csv_to_ascii_table-0.5.1.tar.gz.

File metadata

  • Download URL: csv_to_ascii_table-0.5.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for csv_to_ascii_table-0.5.1.tar.gz
Algorithm Hash digest
SHA256 59f65dee1987d1ffb8d5f93352a0000381aea21efd5ec906d740d8fb2bef01d0
MD5 c1b98e56076ccb24ecf86886088a5b03
BLAKE2b-256 53fb73c32364b03c4a2b97d701757dd3906a8f99bb1f7a6425a2ac4895c4bcd0

See more details on using hashes here.

File details

Details for the file csv_to_ascii_table-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for csv_to_ascii_table-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c98be4fd8ea1eb0bb4b20566ee58135c021baeaa7cc76506dbfe964e285ae04
MD5 29ec58797d5f9f69b168be6e26f639ae
BLAKE2b-256 6ecd50433569c11fafbbf7b15df72c0baea7ddce80656c5a53493c8c1fdb32a2

See more details on using hashes here.

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