The official Python SDK for hDeepSeek Private AI.
Project description
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())
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
hseek-1.0.0.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hseek-1.0.0-py3-none-any.whl
(4.2 kB
view details)
File details
Details for the file hseek-1.0.0.tar.gz.
File metadata
- Download URL: hseek-1.0.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8c89c1c4d99f6ddcbb6796516bbadb03af2637c0439a0fa248fc1427460da2f
|
|
| MD5 |
f5e8d71a39991db85cf103aabf8c754f
|
|
| BLAKE2b-256 |
08c6b04d4a48d23b49219366224f186b739c907fe7fd05f1e162a2ee2ee8bbea
|
File details
Details for the file hseek-1.0.0-py3-none-any.whl.
File metadata
- Download URL: hseek-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3e47dd647659418fa5a05e9ab349bb79622c5660edb3cd873369f7ce460f7f7
|
|
| MD5 |
373d75ffa00f68876097f22d0b24c0af
|
|
| BLAKE2b-256 |
408a8ffb8cc033dd703c2b8fe93df1306fcfc8681cef306511e92d3475859c63
|