A Python library for reading and processing CSV files with decimal precision
Project description
bitframe
A Python library for reading and processing CSV files with decimal precision.
- Github repository: https://github.com/evgnomon/bitframe/
- Documentation https://evgnomon.github.io/bitframe/
Installation
pip install bitframe
Or with uv:
uv add bitframe
Usage
from bitframe import read_csv
# Read a CSV file with decimal columns
df = read_csv("data.csv", decimal_cols=["Amount", "Price"])
Features
- Read CSV files with proper decimal handling using Python's
Decimaltype - Automatic whitespace trimming for both headers and values
- Support for thousands separators (underscore:
1_000) - Comment support (lines starting with
#) - Empty line handling
Development
This project uses uv for dependency management.
# Install dependencies
uv sync
# Run tests
uv run invoke test
# Run linting and type checks
uv run invoke check
# Build documentation
uv run invoke docs
License
MIT License - see LICENSE for details.
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
bitframe-0.0.1.tar.gz
(123.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bitframe-0.0.1.tar.gz.
File metadata
- Download URL: bitframe-0.0.1.tar.gz
- Upload date:
- Size: 123.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
091571ba59e1ff507affcca64f9c45682c5176c124ff01912a64b960e57e113b
|
|
| MD5 |
b1ffc8647ddb9d7d9d096908e0864244
|
|
| BLAKE2b-256 |
4fd7ec33f12aafea83464d42f7a9aa2fe1fbf4bfe7344055314a831d0e2030ae
|
File details
Details for the file bitframe-0.0.1-py3-none-any.whl.
File metadata
- Download URL: bitframe-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d0f1d6ebf83d470e95d0fdd248f4b5911f7e7486d13bdd00328869066ba4c86
|
|
| MD5 |
0f99252c0307fb25a314e49292331c74
|
|
| BLAKE2b-256 |
2753f253150a05f800a3430f8d45f052f712f0335f7342216da3be25e226712c
|