Read and write the annotation files from Halo
Project description
PyHaloXML
Python code to read/write .annotation files from Halo. Can export as .geojson for further analysis.
Examples
Example 1 : Move rectangles to a different layer and save as .annotation
.
Example 2 : Check if annotations have holes in them and save as .geojson
.
Example 3 : Show the wkt representation of the shapely polygon.
Example 4 : Create a .annotation file from coordinates.
Installation
pip install pyhaloxml
Loading speed
Rust is used to match the negative regions to positive regions, thanks to Wim Pomp!
It takes 41 seconds to load a 30.9MB file with 856454 vertices in 5769 regions with 731 holes.
Development
- Install Rust
- Clone the repository
pip install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file pyhaloxml-2.5.4.tar.gz
.
File metadata
- Download URL: pyhaloxml-2.5.4.tar.gz
- Upload date:
- Size: 484.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3f723f91848ab065f09bf24a745abad20fddad942d7b89eedce8fce9be347a5 |
|
MD5 | ffb25158cba445fb7471d1cadbe82d5f |
|
BLAKE2b-256 | ce2303ed8d51073d0720d4471ad02b0b70be61d64674a1c6a2ce98ec54c55094 |
File details
Details for the file pyhaloxml-2.5.4-cp310-abi3-win_amd64.whl
.
File metadata
- Download URL: pyhaloxml-2.5.4-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 128.8 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d952123140b8f3bbd56cd627b248957306622b3eeb2a17e04d76ba15c12338b |
|
MD5 | 940bf5e8034805f5d58ae6d7a203ea3f |
|
BLAKE2b-256 | 7d651cbf2c93988e7f642ef68cafcdbc54b1687e6aa965d69fd91a6a8362beac |
File details
Details for the file pyhaloxml-2.5.4-cp310-abi3-win32.whl
.
File metadata
- Download URL: pyhaloxml-2.5.4-cp310-abi3-win32.whl
- Upload date:
- Size: 125.6 kB
- Tags: CPython 3.10+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 860522e774b1cf54e98768d30b31afebc45824ee8ac30a636955d2c4b63f3d94 |
|
MD5 | 1eec9ef2b79b65dbf7f95beb78b408d0 |
|
BLAKE2b-256 | 30dd7551cb01788c1db3692c8a56aae6b48959224aa4817e135d4d92f8c47f5b |
File details
Details for the file pyhaloxml-2.5.4-cp310-abi3-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: pyhaloxml-2.5.4-cp310-abi3-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10+, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c0186267e06eb07a883f9ccaad382a11adbcc29d20397b5096748d501272bc2 |
|
MD5 | 78ca074da48092e2425a6b30a13ce6ac |
|
BLAKE2b-256 | c5da2d5465d096a895855d53833f4e9747a36f68a33587b5a4d6150fc1eccec8 |
File details
Details for the file pyhaloxml-2.5.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyhaloxml-2.5.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b74d3a27601444816643235a726623704725ab1ef2d005bb7e1c83466e3ed42d |
|
MD5 | 836a0d9b72229373316a8475b8e65d07 |
|
BLAKE2b-256 | f2424da38620aba048b83ff329d1260806a5bafc4aa7845379afa6ba3cf39a9b |
File details
Details for the file pyhaloxml-2.5.4-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: pyhaloxml-2.5.4-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d756861a71f834b76bb3728f71a8593f93ab894e1ea99c56254496e993c85cfc |
|
MD5 | 263199a88953273a3874671265a12cba |
|
BLAKE2b-256 | c6ee5e729a0a680bcdefdebb7ed7fca9679cdd3bf6def232fbd98a13a0ec1bdb |
File details
Details for the file pyhaloxml-2.5.4-cp310-abi3-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pyhaloxml-2.5.4-cp310-abi3-macosx_10_9_x86_64.whl
- Upload date:
- Size: 255.8 kB
- Tags: CPython 3.10+, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae6cbba3c0b250e985ee3f20fe61c1dc8cbb2511dceb33327ef9a1f76db9560d |
|
MD5 | 7f809f3cd0dc8cbf151e6dc305fdfb82 |
|
BLAKE2b-256 | dd892fd4828ceb63c2ff02e28477fee298f5480859ae4f7a491c63bdc60ad549 |