Gridline Python SDK
Submit one YAML workload through Gridline's authenticated API. The Python client stages files referenced by YAML, returns a route for review, then launches only that exact fresh plan when you supply a cost ceiling and idempotency key.
Install
python -m pip install gridlinegpu
Create a scoped token using the Gridline CLI after browser sign-in. The token stays in a private file; do not paste it into source code or an AI chat.
gridline --profile production auth login --apply
gridline --profile production auth token create --name python-workloads --scopes read,routing:write --output-file "$HOME/.config/gridline/python-token" --apply
export GRIDLINE_API_TOKEN_FILE="$HOME/.config/gridline/python-token"
Use a YAML file beside its referenced inputs. Task, model, engine, providers, output, budget, and deadline belong in YAML rather than Python arguments. Current hosted artifact limits are 40 MiB per local input and 8 MiB per output.
from gridlinegpu import GridlineClient
client = GridlineClient()
plan = client.plan("workload.yaml")
print(plan.review) # Check selected GPU, exclusions, estimate, and maximum.
# Launch only after reviewing the fresh plan and accepting its maximum spend.
launch = client.launch(plan, max_cost_usd="5.00", idempotency_key="my-job-2026-09-27")
job_id = launch["jobId"]
print(client.wait(job_id, timeout=7200)["job"]["outcome"])
print(client.outputs(job_id, "results"))
plan() stages input bytes but does not allocate a GPU. launch() never silently
changes a plan or retries an ambiguous paid request. If launch outcome is unknown,
inspect LaunchOutcomeUnknown.workload_id with the same idempotency key; do not use a
new key. outputs() verifies byte count and SHA-256 before creating private files.
Cancellation requests stop; cleanup and final provider billing can remain pending.
Metadata
Release files for gridlinegpu 0.1.0
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 | |
|---|---|---|---|---|
| gridlinegpu-0.1.0.tar.gz | 10.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gridlinegpu-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.7 kB
Release files / gridlinegpu-0.1.0.tar.gz
| Download URL | gridlinegpu-0.1.0.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f8685d3c5d4af64faf71da51e3b5aba7cb4f6469fc6b356a4946e7a6c095320
|
|
BLAKE2b-256 checksum How to use checksums |
693426f40561c894c502aa7e91ba80505e4b223664d9030b4d67d9ff76857595
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logRelease files / gridlinegpu-0.1.0-py3-none-any.whl
| Download URL | gridlinegpu-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e134164221be59043d36768bd47f9232311b20b010614d9732c0e977a6f5ae8
|
|
BLAKE2b-256 checksum How to use checksums |
eda4a328b7b71c6d6313ab61f02b03e976c04c0b4bbe985dfa862c48fafc8a4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logSecurity for gridlinegpu 0.1.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for gridlinegpu-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logA 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.