Skip to main content

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_id string and the SDK handles the rest.
  • Full Control: Toggle thinking and search on a per-message basis.
  • Async & Sync Support: Built-in Client and AsyncClient.
  • 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)

Source distribution for hseek-api 1.1.0
File Size Uploaded
hseek_api-1.1.0.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hseek-api 1.1.0
File Interpreter ABI Platform
hseek_api-1.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page