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.24.tar.gz
(134.5 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.24-py3-none-any.whl
(228.8 kB
view details)
File details
Details for the file beamlit-0.0.24.tar.gz.
File metadata
- Download URL: beamlit-0.0.24.tar.gz
- Upload date:
- Size: 134.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c281c77dd3a32f4a1404c9918f2ab663f4a4c0711c975b701c2918103c17d5f
|
|
| MD5 |
3b1d9517a768756f65fd485c08acfe85
|
|
| BLAKE2b-256 |
eeb57c68ad743f3db05aa71e91aa802f67e13c52a5671d5e372f4cf9d6f55d80
|
File details
Details for the file beamlit-0.0.24-py3-none-any.whl.
File metadata
- Download URL: beamlit-0.0.24-py3-none-any.whl
- Upload date:
- Size: 228.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
491abf6fd60a237ede97470bc56ee4679f358d427abf4eba6c2c62df8c055967
|
|
| MD5 |
b6e577eb96c5c655446d5021b76059e9
|
|
| BLAKE2b-256 |
33f74b56cf45bd1ed16ad7da24a6746af6e2c85fe5da4f3462cde1b741229944
|