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.612.tar.gz
(55.1 kB
view details)
File details
Details for the file literalai-0.0.612.tar.gz
.
File metadata
- Download URL: literalai-0.0.612.tar.gz
- Upload date:
- Size: 55.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47be5b381c96eba8b7824b3e04e25a64254d4e9011bc85ef8e6353e3585f403d |
|
MD5 | 8a3d92b773cb130ab7faa52a1eb4ac18 |
|
BLAKE2b-256 | c0fd2a6821da48085d5a99f58d15ef354876744beb21a977ce0337f8a7dae689 |