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.0.627.tar.gz
(58.4 kB
view details)
File details
Details for the file literalai-0.0.627.tar.gz
.
File metadata
- Download URL: literalai-0.0.627.tar.gz
- Upload date:
- Size: 58.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ccd8b52649bddf2e6afad1c8b61d6a438304e3b9483b51878d3fa67f53ea509 |
|
MD5 | 64d764de767d26ef41f0a990fc42518d |
|
BLAKE2b-256 | c906f94513d1d547238eb38632e7aac247755ba0fa06f45d1b5719849d06b7c3 |