hSeek Python SDK (hseek)
The official Python SDK for Hussain's Private AI Bridge (hDeepSeek).
Features
- Ultra-simple Initialization: Automatically loads your API key from
.env. - Auto-Memory Management: Just pass a
session_idstring and the SDK handles the rest. - Full Control: Toggle
thinkingandsearchon a per-message basis. - Async & Sync Support: Built-in
ClientandAsyncClient. - Streaming Support: Real-time character-by-character output via
.stream_chat().
Installation
pip install hseek
Quick Start
Make sure you have a .env file with your secret key:
MY_SECRET_API_KEY=your_super_secret_key_here
Basic Example (Sync)
from hseek import Client
ai = Client()
response = ai.chat(
"Hello! How are you?",
session_id="user_123",
thinking=True
)
print(response.text)
# If thinking=True, you can also print(response.thinking_text)
Streaming Example (Async)
import asyncio
from hseek import AsyncClient
async def main():
ai = AsyncClient()
async for chunk in ai.stream_chat("Write a long story.", session_id="user_123"):
# chunk is an HSeekResponse object that updates in real-time
print(chunk.text, end="", flush=True)
asyncio.run(main())
Metadata
Release files for hseek 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hseek-1.0.0.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hseek-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / hseek-1.0.0.tar.gz
| Download URL | hseek-1.0.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8c89c1c4d99f6ddcbb6796516bbadb03af2637c0439a0fa248fc1427460da2f
|
|
BLAKE2b-256 checksum How to use checksums |
08c6b04d4a48d23b49219366224f186b739c907fe7fd05f1e162a2ee2ee8bbea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / hseek-1.0.0-py3-none-any.whl
| Download URL | hseek-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3e47dd647659418fa5a05e9ab349bb79622c5660edb3cd873369f7ce460f7f7
|
|
BLAKE2b-256 checksum How to use checksums |
408a8ffb8cc033dd703c2b8fe93df1306fcfc8681cef306511e92d3475859c63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|