Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heatmapcalc-0.1.6.tar.gz (11.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (230.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl (266.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ s390x

heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (286.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ppc64le

heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (235.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARMv7l

heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (229.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

heatmapcalc-0.1.6-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl (241.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.5+ i686

heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (230.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl (266.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ s390x

heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (286.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ppc64le

heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (235.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARMv7l

heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (229.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

heatmapcalc-0.1.6-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl (241.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.5+ i686

heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (230.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl (268.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ s390x

heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (287.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ppc64le

heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (235.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARMv7l

heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (229.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

heatmapcalc-0.1.6-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl (242.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.5+ i686

File details

Details for the file heatmapcalc-0.1.6.tar.gz.

File metadata

  • Download URL: heatmapcalc-0.1.6.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.1

File hashes

Hashes for heatmapcalc-0.1.6.tar.gz
Algorithm Hash digest
SHA256 519957faab266b09465454660d5daa3644638fbbe277083fc87b4c571605214d
MD5 74caf31417ed0c1e4cc8cb5401183ec8
BLAKE2b-256 95e32fc94c57b71dded04802bb6e44bc1d2f087a3626623f8ed014bbdee65c1b

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 99075f4cea3c941932698bbf0d4927dc86d66d9e02932abdce6da47dd06fa558
MD5 179f15a6d57269625031f6d43f8e54d2
BLAKE2b-256 1b3bda4e93989aafa34508387cb5796864f05bd2339461a41b520aa3de30eae0

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 911966abdf8a106e12daa93d68af2253c393e4b9aa788a6133046b033c2d8735
MD5 3e0b4cedcad8124fbb7a1c71b389d824
BLAKE2b-256 d9a719b49d9c2be3aff3cb4c6fbc782ef7d1ce89602767a6c7c1022caca566a5

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 163230927145687fd74f9cf71f31cfddb6a59551da4956d3de1c05e69fb4ae5b
MD5 c116a4958035a5c1650afd80df828452
BLAKE2b-256 08e2dd980de2980ff7ec5e7ba4666f200cc75d19441bc671c3b85f52857dd0b2

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 66fe9ec421e8eba081c60c0b439ee71aa14e4f330408b7317433d60800b8a08a
MD5 2a2b4c7ffafca485b082d8672f60e71f
BLAKE2b-256 54cbcd6f5f8c9cd3e2ce48ecb018b7bf1a69278476c2ac0ebaf2d96609e11521

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ab41a94b97c0f03d5513cb0fd3936a03d2ea336136ed2c61401cdffdcfacb5a8
MD5 6c1428a026bb3953adf76f11f9a49c2b
BLAKE2b-256 73ebf9e339de4e326c84dcfdd456f5ed0861ee39ce9bf2fe5aa65001b78172fc

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 1527b5e196afd557175f9e426361cc2cd4710f0955abe8434fd80a9ed37f5c18
MD5 7a44f83779180b4331bd8f2fae71eb9c
BLAKE2b-256 6ba453ba82b5fc28af8bf66e4095b97c4a1d80583160c16dc9ef79002b0be3e4

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d00c2beb2bf43a11ef7171af977c320b87891d78bd4fbe1599464e05f0f4397b
MD5 53755c849413d0ca3ea46214e819b250
BLAKE2b-256 194198133e7598c59a610285ee51aaaaee6578bdad28d889f5c7d10a52c6c1b9

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 db18c3fedcaaf9750aa6fcdc86f2cd6eafa46211c342f5974bdd1ca7e75b7195
MD5 421eb50a158e00c08ed1f4d3c7b61441
BLAKE2b-256 6fbd7ac7a2032ffe053afbf43d9f7c68c427f10c043d665dfc46b088f13cbca5

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 e9132799ed0d3e004b1fedf7fec2a1f5b62fcfdd69b3ada9760cc92167a9bef7
MD5 a53f5b77627b3bd5040635625a2a3870
BLAKE2b-256 807689264c6e98d80627762f53bc6677b8919d5117376d574003d93b844ea779

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 938b0969ced85f867eac91fc5c892ef8cd6a06eb222a8c0fb08811c638c2f4d7
MD5 841c8b40f69c11aa1fad8d2cec34c035
BLAKE2b-256 b62d5d746175fb02bc7295793e4430c4bed4e97fa4cb121125a1d42166ab0b9e

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2893f13b483b1b8059604ec6590454492858f1e51057656f5362521b51c1c8a4
MD5 dee186e920770ce243bc4dfd12c65ad8
BLAKE2b-256 151c3c8fd38d136c0813faf42529ac48be1cf61be7eb85ef8c7a0cdf9b4873f7

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 988d49766fa7d81a0477dc37e2016b10f6b0bb8593e71601d926d6a7bd18c0e3
MD5 fe253595ae3b6ec2448ecb005cd9b80b
BLAKE2b-256 a0fd3db96fa0448e3184e03bc9de44956b0423902fdd61ec172bd0dcf5f7c8bf

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7d2a59db63ca918680df1526b4fe38805944c9baec161e597f88abc67aae5a43
MD5 707981eff3ee91269b62641099f039f4
BLAKE2b-256 e53fb0bc79c99d07417ee82caae497f887d9123ac83e55e4fc3f8c27889d212c

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 c1a0f5a67b15c330a11fd26c9a93ad2c99efd80424fa8c2b3973cbd4236bec24
MD5 83ede177222a901c8271156719c1e9b5
BLAKE2b-256 0c0d05cc9ed721f132168e226231f799f3dfba96832e64cb6d3eeb6ca9494b1e

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 9101eb0b7e84922d5f7b10ac2c5c9a69fc6799a5c754117cedafb8acfaedf907
MD5 c0d087e6ca6a8ba69309f89b08480edb
BLAKE2b-256 1fc2ca5a5e926648756d0d0aa887e95aab1ab150a6c612e0ddc40a89bc75b68b

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 318a55c8c284c47da086f526092062e17d24f247c02fe390de84a8827853de9e
MD5 d3973a96d4f3116193f0238785301409
BLAKE2b-256 b848d13e1f7e3ead44393eb62a5c99ba809c89cd724c571d2311e5cb8bfe833b

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7469f9924b1a1c4b9077b77a9c05c9b3d4db297ccccd1f22773afb165482dc03
MD5 3657a9645b6c35dbb2a8ad24cd148c27
BLAKE2b-256 282b0eaf2981d7b743a44ff5eb85cbcdd2f1b89036078b96d3a78be7e612d999

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.6-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.6-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 10c563eb69accfba3b3c5de0d530e776e4a423c28876071553b736a449df1f9f
MD5 6c356a731aa043b3e1a94c5122521b5c
BLAKE2b-256 7a62435ce3ae038398d1ae74054eaee3c5aa250cd871847dfe17dc81c1b9c49d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page