Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![GitHub Banner](https://github.com/langfuse/langfuse-python/assets/2834609/3c36488e-6fe6-4a82-b0f5-5419250ddf86)
![Langfuse GitHub Banner](https://langfuse.com/langfuse_logo_white.png)

# Langfuse Python SDK

Expand All @@ -12,28 +12,12 @@
## Installation

> [!IMPORTANT]
> The SDK was rewritten in v2 and released on December 17, 2023. Refer to the [v2 migration guide](https://langfuse.com/docs/sdk/python/low-level-sdk#upgrading-from-v1xx-to-v2xx) for instructions on updating your code.
> The SDK was rewritten in v3 and released on December 17, 2023. Refer to the [v3 migration guide](https://langfuse.com/docs/sdk/python/sdk-v3#upgrade-from-v2) for instructions on updating your code.

```
pip install langfuse
```

## Docs

- Decorators: https://langfuse.com/docs/sdk/python/decorators
- Low-level SDK: https://langfuse.com/docs/sdk/python/low-level-sdk
- Langchain integration: https://langfuse.com/docs/integrations/langchain/tracing

## Interfaces

Interfaces:

- `@observe()` decorator ([docs](https://langfuse.com/docs/sdk/python/decorators))
- Low-level tracing SDK ([docs](https://langfuse.com/docs/sdk/python/low-level-sdk))
- Wrapper of Langfuse public API

Integrations

- OpenAI SDK ([docs](https://langfuse.com/docs/integrations/openai))
- LlamaIndex ([docs](https://langfuse.com/docs/integrations/llama-index))
- LangChain ([docs](https://langfuse.com/docs/integrations/langchain))
Please [see our docs](https://langfuse.com/docs/sdk/python/sdk-v3) for detailed information on this SDK.
13 changes: 12 additions & 1 deletion langfuse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
""".. include:: ../README.md"""

from ._client.attributes import LangfuseOtelSpanAttributes # noqa
from ._client.client import Langfuse # noqa
from ._client.get_client import get_client # noqa
from ._client.observe import observe # noqa
from .version import __version__ # noqa
from ._client.span import LangfuseSpan, LangfuseGeneration, LangfuseEvent
from ._client.attributes import LangfuseOtelSpanAttributes

__all__ = [
"Langfuse",
"get_client",
"observe",
"LangfuseSpan",
"LangfuseGeneration",
"LangfuseEvent",
"LangfuseOtelSpanAttributes",
]
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading