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())
Metadata
Release files for hseek-api 1.1.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 | Provenance | Actions |
|---|---|---|---|---|
| hseek_api-1.1.0.tar.gz | 7.2 kB | Without provenance | Details for hseek_api-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hseek_api-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for hseek_api-1.1.0-py3-none-any.whl |
Total release size: 13.8 kB
Release files / hseek_api-1.1.0.tar.gz
| Download URL | hseek_api-1.1.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f91577e6bc880af64276474158612b2d1513c8f3b2bc58fb029c02a8b06c611
|
|
BLAKE2b-256 checksum How to use checksums |
abeabac1c874a92bebfb0ac63b422c5ad795346736bbc6246cf1814ea0608c71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / hseek_api-1.1.0-py3-none-any.whl
| Download URL | hseek_api-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b017327441f027dc330c31320758d6fb4607eb29e5d2b0b96ac5c059cdbf7f0
|
|
BLAKE2b-256 checksum How to use checksums |
656efc48b0062c3ce81f9e9907a00993fd169dc9b62da59bfa7e4a599ef860ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Security for hseek-api 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.