Skip to main content

Add your description here

Project description

beamlit

A client library for accessing Beamlit Control Plane

Usage

First, create a client:

from beamlit.authentication import (RunClientWithCredentials, load_credentials,
                                    new_client_with_credentials)

WORKSPACE_NAME = "development"
credentials = load_credentials(WORKSPACE_NAME)
config = RunClientWithCredentials(
    credentials=credentials,
    workspace=WORKSPACE_NAME,
)
client = new_client_with_credentials(config)

Now call your endpoint and use your models:

from typing import List

from beamlit.api.models import list_models
from beamlit.types import Response
from beamlit.models.model import Model

with client as client:
    models: List[Model] = list_models.sync(client=client)
    # or if you need more info (e.g. status_code)
    response: Response[List[Model]] = list_models.sync_detailed(client=client)

Or do the same thing with an async version:

from typing import List

from beamlit.api.models import list_models
from beamlit.types import Response
from beamlit.models.model import Model

async with client as client:
    models: List[Model] = await list_models.asyncio(client=client)
    response: Response[List[Model]] = await list_models.asyncio_detailed(client=client)

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

beamlit-0.0.55rc102.tar.gz (312.8 kB view details)

Uploaded Source

Built Distribution

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

beamlit-0.0.55rc102-py3-none-any.whl (268.8 kB view details)

Uploaded Python 3

File details

Details for the file beamlit-0.0.55rc102.tar.gz.

File metadata

  • Download URL: beamlit-0.0.55rc102.tar.gz
  • Upload date:
  • Size: 312.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.29

File hashes

Hashes for beamlit-0.0.55rc102.tar.gz
Algorithm Hash digest
SHA256 ce610dfdcac9bd904720ba8870d5457c509517f9c75c7f845c68278275ee1ea4
MD5 af32279609aba1c17c983b43f2b7e6ff
BLAKE2b-256 29a7772e811a00566fc163116d69b2294516c561399f1b5ee9c23cb08da9889c

See more details on using hashes here.

File details

Details for the file beamlit-0.0.55rc102-py3-none-any.whl.

File metadata

File hashes

Hashes for beamlit-0.0.55rc102-py3-none-any.whl
Algorithm Hash digest
SHA256 32657cea2f1d6dbe60701f14ef2aa6dd49990d9cef3850b1a3928e2b93e114df
MD5 1e6d31b8a1f98cc6e6616a0936b1c8d6
BLAKE2b-256 63b747fc4114168cb73f84659b88ef03c7f1b2ecb416c671f9fd8457301520fc

See more details on using hashes here.

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