czv/czv-python
2024-06-19 22:55:19 -04:00
..
examples feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
src feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
tests feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
.gitignore feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
Cargo.toml feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
czv.pyi feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
pyproject.toml feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
README.md feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
requirements.txt feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00

czv-python

Python library for czv. czv is a library of utility functions for CSV-related data engineering and analysis tasks.

Installation and example

pip install czv
import czv

data = """fruits,price
apple,2.50
banana,3.00
strawberry,1.50"""

output = czv.row_count(data, False)

print(output)

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