Skip to main content

Python SDK for Lunary, the open-source platform where GenAI teams manage and improve LLM chatbots.

Project description

Lunary Python SDK

📈 Python monitoring for AI apps and agent

website - docs - PyPI - Version


Use it with any LLM model and custom agents (not limited to OpenAI).

To get started, get a project ID by registering here.

🛠️ Installation

pip install lunary

📖 Documentation

Full docs are available here.

Examples

Run the LangChain runnable sequence examples with:

poetry run python examples/langchain/runnable-sequence-astream-events-v2.py
poetry run python examples/langchain/runnable-sequence-invoke.py

They show the same RunnableSequence with LunaryCallbackHandler, once through astream_events(version="v2") and once through invoke(). Set LUNARY_PUBLIC_KEY first, and LUNARY_API_URL too if you are not sending events to the default Lunary backend.

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

lunary-1.4.38.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lunary-1.4.38-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file lunary-1.4.38.tar.gz.

File metadata

  • Download URL: lunary-1.4.38.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Darwin/25.4.0

File hashes

Hashes for lunary-1.4.38.tar.gz
Algorithm Hash digest
SHA256 1d20b3fa41518ee78041a6e292828c1ec3c2eadccdb0307326ad4038bb1ff3b7
MD5 cbc446ca8d596e612e9fc4d5a27a06e2
BLAKE2b-256 7ca9ca304b7c58f2f9ed0ffff38d0fc821908bb1356fd6f95bd247501a574430

See more details on using hashes here.

File details

Details for the file lunary-1.4.38-py3-none-any.whl.

File metadata

  • Download URL: lunary-1.4.38-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Darwin/25.4.0

File hashes

Hashes for lunary-1.4.38-py3-none-any.whl
Algorithm Hash digest
SHA256 8a85fd4b64702a30e4a7359df6eafda553a6070fe18095ac8bd0ee918cfb2cf0
MD5 ce1499d3020a5902be18e3d73a1f8d69
BLAKE2b-256 857d64b45bb951257cdde6c404d5a3c498dcb03d2c6bb2c65affd2d52911e55b

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