Skip to main content

Targon SDK to interact with Targon rentals and serverless

Project description

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.

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

targon_sdk-1.0.0.tar.gz (81.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

targon_sdk-1.0.0-py3-none-any.whl (97.5 kB view details)

Uploaded Python 3

File details

Details for the file targon_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: targon_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 81.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for targon_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8e482ddeb87a39c456c54cbaf7860128dfffbcf5026f1d244084f518c9c49d04
MD5 f7cd3c4e225dbaf6f5e0a0e22e45e736
BLAKE2b-256 8e74a9d698172d45c3c5b08038931cda02dae57c579dbd1eb8174ee2053fe041

See more details on using hashes here.

Provenance

The following attestation bundles were made for targon_sdk-1.0.0.tar.gz:

Publisher: publish.yml on manifold-inc/targon-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file targon_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: targon_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 97.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for targon_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65502911281a415bb473b693bb346a96722d900ea23357d2bbc277fd69f039f4
MD5 6d033530022b2eb140fe58e390fe2f01
BLAKE2b-256 f048a10fdafa85248f02f088d72436570af36f968d956b982c6987092c113a4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for targon_sdk-1.0.0-py3-none-any.whl:

Publisher: publish.yml on manifold-inc/targon-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page