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.28.tar.gz
(156.0 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.28-py3-none-any.whl
(242.0 kB
view details)
File details
Details for the file beamlit-0.0.28.tar.gz.
File metadata
- Download URL: beamlit-0.0.28.tar.gz
- Upload date:
- Size: 156.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2741801619d2d7059c03fd16b3b462de16fe13b2209447c7901a7a9f7774765f
|
|
| MD5 |
e7e20c5a0a042b07a1ef1c4c2d3be27f
|
|
| BLAKE2b-256 |
8c1b02c03c9dc1305dc59f943d307d1ec63d0683a08c3b273716a4f7ffcceb23
|
File details
Details for the file beamlit-0.0.28-py3-none-any.whl.
File metadata
- Download URL: beamlit-0.0.28-py3-none-any.whl
- Upload date:
- Size: 242.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b39f4a70ee9ce15c472402ea606b1ff417dadf81987941c75cd56e667e08ab8f
|
|
| MD5 |
b16590e6add12e5aa8c5a6e92d9f31ef
|
|
| BLAKE2b-256 |
73e384019012ea60049316091243ab8e6386e4ac0416ffb5c8d102815b640f18
|