heatmapcalc
heatmapcalc is a minimalistic python package that provides a fast function to
add circles to a numpy array, based on a list of bounding boxes.
It is written in Rust for performance.
Installation
Install with pip:
pip install heatmapcalc
With Rust installed, you can build the package from source:
pip install .
Usage
Here is a simple example:
from heatmapcalc import heatmapcalc
# Example boxes: list of tuples (x1, y1, x2, y2)
boxes = [
(10, 300, 100, 600),
(150, 300, 300, 600),
(250, 215, 450, 425),
(430, 215, 550, 425),
]
# Shape of the heatmap
shape = (600, 800)
# Calculate the heatmap, an np.ndarray of shape (600, 800) and type i64
# Note: The output is NOT normalized - values represent raw overlap counts
heatmap = heatmapcalc(boxes, shape)
This can now be used to visualize it and overlay it on an image. This is shown in the example script.
Development
- Deploy: To deploy on PyPi, trigger the CI workflow on GitHub with the latest commit tag. The workflow builds and uploads the wheels for Linux and MacOS.
- Test: Test with
pytest.
Metadata
Release files for heatmapcalc 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| heatmapcalc-0.1.9-cp314-cp314-manylinux_2_34_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.34+ x86-64 | Details |
| heatmapcalc-0.1.9-cp313-cp313-manylinux_2_34_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.34+ x86-64 | Details |
| heatmapcalc-0.1.9-cp312-cp312-manylinux_2_34_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.34+ x86-64 | Details |
| heatmapcalc-0.1.9-cp311-cp311-manylinux_2_34_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.34+ x86-64 | Details |
Total release size: 817.6 kB
Release files / heatmapcalc-0.1.9-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | heatmapcalc-0.1.9-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 204.2 kB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
ca2b0559c048d016e82b560e7e6f0a9f6cb2f478b3adfa53e49c7ea858b01296
|
|
BLAKE2b-256 checksum How to use checksums |
bda813391763a773f2ed021c5f9f581630e50d7fa2a0feb62bc16ed432c2ba02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / heatmapcalc-0.1.9-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | heatmapcalc-0.1.9-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 204.1 kB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
f7862c215bfca56082b8b159f5f08d2e9a78251d55b62da244322e4433b35fc4
|
|
BLAKE2b-256 checksum How to use checksums |
890451a77ce7b6f4d8260eebc28560a0ba01758c7b0564dc372c5506e3f127ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / heatmapcalc-0.1.9-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | heatmapcalc-0.1.9-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 204.3 kB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
85529bdd1293cc1955de3ee30b3e3640025be5e243e39e09a56007e3de3353da
|
|
BLAKE2b-256 checksum How to use checksums |
ff365c061e613f620dfbe5edb43ca15c74a7300801e2664e1a2633e7a7f0ac34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / heatmapcalc-0.1.9-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | heatmapcalc-0.1.9-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 205.1 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
7f9c00ec09da7c3739eba6cb41bd14f79c93860bcc0f1ce0ae45b6fd589896b4
|
|
BLAKE2b-256 checksum How to use checksums |
da795fa4e1e83d2376dbe58f57379e99c43d743a66fdeb395f046611d0cda378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for heatmapcalc 0.1.9
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.