Skip to main content

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

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for literalai-0.1.300.tar.gz
Algorithm Hash digest
SHA256 f408ebfd0f3251effe55fb84b3bf480c4790a7010d6f30a181b56cd1c3942cfb
MD5 23022ba821d6992acfbfb92074ebfb4d
BLAKE2b-256 2575edef16f5a34bcf346a501e4212c5d578f4b487134724eefa48bc12ae5cad

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.300 This release

1 file

0.1.202

1 file

0.1.201

1 file

0.1.107

1 file

0.1.106

1 file

0.1.105

1 file

0.1.104

1 file

0.1.103

1 file

0.1.102

1 file

0.1.101

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

0.0.629

1 file

0.0.628

1 file

0.0.627

1 file

0.0.626

1 file

0.0.625

1 file

0.0.624

1 file

0.0.623

1 file

0.0.622

1 file

0.0.612

1 file

0.0.611

1 file

0.0.610

1 file

0.0.608

1 file

0.0.607

1 file

0.0.606

1 file

0.0.605

1 file

0.0.604

1 file

0.0.603

1 file

0.0.602

1 file

0.0.601

1 file

0.0.600

1 file

0.0.509

1 file

0.0.508

1 file

0.0.507

1 file

0.0.506

1 file

0.0.505

1 file

0.0.504

1 file

0.0.503

1 file

0.0.502

1 file

0.0.501

1 file

0.0.500

1 file

0.0.401

1 file

0.0.400

1 file

0.0.301

1 file

0.0.300

1 file

0.0.208

1 file

0.0.207

1 file

0.0.206

1 file

0.0.205

1 file

0.0.204

1 file

0.0.203

1 file

0.0.202

1 file

0.0.201

1 file

0.0.200

1 file

0.0.104

1 file

0.0.103

1 file

0.0.102

1 file

0.0.101

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page