Thin Python SDK for the understand-quickly registry of code-knowledge graphs.
Project description
understand-quickly (Python SDK)
A thin Python client for the understand-quickly registry of code-knowledge graphs.
pip install understand-quickly
- Sync client (zero runtime deps beyond
httpx):Registry - Async client (using
httpx.AsyncClient):AsyncRegistry - CLI:
python -m understand_quicklyorunderstand-quickly - 60-second in-memory TTL cache by default.
Quick examples
from understand_quickly import Registry
reg = Registry() # default registry: looptech-ai.github.io/understand-quickly
# 1. List all healthy entries.
entries = reg.list(status="ok")
# 2. Filter by format.
ua = reg.list(format="understand-anything@1")
# 3. Resolve an entry id to its graph body.
graph = reg.get_graph("Lum1104/Understand-Anything")
# 4. Map a GitHub URL back to its registry entry.
hit = reg.find_graph_for_repo("https://github.com/owner/repo")
# 5. Cross-graph concept search (uses stats.json + entry metadata).
results = reg.search("auth", scope="all")
Async equivalent
import asyncio
from understand_quickly import AsyncRegistry
async def main() -> None:
async with AsyncRegistry() as reg:
entries = await reg.list(status="ok")
graph = await reg.get_graph(entries[0]["id"])
print(len(graph.get("nodes", [])))
asyncio.run(main())
CLI
understand-quickly list [--status ok] [--format understand-anything@1] [--owner OWNER] [--tag TAG]
understand-quickly get-graph <entry_id>
understand-quickly find <github_url_or_owner/repo>
understand-quickly search <query> [--scope all|entries|concepts]
understand-quickly stats
JSON is emitted by default. Add --pretty for indented JSON (and a compact table for list). Both python -m understand_quickly ... and understand-quickly ... work after install.
Exit codes: 0 success, 1 not-found (get-graph, find), 2 HTTP/parse error, 64 usage error.
Environment variables
| Name | Purpose | Default |
|---|---|---|
UNDERSTAND_QUICKLY_REGISTRY |
Override the registry base URL. | https://looptech-ai.github.io/understand-quickly/ |
The base URL can also be passed explicitly: Registry("https://my-mirror.example/").
Public types
understand_quickly.types exports TypedDict shapes for the documents this SDK fetches:
Entry— one registry entry (matchesregistry.json).Stats,StatsTotals,StatsKind,StatsLanguage,StatsConcept—stats.jsonshape.WellKnown,WellKnownRepo—.well-known/repos.jsonshape.SearchHit— single result fromRegistry.search().Graph— opaque dict, shape depends onentry["format"].
Everything is total=False so you can rely on entry.get("status") returning safely.
Development
cd python-sdk
python -m pip install -e ".[dev]"
pytest -q
python -m build .
Release notes
See the project release notes on GitHub. Python SDK versions are tagged pysdk-vX.Y.Z.
License
Apache 2.0 — Copyright (c) 2026 Alex Macdonald-Smith. Registry data covered by the Understand-Quickly Data License 1.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file understand_quickly-0.1.0.tar.gz.
File metadata
- Download URL: understand_quickly-0.1.0.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
565ab8276b5d53e40f9ed944ee3611897a7ba9d19eed00d5228f24ca8ea9ae88
|
|
| MD5 |
91173bf35a8d6abf829f1b47b62a06db
|
|
| BLAKE2b-256 |
5245696b39d8c8136466060b53525d46d47ef58592828099d1d35d7d52f8481f
|
File details
Details for the file understand_quickly-0.1.0-py3-none-any.whl.
File metadata
- Download URL: understand_quickly-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a9076367ef41d43263b1a374fc1aad0237a2be201e48ffffa221d3dce893bd8
|
|
| MD5 |
b281e0ceec880b16aebff9e44ae44452
|
|
| BLAKE2b-256 |
ed81bf85ceb5a9c941bbb795ddd235d707ba98d4f106336ff1e8f03c634972ff
|