Skip to main content

Baseten Python SDK

Project description

Baseten Python SDK

PyPI

Python SDK for Baseten. See the API documentation and usage below.

⚠️ 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

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.10.0.tar.gz (252.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.10.0-py3-none-any.whl (82.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for baseten-0.10.0.tar.gz
Algorithm Hash digest
SHA256 47e10108970e98935244f9c00976417aa201da9ffca074477bb9cb27e5522091
MD5 a9e8a5b911b7650959b8561e19ecb30a
BLAKE2b-256 1bccd916a1329199c4f38495dffaf0ac1e19083d85f18f7938f3f196acbb6d74

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for baseten-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a50b21b742360d4727606b6b1521d81c8569081c806fd4ee91ebba11117f2f42
MD5 f252d309f0ede52d7045a4448b078663
BLAKE2b-256 6c343241dd62f093f732ed57926cfbc2d7ab222f4c4d68fb25bb01313342af60

See more details on using hashes here.

Provenance

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