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.64.tar.gz (297.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.64-py3-none-any.whl (243.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blaxel-0.0.64.tar.gz
  • Upload date:
  • Size: 297.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.27

File hashes

Hashes for blaxel-0.0.64.tar.gz
Algorithm Hash digest
SHA256 717ee3d9c09d46999ef25ad3b66d772117acd46bca190b6f213ad56e33ae785e
MD5 d1bb89a6c40da114e19bdb63f75f1609
BLAKE2b-256 ef7be846b2dd3154a46de9e71c030e94d243f2fe05885e882347bfc28f43a4fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blaxel-0.0.64-py3-none-any.whl
  • Upload date:
  • Size: 243.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.27

File hashes

Hashes for blaxel-0.0.64-py3-none-any.whl
Algorithm Hash digest
SHA256 35c6c7803ada90f2250662de8e01ac0e61a4cf51cf7da46e5a610ab77f9f6242
MD5 56da3bc4e84e23d3af5e875fd6926aa7
BLAKE2b-256 ab2833ffb2054c42b4e4fc9f150e46d0b7d889281ffa56b926d70c882071ae7a

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