iil-gpufw
Schmaler HTTP-Client des GPU-Lease-Arbiters (illustration-hub) — ADR-296 §4.5, Auftrag platform#2020.
Normative Quelle ist der HTTP-Vertrag, nicht dieses Paket:
illustration-hub/docs/api/gpu-lease-vertrag.md (v0). Strategie (Vorrang,
Karenz, Räum-Reihenfolge) bleibt serverseitig. Keine Laufzeit-Dependencies,
kein Django-Import; Config wird injiziert.
Nutzung
from gpufw import ArbiterConfig, interaktive_lease, batch_lease
config = ArbiterConfig.aus_env() # GPU_ARBITER_URL, GPU_ARBITER_TOKEN, CF_ACCESS_*
# Interaktiv: ein Mensch wartet — BELEGT heisst ehrlich abbrechen.
with interaktive_lease(config, verbraucher="mein-cli", zweck="render x") as zusage:
if not zusage.gewaehrt:
raise RuntimeError(zusage.als_fehlertext()) # traegt den belegt-Marker
arbeit()
# Batch: BELEGT heisst warten (Aufrufer-Sache); Verdraengung meldet sich
# ueber das Event — zwischen Arbeitsschritten pruefen und pausieren.
with batch_lease(config, verbraucher="text-batch", job_id="job-42") as zusage:
if not zusage.gewaehrt:
warte_und_versuche_spaeter(zusage.grund)
else:
for kapitel in arbeit_in_schritten():
if zusage.verdraengt.is_set():
pausieren() # interaktive Lane hat Vorrang
break
verarbeite(kapitel)
Client-Pflichten aus dem Vertrag (fail-open, kein Bezahl-Rückfall bei BELEGT,
immer freigeben, tolerant lesen) sind in gpufw.lease umgesetzt und getestet
(make test, Stub-Arbiter, kein Netz).
Grenzen (ehrlich)
- Fail-open heisst: ohne erreichbaren Arbiter läuft der Konsument ohne
Koordination weiter (
degradiert=True+ Log). Das ist Vertragsabsicht — kein Handgriff darf Render/Song/Text verhindern. GRANTEDist ein Absichts-Register, keine Karten-Wahrheit: Ollama-Einzelcalls sind lease-frei (§4.2 Nr. 7), VRAM kann trotzdem belegt sein.
Release
Über den etablierten /release-Weg (ADR-084-Muster). PyPI-Publish ist ein
eigener Freigabe-Schritt des Owners.
Metadata
Release files for iil-gpufw 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| iil_gpufw-0.1.1.tar.gz | 8.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iil_gpufw-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / iil_gpufw-0.1.1.tar.gz
| Download URL | iil_gpufw-0.1.1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0632f1bdf8647e52677620e52f069f689eb04920910045b6c12ac742d0bee5bd
|
|
BLAKE2b-256 checksum How to use checksums |
45df020bbdf4aae69072597255f7e4dfaa7ef6eca8f5cf7d8d5b81a1aef9f3cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / iil_gpufw-0.1.1-py3-none-any.whl
| Download URL | iil_gpufw-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f753bbcbe181fcf92e7a70f2eaee38312055eaeb6b2c34b95e08726bb22937c
|
|
BLAKE2b-256 checksum How to use checksums |
f697f911d506c20b8ae1bfe2d55675d19ad197428a0da6f8981d82ea0727bc4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for iil-gpufw 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.