Skip to main content

Targon Targon SDK

Build and deploy serverless Python on GPUs — in seconds, not hours.

| Install | Getting Started | Examples | Documentation |

Status PyPI Python License

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.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with tests
  4. 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)

Source distribution for targon-sdk 1.0.0
File Size Uploaded
targon_sdk-1.0.0.tar.gz 81.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for targon-sdk 1.0.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.5.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page