hpikit
The library shared by HPI and its data exporters,
e.g. ghexport and rexport.
It doesn't depend on HPI, so the exporters work without it.
hpikit has no required dependencies.
Its extras are:
optional: msgspec for faster JSON parsing, and kompress for reading compressed files.interactive: IPython, for the DAL command line's--interactive.
Modules
hpikit.json:load(fp)/loads(data)like the standard library's json, andJson(dict[str, Any]) for a JSON object.
msgspec is used if it's installed, otherwise stdlib json with a warning;HPIKIT_JSON_BACKEND=msgspecorstdlibpicks one explicitly.
doc/json_backends.md compares the parsers.hpikit.paths:get_filesexpands paths, globs and directories into a sorted tuple of paths, wrapping compressed ones inkompress.CPathif kompress is installed.
as_pathsjust normalizes a path or paths, keeping aCPathas it is;Pathsis the type both accept.hpikit.datetime: checkedAwareDateTime,NaiveDateTimeandDatetypes, with theaware(),naive()anddate_only()validators.
They're distinct types for type checkers but plaindatetimeanddateat runtime, so cachew handles them.hpikit.cli.export: the command line of export scripts likepython3 -m ghexport.export, with API parameters from a--secretsfile or--<param>options.hpikit.cli.dal: the command line of DAL modules, e.g.python3 -m ghexport.dal /path/to/exports/*.json.zst.hpikit.cli.format_epilog: renders a parser's epilog for the literate READMEs.hpikit.cli.testing:check_cli_starts(module), a smoke test thatpython -m <module> --helpworks, for exporters' tests.
Development
Run checks with tox -e ruff, tox -e format, tox -e tests, tox -e mypy and tox -e ty.
The setup follows pymplate.
Metadata
Release files for hpikit 0.1.20261019
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 |
|---|---|---|---|---|
| hpikit-0.1.20261019.tar.gz | 32.8 kB | Without provenance | Details for hpikit-0.1.20261019.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hpikit-0.1.20261019-py3-none-any.whl | Python 3 | none | any | Details for hpikit-0.1.20261019-py3-none-any.whl |
Total release size: 54.8 kB
Release files / hpikit-0.1.20261019.tar.gz
| Download URL | hpikit-0.1.20261019.tar.gz |
|---|---|
| Size | 32.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
627646004d5e44d6997b0b0e1eb8580153ccb92800b2f6f5118185fd5e65d4ba
|
|
BLAKE2b-256 checksum How to use checksums |
866dd26209448b9700b0fe5e0d69cf0d202a1c7eb7aae89a2c65b1100e52c7c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / hpikit-0.1.20261019-py3-none-any.whl
| Download URL | hpikit-0.1.20261019-py3-none-any.whl |
|---|---|
| Size | 21.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fdc3dd309018be7b6818d7e974025e97093916ceb651a6f95514fd72b5c748d
|
|
BLAKE2b-256 checksum How to use checksums |
d9333499b349641343d879e2c2e9c9a0132410055dfc927c810e00b3b84ef4ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for hpikit 0.1.20261019
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.