Python utilities used for interacting with .csv files
Project description
Christopher H. Todd's Python Lib for CSV Files
The ctodd-python-lib-csv project is responsible for interacting with .csv files and .csv formatted data. This includes converting to and from .csv format, reading .csv files, writing .csv files, and other general CSV related tasks.
Table of Contents
Dependencies
Python Packages
Libraries
csv_general_helpers.py
CSV General Helpers. This library is used to interact with .csv files not specificlly related to reading or writing them.
Functions:
def convert_csv_file_to_json_file(csv_filename, json_filename=None, seperator=","):
"""
Purpose:
Convert .csv File to .json
Args:
csv_filename (String): .csv file to convert to .json
json_filename (String): filename for the resulting .json
seperator (String): String seperator of fields in the .csv
Return:
json_filename (String): filename for the resulting .json
"""
csv_reading_helpers.py
CSV Reading Helpers. This library is used to aid in reading with .csv files
Functions:
N/A
csv_writing_helpers.py
CSV Writing Helpers. This library is used to aid in writing with .csv files
Functions:
N/A
Example Scripts
Example executable Python scripts/modules for testing and interacting with the library. These show example use-cases for the libraries and can be used as templates for developing with the libraries or to use as one-off development efforts.
N/A
Notes
- Relies on f-string notation, which is limited to Python3.6. A refactor to remove these could allow for development with Python3.0.x through 3.5.x
TODO
- Unittest framework in place, but lacking tests
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
Hashes for ctodd-python-lib-csv-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b30bbde64d76f9807af86af5a1315a6a1fe419fe4a80e6d5a9389797fd290cb5 |
|
MD5 | 81cb5935aa9d8cdcedf4e97b2b14b9f0 |
|
BLAKE2b-256 | 0bea1e5ba1f284a6c3c208b774a9564e65102190900b1bd34d559e8700d77529 |
Hashes for ctodd_python_lib_csv-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c8bc6b418c100c53a117bd6ab5a042cfed8c115405663d954cf971e3060f3c1 |
|
MD5 | e89b7af716a74a3a2d3b7264ff81d427 |
|
BLAKE2b-256 | ec9e061f4eff9ecbe431663251002841bbb66e35ec4a7482b65084894a5163f9 |