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-0.5.1.tar.gz (77.2 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-0.5.1-py3-none-any.whl (92.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for targon_sdk-0.5.1.tar.gz
Algorithm Hash digest
SHA256 864efd8b6965e10afa65633473447fb2b8385e09399f3548a3add2b4169b9d57
MD5 75e5d2392628ba33edebbfdad8e29f98
BLAKE2b-256 e5f373e7a85791b1717c1dfc3a0d9d5cf8d225d7afd439c2b5fb36eb9f1c0cb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for targon_sdk-0.5.1.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-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: targon_sdk-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 92.0 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-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0c93587ddaa9ceba82987cf79d408a24c2b0129311ffdaf820e631e3a92eac
MD5 2e2e51f6656272057998ea91a4f0a97d
BLAKE2b-256 bb9a93d852c8ebf922c4f5c65dc07d86ac42e619d5f9ef2b9a2ea4b3b10df95a

See more details on using hashes here.

Provenance

The following attestation bundles were made for targon_sdk-0.5.1-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