py_lapper
A pure python port of nim-lapper. Please also see the rust lib, rust-lapper
Stay tuned for a pyO3 wrapper for the rust lib.
Documentation can be found here.
Install
pip install py_lapper
Usage
from py_lapper import Interval, Lapper, Cursor
intervals = [Interval(0, 5, True), Interval(4, 8, True), Interval(9, 12, True)]
lapper = Lapper(intervals)
found = [iv for iv in lapper.find(4, 7)]
# found = [Interval(0, 5, True), Interval(4, 8, True)]
# Use seek when you will have many queries in sorted order.
cursor = Cursor(0)
found = [iv for iv in lapper.seek(1, 4, cursor)]
# found = [Interval(0, 5, True)]
# cursor = Cursor(2)
found = [iv for iv in lapper.seek(5, 7, cursor)]
# found = [Interval(4, 8, True)]
# cursor = Cursor(3)
Changelog
1/17/2020 -- 0.9.4
* Fix bug with seek where it skipped last match
1/16/2020 -- 0.9.3
* Added type hints
* Added documentation
Metadata
Release files for py-lapper 0.9.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py_lapper-0.9.5.tar.gz | 4.1 kB | Without provenance | Details for py_lapper-0.9.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_lapper-0.9.5-py3-none-any.whl | Python 3 | none | any | Details for py_lapper-0.9.5-py3-none-any.whl |
Total release size: 9.1 kB
Release files / py_lapper-0.9.5.tar.gz
| Download URL | py_lapper-0.9.5.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d429e8b97795eaf96b55636c1798b4e78de640ed79c53e44c82e53b7c3ecc9c1
|
|
BLAKE2b-256 checksum How to use checksums |
31fcf901730b574bc21d31516efae262f56cc121d508b0bac9a45dc53da6b946
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.2 CPython/3.7.5 Darwin/18.7.0
|
Release files / py_lapper-0.9.5-py3-none-any.whl
| Download URL | py_lapper-0.9.5-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f466916925acd657a84a07b9b2ec3bc3e93be7c8805e45b4502b3324d08e682
|
|
BLAKE2b-256 checksum How to use checksums |
0017c85f7da1198af4b86526462fda7b5291ded4bfdd1d5f92ff243c9721cddc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.2 CPython/3.7.5 Darwin/18.7.0
|
Security for py-lapper 0.9.5
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.