Skip to main content

hotcoco

CI PyPI Crates.io License: MIT

A drop-in replacement for pycocotools, written in Rust. Same numbers, bit for bit. Up to 113× faster. No compiler to install.

pip install hotcoco
from hotcoco import init_as_pycocotools
init_as_pycocotools()

# Every pycocotools import now resolves to hotcoco. Nothing else changes.
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval

Or import it directly; the API is the same:

from hotcoco import COCO, COCOeval

coco_gt = COCO("instances_val2017.json")
coco_dt = coco_gt.load_res("detections.json")

ev = COCOeval(coco_gt, coco_dt, "bbox")
ev.run()

Documentation | Changelog | Roadmap

Why switch

  • The numbers do not change. The precision, recall, and scores arrays and every summary metric are bit-identical to pycocotools' on COCO val2017, for bbox, segm, and keypoints. Parity is a hard requirement for every change; CONTRIBUTING.md describes how it is verified.
  • It is fast. The benchmarks compare hotcoco, pycocotools, and three other evaluators on time and peak memory for bbox, segm, and keypoints on COCO val2017, with the hardware and the method.
  • It installs anywhere. Prebuilt wheels for Linux, macOS, and Windows. No Cython, no C compiler, no Microsoft Build Tools.

Beyond pycocotools

The same engine covers more than COCO detection. Each item links to its guide.

The full list is on the documentation site.

Contributing

Contributions are welcome. See CONTRIBUTING.md for the architecture overview, build and test workflow, and pre-commit checks.

License

MIT

Metadata

Release files for hotcoco 1.4.0

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

Source distribution (sdist)

Source distribution for hotcoco 1.4.0
File Size Uploaded Provenance Actions
hotcoco-1.4.0.tar.gz 1.8 MB Without provenance Details for hotcoco-1.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for hotcoco 1.4.0
File Actions
hotcoco-1.4.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for hotcoco-1.4.0-cp310-abi3-win_amd64.whl
hotcoco-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for hotcoco-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
hotcoco-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for hotcoco-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
hotcoco-1.4.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for hotcoco-1.4.0-cp310-abi3-macosx_11_0_arm64.whl
hotcoco-1.4.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for hotcoco-1.4.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 16.2 MB

Release files / hotcoco-1.4.0.tar.gz

Download URL hotcoco-1.4.0.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
8e91dfebf5a80d19589c2d566a4dbb10880dcfb15f0a1317e45bd82bb146de5a
BLAKE2b-256 checksum
How to use checksums
29331774f275e7f8322c3f81eb717976b2c25a929c948f4007dedd376621255a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hotcoco-1.4.0-cp310-abi3-win_amd64.whl

Download URL hotcoco-1.4.0-cp310-abi3-win_amd64.whl
Size 2.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0765f20b4801c75c9c707940806e638e8ee1c0aeca9d9300efeaae70fb72ec80
BLAKE2b-256 checksum
How to use checksums
3cac80c137282a4564a60b3be7b3c69d37460857d3d07345876f4f7aec3ac505
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hotcoco-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL hotcoco-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 3.0 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
e7c3a0366e36960b9743a1fca0babc4912837cd26418d7a445a707b6c0a1c488
BLAKE2b-256 checksum
How to use checksums
53c2b51c6b88dbed3bc75dec58d6873895573b320fe1ad410f5fd8bd9a48e50c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hotcoco-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL hotcoco-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 3.0 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
abbf2221f546fe17bc89f7f62b7247b9698b501bd213f5ebc92d36e33d703168
BLAKE2b-256 checksum
How to use checksums
d82c0a89a5cc10c96fff0ceaa28e7b110a16b42277e7e45a94cdb209a05575e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hotcoco-1.4.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL hotcoco-1.4.0-cp310-abi3-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0a6862d549107045c61bf31d2661f89189fa8c0b6a428b89d97b3ad976606cbb
BLAKE2b-256 checksum
How to use checksums
92383c22abbad654db6be729bcdfb3c8e1f89fd971189b7a8f10300b824e4147
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hotcoco-1.4.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL hotcoco-1.4.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 2.9 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
514293083be61da354b54704ec681288c6fc0cae430e01f47ca2e2149deec248
BLAKE2b-256 checksum
How to use checksums
77c566c7c2cffe5fa720c3022f605706e40cc00f93e4512228a79a9fd6fd71b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for hotcoco 1.4.0

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