awrtifact — Aither World Artifact
Deliberately chunk artifacts into GitHub release assets and fetch them back
byte-verified. The productized aitherkvcache mirror lane: any artifact (model
weights, datasets, builds, backups) → .partN slices under GitHub's 2 GiB
per-asset cap → versioned release → served by a generated Cloudflare Worker
(CORS + HTTP Range + stitching) → fetched back with size and sha256 checks.
The loop
# 1. Split a local artifact into .partN slices + manifest.json
awrtifact split DeepSeek-V4-Flash.gguf --out parts/
# 2. What is missing from the release? (resumable — re-runs upload only gaps)
awrtifact plan parts/manifest.json --repo Aitherium/aitherkvcache --release fleet-v1
# 3. Upload the missing parts (size-checked before upload, --create makes the release)
awrtifact upload parts/manifest.json --repo Aitherium/aitherkvcache \
--release fleet-v1 --dir parts --parallel 8 --create
# 4. Prove the local parts match the manifest byte-for-byte
awrtifact verify parts/manifest.json --dir parts
# 5. Fetch it back anywhere (resume + size check + sha256 TOFU lockfile)
awrtifact fetch DeepSeek-V4-Flash.gguf --url https://weights.example.com/ \
--out /srv/models --expected 49999999999
# 6. Or let the spec drive everything: generate the serving worker from it
awrtifact serve-spec awrtifact.yaml --check # drift gate
awrtifact serve-spec awrtifact.yaml # write the generated worker
# 7. Bring the backup up deliberately (dispatch mirror runs for gaps)
awrtifact backup-catalog awrtifact.yaml --dry-run
Why the checks exist
- 2 GiB cap. GitHub release assets top out at 2 GiB; larger artifacts are
split at 1.9 GB. The worker stitches
.partNslices behind the original filename, so clients ask for the name, never the parts. - Size is the truncation detector. A short file is not a download error —
the loader reports a corrupt artifact. Every step verifies sizes; the
manifest's
totalis the number the client checks. - sha256 per part and whole. Split records both; verify proves each slice and that the slices stitch back into the original.
- Resume everywhere. Uploads skip present parts; fetches resume from the byte count on disk via Range.
Spec (the declarative store)
awrtifact.yaml names the store's repo, releases, allowlist and artifacts
(see awrtifact/spec.py for the full shape). The worker's data sections are
GENERATED from it — adding an artifact is a spec edit + regenerate, never a
worker code edit. serve-spec --check is the drift gate.
Install
pip install awrtifact # core (stdlib-only)
pip install 'awrtifact[spec]' # + spec commands (PyYAML)
Requires the gh CLI for plan/upload/backup commands (your existing auth).
License
Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file awrtifact-0.1.0.tar.gz.
File metadata
- Download URL: awrtifact-0.1.0.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dd88af0d54d648143aa9ee269c581e670a4af508381b93c61c3ad2e93efcb30
|
|
| MD5 |
71676583794624c428b5aa2f66228ee4
|
|
| BLAKE2b-256 |
138ad25d563fb9ddd4dd06d0386c5053b7924f08456022b4a62f6dc001217244
|
File details
Details for the file awrtifact-0.1.0-py3-none-any.whl.
File metadata
- Download URL: awrtifact-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b87d8c137bcafb76cf4cb849cfdf7fe85a56bf526c3f3d2eb548b514866d716a
|
|
| MD5 |
107f3ac7b76f6069f5237e0393b91d01
|
|
| BLAKE2b-256 |
1b2d32c0290c050fa00f73eeee26f10089dadf7fb4d0c04270ea796fd531591a
|