Metadata-Version: 2.1
Name: literalai
Version: 0.1.2
Summary: An SDK for observability in Python applications
Home-page: UNKNOWN
Author: Literal AI
Author-email: contact@literalai.com
License: Apache License 2.0
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENSE

# Literal AI client

## Installation

```bash
pip install literalai
```

## Usage

The full documentation is available [here](https://docs.getliteral.ai/python-client).

Create a `.env` file with the `LITERAL_API_KEY` environment variable set to your API key.

```python
from literalai import LiteralClient
from dotenv import load_dotenv

load_dotenv()

literalai_client = LiteralClient()

@literalai_client.step(type="run")
def my_step(input):
    return f"World"


@literalai_client.thread
def main():
    print(my_step("Hello"))


main()
client.flush_and_stop()
print("Done")
```

## Development setup

```bash
pip install -r requirements-dev.txt
```


