Metadata-Version: 2.4
Name: beamlit
Version: 0.0.34rc71
Summary: Add your description here
Author-email: cploujoux <ch.ploujoux@gmail.com>
Requires-Python: >=3.12
Requires-Dist: asgi-correlation-id<5.0.0,>=4.3.4
Requires-Dist: attrs>=21.3.0
Requires-Dist: fastapi[standard]<0.116.0,>=0.115.4
Requires-Dist: httpx<0.28.0,>=0.20.0
Requires-Dist: langchain-community<0.4.0,>=0.3.3
Requires-Dist: langchain-core<0.4.0,>=0.3.13
Requires-Dist: langchain-openai<0.3.0,>=0.2.4
Requires-Dist: langgraph<0.3.0,>=0.2.40
Requires-Dist: mcp>=1.1.2
Requires-Dist: opentelemetry-api>=1.28.2
Requires-Dist: opentelemetry-exporter-otlp>=1.28.2
Requires-Dist: opentelemetry-instrumentation-fastapi>=0.49b2
Requires-Dist: opentelemetry-instrumentation-httpx>=0.49b2
Requires-Dist: opentelemetry-instrumentation-system-metrics>=0.50b0
Requires-Dist: opentelemetry-sdk>=1.28.2
Requires-Dist: pydantic-settings<2.7.0,>=2.6.1
Requires-Dist: pydantic<2.11.0,>=2.10.3
Requires-Dist: python-dateutil>=2.8.0
Requires-Dist: pyyaml<6.1.0,>=6.0.2
Requires-Dist: requests<2.33.0,>=2.32.3
Requires-Dist: traceloop-sdk>=0.33.12
Description-Content-Type: text/markdown

# beamlit
A client library for accessing Beamlit Control Plane

## Usage
First, create a client:

```python
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:

```python
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:

```python
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)
```