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
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f11b9038c85cd05056ccedccd998fe143702d741b0dfe67acd8cc98c7129424b
|
|
| MD5 |
cda7b850ef1b6a6d28ef96f14f0c41e5
|
|
| BLAKE2b-256 |
e04c0ea8a8b5b4fcfaa1d2c1891c586e3e1c5fb03501e08d217813b842d67f37
|
Provenance
The following attestation bundles were made for barecat_cython-0.0.2.tar.gz:
Publisher:
python-publish.yml on isarandi/barecat-cython
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
barecat_cython-0.0.2.tar.gz -
Subject digest:
f11b9038c85cd05056ccedccd998fe143702d741b0dfe67acd8cc98c7129424b - Sigstore transparency entry: 215255960
- Sigstore integration time:
-
Permalink:
isarandi/barecat-cython@6e139c355aaa761ffe48f37aae280a9ae5052f50 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/isarandi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6e139c355aaa761ffe48f37aae280a9ae5052f50 -
Trigger Event:
release
-
Statement type: