czv/czv-python
rzmk e84c5bec8b
refactor: use options object for WASM function args, improve docs
- Add relevant links to all READMEs and source code
- Resolve clippy lints

czv:

- Add more docs for top-level items
- Add suggestion to use builder methods instead of functions
- Disable slice and slice tests until operation is complete

czv-wasm:

- Use tsify_next for allowing objects as parameters
- Add nodejs example and instructions
2024-06-20 16:28:53 -04:00
..
examples refactor: use czv in czv-python 2024-06-20 01:03:54 -04:00
src refactor: use czv in czv-python 2024-06-20 01:03:54 -04:00
tests refactor: use czv in czv-python 2024-06-20 01:03:54 -04:00
.gitignore feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
Cargo.toml refactor: use czv in czv-python 2024-06-20 01:03:54 -04:00
czv.pyi refactor: use options object for WASM function args, improve docs 2024-06-20 16:28:53 -04:00
pyproject.toml feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
README.md refactor: use options object for WASM function args, improve docs 2024-06-20 16:28:53 -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 CSV-related operations for data engineering and analysis tasks.

Installation and example

To install czv, run:

pip install czv

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