researchzosho (Python)
ResearchZosho — 研究蔵書, the research holdings. The 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.5.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 | |
|---|---|---|---|
| researchzosho-0.5.0.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| researchzosho-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / researchzosho-0.5.0.tar.gz
| Download URL | researchzosho-0.5.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc900662f6f9235af1843d717a9caa3ca6d2b4a555bb9cc9f43601977e9fa369
|
|
BLAKE2b-256 checksum How to use checksums |
7c1c8279c60b8cd6024ebf55a80a2ec26c853a5f471f7ad7486f8d90010a7468
|
| 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.5.0-py3-none-any.whl
| Download URL | researchzosho-0.5.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
447752c18f6a0261ded3fa964100d77fc192295f8db6544f56f682cab04ceaaa
|
|
BLAKE2b-256 checksum How to use checksums |
c60238d8265203e5a467b83afadd16710863e46e137e77f6927b3399a60d16ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|