UltraDemon Python SDK
Official Python client for UltraDemon: Sovereign Persistent Agent Memory and Sub-10ms Edge Web Search.
Installation
pip install ultrademon
For LangChain retriever integration:
pip install "ultrademon[langchain]"
Quickstart
1. Web Search (<15ms Edge Retrieval)
from ultrademon import Ultrademon
client = Ultrademon(api_key="ud_live_your_api_key_here")
# Mode 1: Instant sub-15ms search
response = client.search.instant("Frankfurt data center latency benchmarks")
for hit in response.results:
print(f"{hit.title} -> {hit.url}")
# Mode 2: Hybrid BM25 full-text rank with PageRank
standard_results = client.search.standard("Cloudflare D1 SQLite FTS5")
# Mode 3: Deep research expansion
deep_results = client.search.deep("Autonomous agent persistent memory architectures")
2. Persistent Memory (Sovereign SQLite FTS5)
# Store long-term knowledge across scales
mem = client.memory.store(
content="Production database is hosted on Cloudflare D1 in Frankfurt.",
category="infra",
container_tag="team_core",
scale="entity" # ephemeral, entity, cognitive, or collective
)
print(f"Memory stored: {mem.memory_id}")
# Recall knowledge using BM25 relevance matching
recall_res = client.memory.recall(
query="Where is our database hosted?",
container_tag="team_core",
limit=3
)
for item in recall_res.memories:
print(f"[{item.score:.2f}] {item.content}")
3. Asynchronous Client (FastAPI, Asyncio, Agents)
import asyncio
from ultrademon import AsyncUltrademon
async def main():
async with AsyncUltrademon(api_key="ud_live_...") as client:
results = await client.search.instant("Anycast edge routing")
print(f"Found {results.count} results in {results.latency_ms}ms")
asyncio.run(main())
4. LangChain Integration
from ultrademon.langchain import UltrademonRetriever
retriever = UltrademonRetriever(
api_key="ud_live_...",
container_tag="customer_support",
top_k=5
)
# Use inside any LangChain chain, agent, or runnable
docs = retriever.get_relevant_documents("What is the refund policy?")
for doc in docs:
print(doc.page_content)
5. Command-Line Interface (CLI)
# Search from terminal
ultrademon search "SQLite FTS5 BM25" --mode 1
# Store knowledge
ultrademon memory store "Server configuration note" --category notes
# Recall knowledge
ultrademon memory recall "configuration"
# Check API quota
ultrademon usage
License
MIT
Metadata
Release files for ultrademon 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 | Provenance | Actions |
|---|---|---|---|---|
| ultrademon-1.0.0.tar.gz | 9.6 kB | Without provenance | Details for ultrademon-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ultrademon-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ultrademon-1.0.0-py3-none-any.whl |
Total release size: 22.3 kB
Release files / ultrademon-1.0.0.tar.gz
| Download URL | ultrademon-1.0.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26cd5ca28ceabbce4cf546dbff85516fd7de72028fb43e01626ead3c91ebe807
|
|
BLAKE2b-256 checksum How to use checksums |
dc67d0491723139b937015002ea83795aa17ff162e15ffa1ae6de925f891df43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / ultrademon-1.0.0-py3-none-any.whl
| Download URL | ultrademon-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6305e1b3eefdf3f94437080fd9d8bf5fe9c020c18f88a9fe2365189f17d75a0
|
|
BLAKE2b-256 checksum How to use checksums |
2890fab7e19eefd3203b41214cbb93267cc613fe4b72ccd26589de0877cac0ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for ultrademon 1.0.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.