Skip to main content

researchzosho (Python)

ResearchZosho — 研究蔵書, the research holdings. Research Harness For The Rest Of Us.

A thin client for The Librarian over HTTP — the library protocol, contract 1.0 (docs/LIBRARY_PROTOCOL.md). Transport and types only; the library's one implementation lives in the daemon. No dependencies beyond the standard library.

from researchzosho import Librarian, LibraryError

lib = Librarian("http://127.0.0.1:4649", token="…")   # token from `researchzosho reader token <did>`
pkg = lib.ask("How do subtitlers handle keigo?")
if pkg["holds_nothing"]:
    print("nothing held")
for e in pkg["entries"]:
    print(e["id"], e["kind"], e["state"], e["title"])

v = lib.established("Keigo has no direct English equivalent")
print(v["verdict"], [a["id"] for a in v["accepted"]], [d["id"] for d in v["unreviewed"]])

text = lib.read("https://example.org/paper.pdf", max_chars=4000)["text"]

job = lib.research("What did Japanese sources say about keigo in subtitles after 2020?")
result = lib.wait(job["job_id"])          # an overnight ask; poll or wait

Every result carries library_id, library_name, contract. Errors raise LibraryError with .code in not_found | forbidden | no_sources | invalid_args | unavailable and a message you can show to a person.

pip install researchzosho. The CLI is researchzosho (zosho for short).

Release files for researchzosho 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for researchzosho 0.1.0
File Size Uploaded
researchzosho-0.1.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for researchzosho 0.1.0
File Interpreter ABI Platform
researchzosho-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / researchzosho-0.1.0.tar.gz

Download URL researchzosho-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c66e59385028059a54b68031775d594b41e4f48ac3b6819560d71161e35de336
BLAKE2b-256 checksum
How to use checksums
c8d7e565beb9d48d9e32cd49ce7bf999fd62f8d4664bc58c49184ca17e2676b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / researchzosho-0.1.0-py3-none-any.whl

Download URL researchzosho-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76498a72bb6f6b01fa0172b991ec343e03c2ced18773ee3be5c3d7f506e81255
BLAKE2b-256 checksum
How to use checksums
1b53c587135e5fb8a66e30441c40faa57cc64da61a367a96179b9a6991012414
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

0.5.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page