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.3.1.tar.gz (77.1 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.3.1-py3-none-any.whl (91.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: targon_sdk-0.3.1.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

Hashes for targon_sdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f1124d159603078901d897fe073d5c90cb9b56740ed96a512b9d89c60c5b249b
MD5 5b87426b501d2aadbcb2be13fd613de3
BLAKE2b-256 ba13089ddee591109b737e560a7453b28e9ce55fe14db90800b7cdd40b0480da

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: targon_sdk-0.3.1-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

Hashes for targon_sdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 48d77d28f5411524dee5dd1043a2409f8f3c7f6732d8f706f48f7685b03a19c1
MD5 63683a11c781cee89447b74513b85935
BLAKE2b-256 4925b7793054d520947b696848a66343dc9f18a5de57a958ea9ff9c4e540e637

See more details on using hashes here.

Provenance

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