Skip to main content

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(path)/loads(data), and Json (dict[str, Any]) for a JSON object.
    msgspec is used if it's installed, otherwise stdlib json with a warning; HPIKIT_JSON_BACKEND=msgspec or stdlib picks one explicitly.
    doc/json-backends.md compares the parsers.
  • hpikit.paths: get_files expands paths, globs and directories into a sorted tuple of paths, wrapping compressed ones in kompress.CPath if kompress is installed.
    as_paths just normalizes a path or paths, keeping a CPath as it is; Paths is the type both accept.
  • hpikit.datetime: checked AwareDateTime, NaiveDateTime and Date types, with the aware(), naive() and date_only() validators.
    They're distinct types for type checkers but plain datetime and date at runtime, so cachew handles them.
  • hpikit.cli.export: the command line of export scripts like python3 -m ghexport.export, with API parameters from a --secrets file 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.

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.20261018

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

Source distribution (sdist)

Source distribution for hpikit 0.1.20261018
File Size Uploaded Provenance Actions
hpikit-0.1.20261018.tar.gz 32.1 kB Without provenance Details for hpikit-0.1.20261018.tar.gz

Built distribution (wheel)

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

Total release size: 53.2 kB

Release files / hpikit-0.1.20261018.tar.gz

Download URL hpikit-0.1.20261018.tar.gz
Size 32.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8eac227c7f19206cb24dbc8007841d80e2a60ef5470499ae4148630811edd59d
BLAKE2b-256 checksum
How to use checksums
4f7196c36e9d5798f382e7f4833c06e9204da7c71623d076ba23b197a6b354b4
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.20261018-py3-none-any.whl

Download URL hpikit-0.1.20261018-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d3d692a4afada7f1c225d6a41416a2dc424d8541adb3048622e01cd7111471d
BLAKE2b-256 checksum
How to use checksums
debe44186ca4c4d240ddaea5d8de0686ea7b9623de11fc4859bf8ea2f426f495
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.20261018

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.

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