itar
itar builds constant‑time indexes over one or more tar file shards, enabling direct, random access to members without extracting the archives. It ships a lightweight CLI (itar) and a Python API.
Designed for large datasets and deep‑learning pipelines, it supports single or sharded tar archives with thread‑safe access for concurrent reads.
Quickstart
pip install itar
Single tarball
echo "Hello world!" > hello.txt
tar cf hello.tar hello.txt # regular tarball
itar index create hello.itar # indexes hello.tar
itar index list hello.itar # list indexed members
import itar
with itar.open("hello.itar") as archive:
print(archive["hello.txt"].read())
Sharded tarballs
Give each shard a zero-padded suffix before building the index:
tar cf photos-0.tar wedding/ # shard 0
tar cf photos-1.tar vacation/ # shard 1
itar index create photos.itar # discovers photos-0.tar, photos-1.tar, ...
itar index list -l photos.itar # shard index, offsets, byte sizes
import itar
with itar.open("photos.itar") as photos:
assert "wedding/cake.jpg" in photos
img_bytes = photos["vacation/sunrise.jpg"].read()
Docs
Full CLI, API, and format details live in the documentation site.
Metadata
Release files for itar 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| itar-0.4.2.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| itar-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.8 kB
Release files / itar-0.4.2.tar.gz
| Download URL | itar-0.4.2.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e20450faa953e706a462e06725168dbcc4a48d6dc3b8dad92eb5ee05f65271a1
|
|
BLAKE2b-256 checksum How to use checksums |
a562bbc147142dd0ad1ec1dfb783c8b3faf4d6a1bf24e5a784734ac540af499b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / itar-0.4.2-py3-none-any.whl
| Download URL | itar-0.4.2-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f949f20d41c2292cf860355f518cad1e7ccaec1b6b6f77ead9d6035827552dba
|
|
BLAKE2b-256 checksum How to use checksums |
8ed87371b0410bcefa42110aea18afb610320c23159fa09ad2968d08a5789527
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|