diff --git a/README.md b/README.md index dcf24016b..667cdca70 100644 --- a/README.md +++ b/README.md @@ -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 @@ -12,7 +12,7 @@ ## 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 @@ -20,20 +20,4 @@ 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. diff --git a/langfuse/__init__.py b/langfuse/__init__.py index 3df654568..9c8010c21 100644 --- a/langfuse/__init__.py +++ b/langfuse/__init__.py @@ -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", +] diff --git a/poetry.lock b/poetry.lock index 58bc625bd..05352d436 100644 --- a/poetry.lock +++ b/poetry.lock @@ -3499,13 +3499,13 @@ files = [ [[package]] name = "pdoc" -version = "14.6.0" +version = "14.7.0" description = "API Documentation for Python Projects" optional = false python-versions = ">=3.8" files = [ - {file = "pdoc-14.6.0-py3-none-any.whl", hash = "sha256:36c42c546a317d8e3e8c0b39645f24161374de0c7066ccaae76628d721e49ba5"}, - {file = "pdoc-14.6.0.tar.gz", hash = "sha256:6e98a24c5e0ca5d188397969cf82581836eaef13f172fc3820047bfe15c61c9a"}, + {file = "pdoc-14.7.0-py3-none-any.whl", hash = "sha256:72377a907efc6b2c5b3c56b717ef34f11d93621dced3b663f3aede0b844c0ad2"}, + {file = "pdoc-14.7.0.tar.gz", hash = "sha256:2d28af9c0acc39180744ad0543e4bbc3223ecba0d1302db315ec521c51f71f93"}, ] [package.dependencies]