Python library for performing CSV-related functions for data engineering and analysis.
Project description
czv-python
Python library for czv. czv is a library of CSV-related operations for data engineering and analysis tasks.
Links
- czv GitHub repository: https://github.com/rzmk/czv
- Rust: crates.io/crates/czv (source code)
- WebAssembly (JavaScript/TypeScript): npmjs.com/package/czv (source code)
- Python: pypi.org/project/czv (source code)
Installation and example
To install czv
, run:
pip install czv
Or use uv pip
instead of pip
.
Let's say we want to print the total number of rows in a 4x3 CSV file fruits.csv
including the header row:
import czv
output = czv.row_count(file_path="fruits.csv", include_header_row=True)
print(output) # 4
Development
You'll need to have maturin and uv installed. Set up a local virtual environment in the czv-python
folder by running:
uv venv
Make sure to activate the virtual environment (instructions should be provided in your terminal after running the previous command).
Once you've activated the virtual environment, install dependencies by running:
uv pip install -r requirements.txt
Build package in local environment
maturin develop --uv --release
Run tests
pytest
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 czv-0.0.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4d49f566fe58032fb37e626187241171b2a608a2a50aabf7c7aa6c0a06cf15c |
|
MD5 | fcc807ca17fac2550bcbffa17482a41e |
|
BLAKE2b-256 | fff75d99331840152911eee50c6ab8e43db661d0b8405fdb50c3bc08a5e8aa87 |