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.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

csv_to_ascii_table-0.5.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csv_to_ascii_table-0.5.0.tar.gz
  • Upload date:
  • Size: 3.9 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.0.tar.gz
Algorithm Hash digest
SHA256 fa3e4979678d424ff3fc21b096824de19fc364aff0bc1c7b97248eefc55a7a15
MD5 6616e150508697fb3c2285d5f73c155b
BLAKE2b-256 913201184392686d5721e6c6763038839016dac8268a4adc8f18444e66f692d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for csv_to_ascii_table-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3700cbeaf01b8262d7226e03bcd642f64d710f88f6226f4ce342e605bcb2d52e
MD5 c1b0eedc45d3c5a4748231f7964971e8
BLAKE2b-256 c8656a9bed1012bbcc95f89d6eb3f019441beceffe7a2735b2938158548233c4

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