An SDK for observability in Python applications
Project description
Literal AI client
Installation
pip install literalai
Usage
The full documentation is available here.
Create a .env file with the LITERAL_API_KEY environment variable set to your API key.
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
pip install -r requirements-dev.txt
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
literalai-0.1.201.tar.gz
(67.8 kB
view details)
File details
Details for the file literalai-0.1.201.tar.gz.
File metadata
- Download URL: literalai-0.1.201.tar.gz
- Upload date:
- Size: 67.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29e4ccadd9d68bfea319a7f0b4fc32611b081990d9195f98e5e97a14d24d3713
|
|
| MD5 |
4e3bb4299a0aaf520894adb3cedee2dc
|
|
| BLAKE2b-256 |
7ec17bd34ad0ae6cfd99512f8a40b28b9624c3b1f4e1d40c9038eabc2f870b15
|