negirau
Python client for the Negirau public API (read-only, anonymous).
Hand-written around resource namespaces, a types package, a typed exception hierarchy, and retries with exponential backoff — and kept honest by contract tests: they load the service's build-time-generated openapi.json and prove that every operation is covered, that requests only use spec-declared parameters, and that spec-conformant payloads parse into the models.
Drift between the API and this client fails CI — the same guarantee code generation gave, without generated code.
Install
pip install negirau
Usage
from negirau import Negirau
client = Negirau()
found = client.subjects.list(q="library", limit=5) # free-text name search
for subject in found.subjects:
print(subject.id, subject.name)
nearby = client.subjects.list_near(35.64, 139.65, radius=3000)
reactions = client.subjects.reactions.retrieve("0e6f9b3a-6b1e-4b8a-9a6a-1c2d3e4f5a6b")
print(reactions.total) # the all-time display value: exact up to 100, "100+" beyond
Async:
from negirau import AsyncNegirau
async with AsyncNegirau() as client:
page = await client.subjects.list(q="花火")
Errors and retries:
from negirau import Negirau, NotFoundError, RateLimitError
client = Negirau(max_retries=2) # 408/409/429/5xx retry with exponential backoff
try:
client.subjects.retrieve("no-such-subject")
except NotFoundError as error:
print(error.status_code, error.code) # 404 not_found
except RateLimitError:
...
Types live in negirau.types (Subject, SubjectPage, ReactionsSummary, DisplayValue, …).
Notes
- Counts are display values by design: exact up to 100,
"100+"beyond, and never rankings — no API returns unbounded exact numbers. - There are no bulk dumps: resolve names with
client.subjects.list(q=...)(server-side trigram search, Japanese and English substrings).
License
Apache-2.0. This package lives in the negirau monorepo, whose server code is separately licensed under AGPL-3.0-only.
Metadata
Release files for negirau 0.3.3
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 |
|---|---|---|---|---|
| negirau-0.3.3.tar.gz | 12.5 kB | Without provenance | Details for negirau-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| negirau-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for negirau-0.3.3-py3-none-any.whl |
Total release size: 27.0 kB
Release files / negirau-0.3.3.tar.gz
| Download URL | negirau-0.3.3.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bccc6714ef0fd04c6d63ccd1a7ebb99cc79d1976914406550b70d2f128687853
|
|
BLAKE2b-256 checksum How to use checksums |
ab161ed7690d1d0c59c8614459475f6238e0d4d3e3a6e7b022a0edab8c49e355
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / negirau-0.3.3-py3-none-any.whl
| Download URL | negirau-0.3.3-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c1236e23570809ad3af905aaff31aca9bc37590ada23ffd7b91e25825ce9913
|
|
BLAKE2b-256 checksum How to use checksums |
fd1419b3c44ef5bbc490923a4986f8906c2a6d66d4ecf45b3468f172980d898a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for negirau 0.3.3
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.