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

Uploaded Source

File details

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

File metadata

  • Download URL: literalai-0.1.107.tar.gz
  • Upload date:
  • Size: 65.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for literalai-0.1.107.tar.gz
Algorithm Hash digest
SHA256 a54a5a55229311a4a53cd3d995c96850bf4291c35ca8a4bcc4b49691ac9deed0
MD5 e70eccbd85351a22e9934731a4e7ae46
BLAKE2b-256 b7756f9ebc5c599f1a8505efc17fb5b8a7747f16f2d7fa5fb9d2bce671886d9e

See more details on using hashes here.

Supported by

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