Pre-release
This release is a pre-release and may not be stable for production use.
blaxel
A client library for accessing Blaxel Control Plane
Usage
First, create a client:
from blaxel.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 blaxel.api.models import list_models
from blaxel.types import Response
from blaxel.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 blaxel.api.models import list_models
from blaxel.types import Response
from blaxel.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)
Metadata
Release files for blaxel 0.0.73rc152
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| blaxel-0.0.73rc152.tar.gz | 327.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| blaxel-0.0.73rc152-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 581.1 kB
Release files / blaxel-0.0.73rc152.tar.gz
| Download URL | blaxel-0.0.73rc152.tar.gz |
|---|---|
| Size | 327.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
676a93854dca99ee596a7ad413f3cd3123eab744e7897b793160e2647200bc30
|
|
BLAKE2b-256 checksum How to use checksums |
2c0d4db88761af045c93056d9a3de91ba989244a63f2fec58d119b64e4ae9845
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.6
|
Release files / blaxel-0.0.73rc152-py3-none-any.whl
| Download URL | blaxel-0.0.73rc152-py3-none-any.whl |
|---|---|
| Size | 254.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05ef988d2bb5b63866b816c58f7d5354bbbe198f96d72ed93b6c5f9313f7c722
|
|
BLAKE2b-256 checksum How to use checksums |
ac74fbf3a65726cd183e84bed76494df871cf25cd75a3099608c74d680b7d43d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.6
|