czv/czv-python
dependabot[bot] f41e1a5d97
build(deps): bump pyo3 from 0.21.2 to 0.24.1
Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.21.2 to 0.24.1.
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/v0.24.1/CHANGELOG.md)
- [Commits](https://github.com/pyo3/pyo3/compare/v0.21.2...v0.24.1)

---
updated-dependencies:
- dependency-name: pyo3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-02 13:23:37 +00:00
..
examples docs: show types in Python examples 2024-06-20 16:49:20 -04:00
src refactor: improve error-handling, fix lints, & update criterion 2024-06-20 23:18:38 -04:00
tests test(python): rename tests & add column count test 2024-06-25 21:19:24 -04:00
.gitignore feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
Cargo.toml build(deps): bump pyo3 from 0.21.2 to 0.24.1 2025-04-02 13:23:37 +00:00
czv.pyi docs: add link to https://docs.rs/czv 2024-06-20 23:38:46 -04:00
pyproject.toml feat: add czv, czv-wasm, and czv-python (init release) 2024-06-19 22:55:19 -04:00
README.md docs: add link to https://docs.rs/czv 2024-06-20 23:38:46 -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

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

Publishing

To publish to pypi.org run:

maturin publish