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.3.tar.gz
(60.5 kB
view details)
File details
Details for the file literalai-0.1.3.tar.gz.
File metadata
- Download URL: literalai-0.1.3.tar.gz
- Upload date:
- Size: 60.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
869e50a658ec52700f2eb5693509add585f6321eb4747e61ebc287b692e22bc4
|
|
| MD5 |
95cdc523efd1eac5d641e740f668a2c8
|
|
| BLAKE2b-256 |
492f27f9aaf470f5ebecb5435a4dc5dbdd61060123a555e92b1fb1b9f31ebff0
|