Skip to main content

Binary Table File - efficient binary file format to store and retrieve tabular data

Project description

Binary Table File format

Binary Table File - efficient binary file format to store and retrieve tabular data

This library is written in Cython for speed efficiency.

  • is basically a typed CSV, but binary and indexed, supporting only a subset of the types: int, float, bool, Decimal.
  • The table is backed by a file on disk, and is NOT memory-mapped. This class just interfaces the reading/writing of the file through a list interface.
  • All the data is indexed and can be accessed as the list of records, where each record is a tuple of values.
  • It's main purpose are big files that don't fit into memory, or the files that are read partially. Ex. a few records from the middle of the file.
  • It can efficiently slice through the file and read just last N records, or just the first N records.
  • The footprint of the file is quite small as the data is binary encoded.
  • It can be used with a seek-able compression format without losing efficiency on indexing, like idzip

Installation

pip install bintablefile

The library can be found on PyPi: https://pypi.org/project/bintablefile/

Note: We release directly v2.0 as v1.0 was used just internally and was not released to PyPI. The major improvement of V2 is a full-featured header, that allows to store metadata about the table, as well as store the number of records for ReadOnly compression formats like idzip.

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

bintablefile-2.2.4.tar.gz (224.4 kB view details)

Uploaded Source

File details

Details for the file bintablefile-2.2.4.tar.gz.

File metadata

  • Download URL: bintablefile-2.2.4.tar.gz
  • Upload date:
  • Size: 224.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for bintablefile-2.2.4.tar.gz
Algorithm Hash digest
SHA256 56b3acecedba50eb91c80157139ae1233391890c9d61a2b94ad3da8f818ae0db
MD5 33ac17d268ec243149a031c268182a5e
BLAKE2b-256 f33a28cee4a2efd57f129c651921cca049f3f1307495e6e6ceb82be7760e7b4e

See more details on using hashes here.

Supported by

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