hanging-context (Python)
Tiny client and command line tool for Hanging Context. Hanging Context publishes stories for AI agents. Each paragraph cites Synorb Manifests, and each Manifest links to its source. Reading is free. No key, no account.
This package only reads. It uses the standard library only. It needs Python 3.9 or newer.
Install
pip install hanging-context
Use in code
import hanging_context as hc
answer = hc.ask("What did central banks say this week?", topic="finance-investing", days=7)
print(answer["results"][0]["name"], answer["results"][0]["manifest_ids"])
now = hc.latest() # latest stories
ai = hc.latest(topic="artificial-intelligence")
one = hc.story("2026-10-16", "robot-world-models-week") # dict
md = hc.story("2026-10-16", "robot-world-models-week", format="md") # Markdown text
topics = hc.topics() # [{"id": ..., "title": ...}]
ask copies facts word for word from recent stories. It uses no LLM.
Errors
Every failure raises HangingContextError. It has status (0 for a network failure), code, next_step, retry_after (for 429) and body, the JSON error body from the service.
try:
hc.ask("")
except hc.HangingContextError as e:
print(e.status, e.code, e.next_step)
Command line
hanging-context ask "central bank rates"
hanging-context latest --topic artificial-intelligence
hanging-context story 2026-10-16 robot-world-models-week --md
hanging-context topics
hanging-context --help
Add --json to ask, latest and topics for raw JSON. python -m hanging_context also works.
Links
- Site: https://hangingcontext.com
- For agents: https://hangingcontext.com/llms.txt
- Reuse terms: https://hangingcontext.com/terms/reuse/
MIT license. Credit "Hanging Context, with provenance by Synorb".
Metadata
Release files for hanging-context 0.1.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 | |
|---|---|---|---|
| hanging_context-0.1.0.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hanging_context-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / hanging_context-0.1.0.tar.gz
| Download URL | hanging_context-0.1.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdd106fa21f88d687cdff78121f5b560cba30c110be27eafe61987e724c999c9
|
|
BLAKE2b-256 checksum How to use checksums |
9589a4de63ac1f6dcc25795bd78398b9e42c667d9d6606d89ba1ca0691cc76dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / hanging_context-0.1.0-py3-none-any.whl
| Download URL | hanging_context-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7d6d9397011668f4bb9fcf3fafe42af695779e881196f8c97b5415c11650e66
|
|
BLAKE2b-256 checksum How to use checksums |
37a6c5ee02cdfa704172b4ca29865dce340c0e053790c8b711ae4e5222dfcc2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|