HyperSDK
AIM Intelligence Middleware for the HyperCycle IoAI Network.
Add intelligence to any AIM with 2 lines of code.
from hyperaim_sdk import HyperSDK
hs = HyperSDK(app, api_key="qt_your_key_here", aim_name="my-aim")
What You Get (Free Tier)
- Automatic telemetry — every request tracked: latency, errors, callers, endpoints
- Live /health endpoint — uptime, error rate, avg latency, unique callers
- Live /qt/stats endpoint — detailed rolling metrics with percentiles
- Per-caller rate limiting — protect your AIM from abuse
- Request ID tracking — trace any request via response headers
- Batched telemetry upload — minimal overhead, flushes every 60s
Intelligence Engine (powered by QyraTech)
Your telemetry feeds the QyraTech Intelligence Server, which provides:
- Quality scoring — reliability, performance, demand, consistency (0-100 each)
- Anomaly detection — latency spikes, error bursts, traffic drops detected automatically
- Demand prediction — peak hours, trend direction, future call volume
- Network rankings — how your AIM compares to all others on the IoAI
- Cross-AIM patterns — which AIMs are frequently used together
Installation
pip install hyperaim-sdk
Quick Start
from fastapi import FastAPI
from hyperaim_sdk import HyperSDK
app = FastAPI(title="My AIM")
# Register at http://62.171.162.38:8095/register to get your API key
hs = HyperSDK(
app,
api_key="qt_your_key_here",
aim_name="my-awesome-aim",
)
@app.post("/my-endpoint")
async def my_endpoint():
# Your AIM logic here — HyperSDK tracks everything automatically
return {"result": "hello"}
Configuration
hs = HyperSDK(
app,
api_key="qt_...", # Required: your API key
aim_name="my-aim", # Name shown in dashboards
server_url="http://62.171.162.38:8095", # Intelligence server
rate_limit=100, # Max requests per window per caller
rate_window=60, # Rate limit window in seconds
flush_interval=60, # Telemetry flush interval in seconds
enable_telemetry=True, # Send telemetry to server
enable_rate_limiting=True, # Enable per-caller rate limiting
enable_health=True, # Add /health endpoint
enable_stats=True, # Add /qt/stats endpoint
excluded_paths=["/health", "/docs"], # Paths to skip tracking
)
Response Headers
Every tracked request gets these headers:
| Header | Description |
|---|---|
X-Request-ID |
Unique request identifier |
X-HyperSDK |
SDK version |
X-Response-Time-Ms |
Request latency in milliseconds |
Endpoints Added
| Endpoint | Description |
|---|---|
GET /health |
Health check with live stats |
GET /qt/stats |
Detailed rolling metrics |
GET /qt/rate-limit |
Current rate limit status for caller |
Get Your API Key
curl -X POST http://62.171.162.38:8095/register \
-H 'Content-Type: application/json' \
-d '{"name": "my-aim", "owner": "your-name", "url": "http://your-server:port"}'
View Your Dashboard
http://62.171.162.38:8095/dashboard/{your_aim_id}
Built By
QyraTech — AI Agent Intelligence Infrastructure on the HyperCycle IoAI Network.
- Intelligence Server: http://62.171.162.38:8095
- QyraTech Home: http://62.171.162.38:8085
- HyperCycle: https://www.hypercycle.ai
Metadata
Release files for hyperaim-sdk 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 | |
|---|---|---|---|
| hyperaim_sdk-1.0.0.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hyperaim_sdk-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / hyperaim_sdk-1.0.0.tar.gz
| Download URL | hyperaim_sdk-1.0.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2786283b1ae11bfa92336027aa8ab59eb0dd536b735f539f9521f576fb2b2d17
|
|
BLAKE2b-256 checksum How to use checksums |
943eb06857e75590aa067cef671ac10d9157ebe4947d171602f0d564cb9671f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / hyperaim_sdk-1.0.0-py3-none-any.whl
| Download URL | hyperaim_sdk-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b754bfcfba5a0d4a4624a14dda87357aff1b52d59c30cf8966c9f98fd2728cb4
|
|
BLAKE2b-256 checksum How to use checksums |
ec9ba9928e85027ba33723d99ee577e980dd28c245996fe2eaab792f01f6d6f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|