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-api
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_api-1.0.0.tar.gz
(7.2 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
File details
Details for the file hseek_api-1.0.0.tar.gz.
File metadata
- Download URL: hseek_api-1.0.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1d339e370acea975f7df3c1866ee51cd40debe3f9c2c69a59967b17c559fff5
|
|
| MD5 |
a199e09e713b1e4d9ec1fcb89b0bb8ec
|
|
| BLAKE2b-256 |
ef913de2e739276a6050e71d55c65ad044202fafdaf8dbbbb716aa517d31de8c
|
File details
Details for the file hseek_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: hseek_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.5 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 |
7ed6995184cdf48f26a558bd33a54d0a59f39c6ea7f0070c997934a5a8674574
|
|
| MD5 |
050281aa5e376c2969158585ea3a8ca0
|
|
| BLAKE2b-256 |
fb1bf04c906771f844c0e885fcee9f8046ef45b533a44b77adf1415dedede859
|