SDKs
Three focused Python SDKs. Install, configure, run.
Security SDK
Hardened FastAPI building blocks — middleware, JWT, audit, honeypot, and crypto helpers.
| Area | Components |
|---|---|
| Middleware | Strict CORS, CSP/HSTS/X-Frame headers, request-size cap, in-process rate limit, honeypot, response timing |
| Auth | JWT (HS256/384/512), bcrypt password hashing, scope-based decorators, alg:none refused |
| Audit | JSONL logger, optional HMAC hash chain, PII redactor |
| Honeypot | Pluggable trap engine, tarpit, fake admin responses, entropy-based scanner heuristics |
| Crypto | Constant-time compare, secure token generation, SHA-256, HMAC, PKCE (S256), Fernet |
pip install nomatica-security-sdkAI SDK
Shared Python library and FastAPI base class for product nodes.
| Module | What it does |
|---|---|
NomaticaApp | FastAPI base class with CORS, /health, /metrics, request ID, logging |
NomaticaConfig | Pydantic config: domain, port, allowed_origins, version |
Settings | Env-driven provider keys, URLs, CORS, log level |
deps | HTTP pools, rate limiter, auth helpers, semantic hash |
services.HttpCacheManager | LRU + TTL cache for outbound responses |
services.SearchService | Multi-provider search with classification |
services.AgentsAPI | Client for the agent mesh |
middleware.HoneypotMiddleware | Traps attackers on known-bad paths |
agents.AgentRegistry | Static + dynamic agent discovery |
pip install nomatica-ai-sdkDeFi SDK
DeFi primitives for product nodes. Trading, arbitrage, Solana, services, L402/x402.
| Subpackage | What it provides |
|---|---|
trading/ | Onchain client, DEX prices, arbitrage detector, flash loans, AI signals, portfolio, risk |
arbitrage/ | Cascade router, semantic cache, price oracle, batch scheduler, marketplace, gateway |
solana/ | Data client, DEX feeds, wallet intelligence, token scanner, programs, tx builder, NFT |
services/ | Token economy, Etherscan, EVM payments, gas oracle, contract lifecycle, bulk ingest, Bayesian trader |
services/l402/ | Lightning HTTP 402 adapter |
services/x402/ | x402 protocol adapter (USDC on Solana) |
NomaticaDeFi | FastAPI base class with CORS, logging, health, metrics, chain context |
pip install nomatica-defi-sdk