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.32.tar.gz
(240.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
beamlit-0.0.32-py3-none-any.whl
(245.5 kB
view details)
File details
Details for the file beamlit-0.0.32.tar.gz.
File metadata
- Download URL: beamlit-0.0.32.tar.gz
- Upload date:
- Size: 240.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebd81e5dd464d434d151a6fdeefd8b13b2d4d680a2d8f9c6726f672f21e68034
|
|
| MD5 |
b791335f13389d9b7b6481f6b6d13012
|
|
| BLAKE2b-256 |
40bde5e797ac59a30d27abfdbaf70629f16d222e29531845bc0b45fb85bb1bee
|
File details
Details for the file beamlit-0.0.32-py3-none-any.whl.
File metadata
- Download URL: beamlit-0.0.32-py3-none-any.whl
- Upload date:
- Size: 245.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b582dc3dccef24d6323ecd016be8351ef61047d496e8831100eef1f2e01a98f6
|
|
| MD5 |
a6748aaac2cb8fe1f7cbfd221872acb9
|
|
| BLAKE2b-256 |
bbd3b8dc739e51bde7f367dd20c7fbb4db124df1f5779eaba15c13fd2f7dd2c0
|