Skip to main content

A Python library for reading and processing CSV files with decimal precision

Project description

bitframe

Release Build status License

A Python library for reading and processing CSV files with decimal precision.

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 Decimal type
  • 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitframe-0.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

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

Hashes for bitframe-0.0.1.tar.gz
Algorithm Hash digest
SHA256 091571ba59e1ff507affcca64f9c45682c5176c124ff01912a64b960e57e113b
MD5 b1ffc8647ddb9d7d9d096908e0864244
BLAKE2b-256 4fd7ec33f12aafea83464d42f7a9aa2fe1fbf4bfe7344055314a831d0e2030ae

See more details on using hashes here.

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

Hashes for bitframe-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d0f1d6ebf83d470e95d0fdd248f4b5911f7e7486d13bdd00328869066ba4c86
MD5 0f99252c0307fb25a314e49292331c74
BLAKE2b-256 2753f253150a05f800a3430f8d45f052f712f0335f7342216da3be25e226712c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page