Skip to main content

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


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.610.tar.gz (54.1 kB view details)

Uploaded Source

File details

Details for the file literalai-0.0.610.tar.gz.

File metadata

  • Download URL: literalai-0.0.610.tar.gz
  • Upload date:
  • Size: 54.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for literalai-0.0.610.tar.gz
Algorithm Hash digest
SHA256 76da0d1c445401cd6bb6b16a19f9b96801ee7a9d35c9ead2ed4d0c66976e8fdc
MD5 66bfb012eaae9dfe2a61a2fdafc6807b
BLAKE2b-256 8dec027b30677b759bf9e2db8d1e07b0053f8917c05ea34bc5629c741ec8f48c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page