Add your description here
Project description
itar
Minimal example
echo Hello world! > bar.txt
tar cf foo-0.tar bar.txt # create regular tar file(s) with zero-padded shard number
itar create foo.itar # create the index
itar ls foo.itar # (optional) view the contents of the index
Now you can open and efficiently access the archived files in python in constant time
from itar import ShardedIndexedTar
with ShardedIndexedTar.open("foo.itar") as itar:
f = itar.file("bar.txt") # file-like object
assert f.read().decode("utf-8") == "Hello world!\n"
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
itar-0.1.0.tar.gz
(5.3 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
itar-0.1.0-py3-none-any.whl
(6.9 kB
view details)
File details
Details for the file itar-0.1.0.tar.gz.
File metadata
- Download URL: itar-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9f68b848d8c93c30196760789fec64634da0b176dd8b076428b22a9186cdd7b
|
|
| MD5 |
a05aa78b6fa7d6c3a73001b14686d1c5
|
|
| BLAKE2b-256 |
8d397211efef6bbcd3f0f69e5d293ff4185c1ee3fcaf50242dffd6ca7a738f55
|
File details
Details for the file itar-0.1.0-py3-none-any.whl.
File metadata
- Download URL: itar-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19d62b9b2d135792798170d91e42956ad25fb5603eafe836f43aeacd07e6123a
|
|
| MD5 |
abc6b824d207a2eecb4114d87430b70b
|
|
| BLAKE2b-256 |
b75cd57f538802c3021cee4023de53ce83621a44218e479172c8a86a578d99f7
|