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
23 changes: 11 additions & 12 deletions langfuse/api/README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# Finto Python Library
# Langfuse Python Library

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Finto%2FPython)
[![pypi](https://img.shields.io/pypi/v/finto)](https://pypi.python.org/pypi/finto)
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Langfuse%2FPython)
[![pypi](https://img.shields.io/pypi/v/langfuse)](https://pypi.python.org/pypi/langfuse)

The Finto Python library provides convenient access to the Finto API from Python.
The Langfuse Python library provides convenient access to the Langfuse API from Python.

## Installation

```sh
pip install finto
pip install langfuse
```

## Usage

Instantiate and use the client with the following:

```python
from langfuse.api import CreateCommentRequest
from langfuse.api.client import FernLangfuse
from langfuse import CreateCommentRequest
from langfuse.client import FernLangfuse

client = FernLangfuse(
x_langfuse_sdk_name="YOUR_X_LANGFUSE_SDK_NAME",
Expand Down Expand Up @@ -45,8 +45,8 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
```python
import asyncio

from langfuse.api import CreateCommentRequest
from langfuse.api.client import AsyncFernLangfuse
from langfuse import CreateCommentRequest
from langfuse.client import AsyncFernLangfuse

client = AsyncFernLangfuse(
x_langfuse_sdk_name="YOUR_X_LANGFUSE_SDK_NAME",
Expand Down Expand Up @@ -116,7 +116,7 @@ The SDK defaults to a 60 second timeout. You can configure this with a timeout o

```python

from langfuse.api.client import FernLangfuse
from langfuse.client import FernLangfuse

client = FernLangfuse(..., { timeout=20.0 }, )

Expand All @@ -131,10 +131,9 @@ client.comments.create(...,{

You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
and transports.

```python
import httpx
from langfuse.api.client import FernLangfuse
from langfuse.client import FernLangfuse

client = FernLangfuse(
...,
Expand Down
4 changes: 2 additions & 2 deletions langfuse/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class FernLangfuse:

Examples
--------
from langfuse.api.client import FernLangfuse
from langfuse.client import FernLangfuse

client = FernLangfuse(
x_langfuse_sdk_name="YOUR_X_LANGFUSE_SDK_NAME",
Expand Down Expand Up @@ -140,7 +140,7 @@ class AsyncFernLangfuse:

Examples
--------
from langfuse.api.client import AsyncFernLangfuse
from langfuse.client import AsyncFernLangfuse

client = AsyncFernLangfuse(
x_langfuse_sdk_name="YOUR_X_LANGFUSE_SDK_NAME",
Expand Down
Loading
Loading