Targon SDK to interact with Targon rentals and serverless
Project description
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.
Project details
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 targon_sdk-0.4.0.tar.gz.
File metadata
- Download URL: targon_sdk-0.4.0.tar.gz
- Upload date:
- Size: 77.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42ba993d6d979d5baf91217985fa850a54c389bfd8ab7efe12e73bcba18dd5ba
|
|
| MD5 |
d8242507d7a80d1b4ea64b3c32eed659
|
|
| BLAKE2b-256 |
c905cc2efd444e7f4c7373eb74c0d86fd9d93ac3450505096ba286956e765d48
|
Provenance
The following attestation bundles were made for targon_sdk-0.4.0.tar.gz:
Publisher:
publish.yml on manifold-inc/targon-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
targon_sdk-0.4.0.tar.gz -
Subject digest:
42ba993d6d979d5baf91217985fa850a54c389bfd8ab7efe12e73bcba18dd5ba - Sigstore transparency entry: 937875048
- Sigstore integration time:
-
Permalink:
manifold-inc/targon-sdk@a2d04deadcfe36017de50eff6ad2970b76e114b7 -
Branch / Tag:
refs/tags/stable - Owner: https://github.com/manifold-inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a2d04deadcfe36017de50eff6ad2970b76e114b7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file targon_sdk-0.4.0-py3-none-any.whl.
File metadata
- Download URL: targon_sdk-0.4.0-py3-none-any.whl
- Upload date:
- Size: 91.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f49a11c5d6ab7a47b093a635e74b1eece25b0c9e08fb0511017c2132de83009e
|
|
| MD5 |
06b12aa989d89c524d150815fd021b29
|
|
| BLAKE2b-256 |
7950b0ece7b89cbd590aafb51bf694fa42b7b6eeb2d51f92b4ba6aa21177e072
|
Provenance
The following attestation bundles were made for targon_sdk-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on manifold-inc/targon-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
targon_sdk-0.4.0-py3-none-any.whl -
Subject digest:
f49a11c5d6ab7a47b093a635e74b1eece25b0c9e08fb0511017c2132de83009e - Sigstore transparency entry: 937875067
- Sigstore integration time:
-
Permalink:
manifold-inc/targon-sdk@a2d04deadcfe36017de50eff6ad2970b76e114b7 -
Branch / Tag:
refs/tags/stable - Owner: https://github.com/manifold-inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a2d04deadcfe36017de50eff6ad2970b76e114b7 -
Trigger Event:
release
-
Statement type: