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.4.0.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.4.0-py3-none-any.whl (91.9 kB view details)

Uploaded Python 3

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

Hashes for targon_sdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 42ba993d6d979d5baf91217985fa850a54c389bfd8ab7efe12e73bcba18dd5ba
MD5 d8242507d7a80d1b4ea64b3c32eed659
BLAKE2b-256 c905cc2efd444e7f4c7373eb74c0d86fd9d93ac3450505096ba286956e765d48

See more details on using hashes here.

Provenance

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

Hashes for targon_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f49a11c5d6ab7a47b093a635e74b1eece25b0c9e08fb0511017c2132de83009e
MD5 06b12aa989d89c524d150815fd021b29
BLAKE2b-256 7950b0ece7b89cbd590aafb51bf694fa42b7b6eeb2d51f92b4ba6aa21177e072

See more details on using hashes here.

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

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