Skip to main content

Baseten Python SDK

Project description

Baseten Python SDK

Python SDK for Baseten.

⚠️ Under active development. Nothing should be considered stable at this time.

Usage

Current SDK only has barebones client. Here is usage example of the barebones underlying client:

from baseten.client import ManagementClient

with ManagementClient(api_key="my-api-key") as client:
    for model in client.api.get_models().models:
        print(model.name)

Or for async:

from baseten.client import AsyncManagementClient

async with AsyncManagementClient(api_key="my-api-key") as client:
    for model in (await client.api.get_models()).models:
        print(model.name)

Upgrading from 0.8.2 and earlier

Version 0.9.0 is a rewrite and shares no API with the earlier baseten releases. Code written against 0.8.2 or earlier will not work. Pin baseten<0.9 to keep it.

Project details


Release history Release notifications | RSS feed

This version

0.9.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baseten-0.9.0.tar.gz (180.9 kB view details)

Uploaded Source

Built Distribution

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

baseten-0.9.0-py3-none-any.whl (61.6 kB view details)

Uploaded Python 3

File details

Details for the file baseten-0.9.0.tar.gz.

File metadata

  • Download URL: baseten-0.9.0.tar.gz
  • Upload date:
  • Size: 180.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for baseten-0.9.0.tar.gz
Algorithm Hash digest
SHA256 9a61d8f2f27889fee54c2a4c172b2104776644091ca7a0d56f2a7d9e9031a5cb
MD5 02379f3b3512c9af8426c4c76db5200e
BLAKE2b-256 591387275f0d4352a57f81a2311d2329fdfaf4774053c4f614bcd302b5188acd

See more details on using hashes here.

Provenance

The following attestation bundles were made for baseten-0.9.0.tar.gz:

Publisher: publish.yml on basetenlabs/baseten-python

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

File details

Details for the file baseten-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: baseten-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 61.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for baseten-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c13d70d1b584cac267c22667acaaa504746f5fadfbb19f8911feeb61f6b280ad
MD5 a3e7fd7e81ee489d6aafe8c00a4dbfad
BLAKE2b-256 839c5e984261f1b812cf99548745501124a416910fa43b0351429f3290392717

See more details on using hashes here.

Provenance

The following attestation bundles were made for baseten-0.9.0-py3-none-any.whl:

Publisher: publish.yml on basetenlabs/baseten-python

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