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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59f65dee1987d1ffb8d5f93352a0000381aea21efd5ec906d740d8fb2bef01d0
|
|
| MD5 |
c1b98e56076ccb24ecf86886088a5b03
|
|
| BLAKE2b-256 |
53fb73c32364b03c4a2b97d701757dd3906a8f99bb1f7a6425a2ac4895c4bcd0
|
File details
Details for the file csv_to_ascii_table-0.5.1-py3-none-any.whl.
File metadata
- Download URL: csv_to_ascii_table-0.5.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c98be4fd8ea1eb0bb4b20566ee58135c021baeaa7cc76506dbfe964e285ae04
|
|
| MD5 |
29ec58797d5f9f69b168be6e26f639ae
|
|
| BLAKE2b-256 |
6ecd50433569c11fafbbf7b15df72c0baea7ddce80656c5a53493c8c1fdb32a2
|