Skip to main content

HyperSDK — AIM Intelligence Middleware. Add telemetry, quality scoring, rate limiting, anomaly detection, and demand prediction to any HyperCycle AIM with 2 lines of code.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyperaim_sdk-1.0.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hyperaim_sdk-1.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file hyperaim_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: hyperaim_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for hyperaim_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2786283b1ae11bfa92336027aa8ab59eb0dd536b735f539f9521f576fb2b2d17
MD5 2ae3ab3a5a2c63135469088e0ccfca66
BLAKE2b-256 943eb06857e75590aa067cef671ac10d9157ebe4947d171602f0d564cb9671f7

See more details on using hashes here.

File details

Details for the file hyperaim_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: hyperaim_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for hyperaim_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b754bfcfba5a0d4a4624a14dda87357aff1b52d59c30cf8966c9f98fd2728cb4
MD5 13c7c68415174facd5453abf0ff26b69
BLAKE2b-256 ec9ba9928e85027ba33723d99ee577e980dd28c245996fe2eaab792f01f6d6f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page