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.
Release files for langshark 0.1.468
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langshark-0.1.468.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langshark-0.1.468-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:8.6 kB
Release files / langshark-0.1.468.tar.gz
| Download URL | langshark-0.1.468.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6a9233c7dcb68e60918e4c173dcca7a13ba4fc67d85d462e4573740224875a4
|
|
BLAKE2b-256 checksum How to use checksums |
e3c3e4a6684b950fe0ce7c4c0573e540ada40c70fee292d719c320026226f057
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.8
|
Release files / langshark-0.1.468-py3-none-any.whl
| Download URL | langshark-0.1.468-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3b67ab503a2dc0a55217a2c3bc20d7ebd1a6fc1aa0f49d56ec99a5d1353b540
|
|
BLAKE2b-256 checksum How to use checksums |
5045bc998b5b452296b46d23ed8402242c9ae60cc67e13c518e95d019f229ef6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.8
|