langfuse/langfuse-python
Python SDK for Langfuse
What
Python SDK for Langfuse: @observe decorator, OpenAI/LangChain integrations, manual spans.
How to use
# pip install langfuse (set LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, LANGFUSE_HOST)
from langfuse import observe
@observe()
def answer(question: str) -> str:
...Reach for it when
sending traces from a Python app to Langfuse.