Skip to main content

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

  • simplejson>=3.16.0

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

Metadata

Release files for ctodd-python-lib-csv 1.0.2

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

Source distribution (sdist)

Source distribution for ctodd-python-lib-csv 1.0.2
File Size Uploaded
ctodd-python-lib-csv-1.0.2.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ctodd-python-lib-csv 1.0.2
File Interpreter ABI Platform
ctodd_python_lib_csv-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / ctodd-python-lib-csv-1.0.2.tar.gz

Download URL ctodd-python-lib-csv-1.0.2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
33f8567aa3c872a680bebde53e7bae2e47b581de2c59f00de1ea3ba9e21dc992
BLAKE2b-256 checksum
How to use checksums
7329ee28627f772048ad6a14b6bc2360fce8fc0496855a97d53f0906ff38c1cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

Release files / ctodd_python_lib_csv-1.0.2-py3-none-any.whl

Download URL ctodd_python_lib_csv-1.0.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
defe6a749dd5c4eb8d8c3d2b50c1b70c78c65c7e5e00b31d73488352823d7c8e
BLAKE2b-256 checksum
How to use checksums
1b1421071778f465f0642f930305548dbbb44eae3a92357c19e8b6792071a6ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.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