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.104.tar.gz
(65.4 kB
view details)
File details
Details for the file literalai-0.1.104.tar.gz.
File metadata
- Download URL: literalai-0.1.104.tar.gz
- Upload date:
- Size: 65.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e317697861cfada93a0e32212a2c573c2afab5fa594d7e90b56bbc35ac034d8
|
|
| MD5 |
c29d21e43560459cd54e6f0cb8acf114
|
|
| BLAKE2b-256 |
a5b1174fbf1f1c61ba82535a30d44103ad4f1e3c8f71825d2c41d649b1bd8088
|