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
Metadata
Release files for literalai 0.1.300
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| literalai-0.1.300.tar.gz | 68.9 kB | Without provenance | Details |
Release files / literalai-0.1.300.tar.gz
| Download URL | literalai-0.1.300.tar.gz |
|---|---|
| Size | 68.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f408ebfd0f3251effe55fb84b3bf480c4790a7010d6f30a181b56cd1c3942cfb
|
|
BLAKE2b-256 checksum How to use checksums |
2575edef16f5a34bcf346a501e4212c5d578f4b487134724eefa48bc12ae5cad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for literalai 0.1.300
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.