Skip to main content

Cython-based implementation of the Barecat archive format.

Project description

Barecat-Cython

A partial Cython/C implementation of the Barecat storage file format.

Install with:

pip install barecat-cython

Usage

The classes BarecatCython and BarecatMmapCython are similar to barecat.Barecat but do not support writing and advanced functions such as listing directories and globbing, etc. Only retrieving file data based on a given key string (inner filepath) is supported.

The difference between the two classes in barecat_cython`` is that BarecatCythonuses file handles and seek/read to access shard files, whileBarecatMmapCython` uses memory mapping. Depending on computer and filesystem properties, one or the other may be faster, though the difference is not large in my experience.

from barecat_cython import BarecatCython, BarecatMmapCython

with BarecatCython('example.barecat') as bc:
    ...

with BarecatMmapCython('example.barecat') as bc:
    ...

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

barecat_cython-0.0.2.tar.gz (37.6 kB view details)

Uploaded Source

File details

Details for the file barecat_cython-0.0.2.tar.gz.

File metadata

  • Download URL: barecat_cython-0.0.2.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for barecat_cython-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f11b9038c85cd05056ccedccd998fe143702d741b0dfe67acd8cc98c7129424b
MD5 cda7b850ef1b6a6d28ef96f14f0c41e5
BLAKE2b-256 e04c0ea8a8b5b4fcfaa1d2c1891c586e3e1c5fb03501e08d217813b842d67f37

See more details on using hashes here.

Provenance

The following attestation bundles were made for barecat_cython-0.0.2.tar.gz:

Publisher: python-publish.yml on isarandi/barecat-cython

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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