https://github.com/langfuse/langfuse-python
🪢 Langfuse Python SDK - Instrument your LLM app with decorators or low-level SDK and get detailed tracing/observability. Works with any LLM or framework
https://github.com/langfuse/langfuse-python
decorators langfuse pydantic pydantic-v2 python
Last synced: 15 days ago
JSON representation
🪢 Langfuse Python SDK - Instrument your LLM app with decorators or low-level SDK and get detailed tracing/observability. Works with any LLM or framework
- Host: GitHub
- URL: https://github.com/langfuse/langfuse-python
- Owner: langfuse
- License: mit
- Created: 2023-07-17T10:56:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2026-03-26T16:11:33.000Z (22 days ago)
- Last Synced: 2026-03-27T05:53:36.960Z (22 days ago)
- Topics: decorators, langfuse, pydantic, pydantic-v2, python
- Language: Python
- Homepage: https://langfuse.com/docs/sdk/python
- Size: 7.27 MB
- Stars: 368
- Watchers: 6
- Forks: 255
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README

# Langfuse Python SDK
[](https://opensource.org/licenses/MIT)
[](https://github.com/langfuse/langfuse-python/actions/workflows/ci.yml?query=branch%3Amain)
[](https://pypi.python.org/pypi/langfuse)
[](https://github.com/langfuse/langfuse)
[](https://discord.gg/7NXusRtqYU)
[](https://www.ycombinator.com/companies/langfuse)
## Installation
> [!IMPORTANT]
> The SDK was rewritten in v4 and released in March 2026. Refer to the [v4 migration guide](https://langfuse.com/docs/observability/sdk/upgrade-path/python-v3-to-v4) for instructions on updating your code.
```
pip install langfuse
```
## Docs
Please [see our docs](https://langfuse.com/docs/sdk/python/sdk-v3) for detailed information on this SDK.