A wrapper for Langfuse with enhanced functionality
Project description
LangShark
LangShark is a wrapper for Langfuse with enhanced functionality, designed to simplify the process of creating Langfuse clients and callback handlers.
Installation
pip install langshark
## Usage
```python
from langshark import getLangShark
secret_key = "your_secret_key"
public_key = "your_public_key"
username = "YourUsername"
tracename = "your_tracename"
# 기본 host 사용 (https://langshark.fmops.kr)
langshark_client, langshark_handler = getLangShark(secret_key, public_key, username, tracename)
# 또는 사용자 지정 host 사용
custom_host = "https://your-custom-host.com"
langshark_client, langshark_handler = getLangShark(secret_key, public_key, username, tracename, custom_host)
# Use langshark_client and langshark_handler as needed
assert langshark_client.auth_check()
assert langshark_handler.langfuse.auth_check()
print(f"Session ID: {langshark_handler.session_id}")
print(f"Trace Name: {langshark_handler.trace_name}")
##License This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
langshark-0.1.41.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for langshark-0.1.41-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ecd0206f1c3dc7a2f2446497ddcb3280a74434923970ffecba7372c30ec4e87 |
|
MD5 | a54517bfe0c67fdc5ab3264fa8bdccef |
|
BLAKE2b-256 | ffc5e8aca773e0ca4df2bbc6373604bd64d71383d0f5757a2b6b9efc50c0b5ff |