Targon SDK
Build and deploy serverless Python on GPUs — in seconds, not hours.
| Install | Getting Started | Examples | Documentation |
About
Targon SDK is a Python framework for building and deploying serverless applications on the Targon platform. Define your app, decorate your functions, and deploy — the SDK handles containers, scaling, and infrastructure.
- Zero infrastructure — No containers to build, no clusters to manage
- GPU-first — H100, H200, and more. Request with
resource="h200-small" - Web endpoints —
@targon.fastapi_endpoint()turns functions into APIs - Scales to zero — Pay only when your code runs
- Custom images — Build containers in Python with
pip_install(),env(), and more
Stability: The Targon SDK follows semantic versioning. Breaking changes are only introduced in major releases.
Installation
Requires Python 3.9+
pip install targon-sdk
Install from source
git clone https://github.com/manifold-inc/targon-sdk.git
cd targon-sdk
pip install -e .
Getting Started
import targon
app = targon.App("hello-world", image=targon.Image.debian_slim())
@app.function(resource=targon.Compute.CPU_SMALL)
def greet(name: str) -> str:
return f"Hello, {name}!"
@app.local_entrypoint()
def main():
print(greet.remote("World"))
# Authenticate
targon setup
# Run remotely
targon run hello.py
# Deploy as a service
targon deploy hello.py
Contributing
We welcome contributions! Please see our contributing guidelines before submitting PRs.
- Fork the repository
- Create a feature branch
- Make your changes with tests
- Submit a pull request
Changelog
See CHANGELOG.md for release notes.
License
Apache 2.0 — see LICENSE for details.
Metadata
Release files for targon-sdk 1.0.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 | |
|---|---|---|---|
| targon_sdk-1.0.0.tar.gz | 81.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| targon_sdk-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 179.1 kB
Release files / targon_sdk-1.0.0.tar.gz
| Download URL | targon_sdk-1.0.0.tar.gz |
|---|---|
| Size | 81.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e482ddeb87a39c456c54cbaf7860128dfffbcf5026f1d244084f518c9c49d04
|
|
BLAKE2b-256 checksum How to use checksums |
8e74a9d698172d45c3c5b08038931cda02dae57c579dbd1eb8174ee2053fe041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 18, 2026.
Transparency logRelease files / targon_sdk-1.0.0-py3-none-any.whl
| Download URL | targon_sdk-1.0.0-py3-none-any.whl |
|---|---|
| Size | 97.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65502911281a415bb473b693bb346a96722d900ea23357d2bbc277fd69f039f4
|
|
BLAKE2b-256 checksum How to use checksums |
f048a10fdafa85248f02f088d72436570af36f968d956b982c6987092c113a4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 18, 2026.
Transparency log