Skip to main content

Add your description here

Project description

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)

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

blaxel-0.0.68.tar.gz (301.3 kB view details)

Uploaded Source

Built Distribution

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

blaxel-0.0.68-py3-none-any.whl (249.4 kB view details)

Uploaded Python 3

File details

Details for the file blaxel-0.0.68.tar.gz.

File metadata

  • Download URL: blaxel-0.0.68.tar.gz
  • Upload date:
  • Size: 301.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.2

File hashes

Hashes for blaxel-0.0.68.tar.gz
Algorithm Hash digest
SHA256 cffaa7c1e9d362895955b613b388c554d71e18d06b9521c50a4c847ca50f1431
MD5 cf7fd68faca03fb92302d222822d895d
BLAKE2b-256 8e9c4ae84d8d827e5b60fe2b8cf3b9bfa446591c162f0e9dd1a618c7b816be92

See more details on using hashes here.

File details

Details for the file blaxel-0.0.68-py3-none-any.whl.

File metadata

  • Download URL: blaxel-0.0.68-py3-none-any.whl
  • Upload date:
  • Size: 249.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.2

File hashes

Hashes for blaxel-0.0.68-py3-none-any.whl
Algorithm Hash digest
SHA256 e6b1651ce75c090140573b2799712213caac1bf59eaf09da5cc6602cb880e1e1
MD5 fe203f4580bf5c9da87e14dce5cdbcd9
BLAKE2b-256 7886ffcc599f8a6c2e0e59dcab7cfd7bcfc61c9e11d9047dcc831f413bebb7d6

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