intervaltree


Nameintervaltree JSON
Version 3.1.0 PyPI version JSON
download
home_pagehttps://github.com/chaimleib/intervaltree
SummaryEditable interval tree data structure for Python 2 and 3
upload_time2020-08-03 08:01:11
maintainer
docs_urlNone
authorChaim Leib Halbert, Konstantin Tretyakov
requires_python
licenseApache License, Version 2.0
keywords interval-tree data-structure intervals tree
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            [![Build status badge][]][build status]

intervaltree
============

A mutable, self-balancing interval tree for Python 2 and 3. Queries may be by point, by range overlap, or by range envelopment.

This library was designed to allow tagging text and time intervals, where the intervals include the lower bound but not the upper bound.

**Version 3 changes!**

* The `search(begin, end, strict)` method no longer exists. Instead, use one of these:
    * `at(point)`
    * `overlap(begin, end)`
    * `envelop(begin, end)`
* The `extend(items)` method no longer exists. Instead, use `update(items)`.
* Methods like `merge_overlaps()` which took a `strict` argument consistently default to `strict=True`. Before, some methods defaulted to `True` and others to `False`.

Installing
----------

```sh
pip install intervaltree
```

Features
--------

* Supports Python 2.7 and Python 3.5+ (Tested under 2.7, and 3.5 thru 3.8)
* Initializing
    * blank `tree = IntervalTree()`
    * from an iterable of `Interval` objects (`tree = IntervalTree(intervals)`)
    * from an iterable of tuples (`tree = IntervalTree.from_tuples(interval_tuples)`)

* Insertions
    * `tree[begin:end] = data`
    * `tree.add(interval)`
    * `tree.addi(begin, end, data)`

* Deletions
    * `tree.remove(interval)`             (raises `ValueError` if not present)
    * `tree.discard(interval)`            (quiet if not present)
    * `tree.removei(begin, end, data)`    (short for `tree.remove(Interval(begin, end, data))`)
    * `tree.discardi(begin, end, data)`   (short for `tree.discard(Interval(begin, end, data))`)
    * `tree.remove_overlap(point)`
    * `tree.remove_overlap(begin, end)`   (removes all overlapping the range)
    * `tree.remove_envelop(begin, end)`   (removes all enveloped in the range)

* Point queries
    * `tree[point]`
    * `tree.at(point)`                    (same as previous)

* Overlap queries
    * `tree[begin:end]`
    * `tree.overlap(begin, end)`          (same as previous)

* Envelop queries
    * `tree.envelop(begin, end)`

* Membership queries
    * `interval_obj in tree`              (this is fastest, O(1))
    * `tree.containsi(begin, end, data)`
    * `tree.overlaps(point)`
    * `tree.overlaps(begin, end)`

* Iterable
    * `for interval_obj in tree:`
    * `tree.items()`

* Sizing
    * `len(tree)`
    * `tree.is_empty()`
    * `not tree`
    * `tree.begin()`          (the `begin` coordinate of the leftmost interval)
    * `tree.end()`            (the `end` coordinate of the rightmost interval)

* Set-like operations
    * union
        * `result_tree = tree.union(iterable)`
        * `result_tree = tree1 | tree2`
        * `tree.update(iterable)`
        * `tree |= other_tree`

    * difference
        * `result_tree = tree.difference(iterable)`
        * `result_tree = tree1 - tree2`
        * `tree.difference_update(iterable)`
        * `tree -= other_tree`

    * intersection
        * `result_tree = tree.intersection(iterable)`
        * `result_tree = tree1 & tree2`
        * `tree.intersection_update(iterable)`
        * `tree &= other_tree`

    * symmetric difference
        * `result_tree = tree.symmetric_difference(iterable)`
        * `result_tree = tree1 ^ tree2`
        * `tree.symmetric_difference_update(iterable)`
        * `tree ^= other_tree`

    * comparison
        * `tree1.issubset(tree2)` or `tree1 <= tree2`
        * `tree1 <= tree2`
        * `tree1.issuperset(tree2)` or `tree1 > tree2`
        * `tree1 >= tree2`
        * `tree1 == tree2`

* Restructuring
    * `chop(begin, end)`      (slice intervals and remove everything between `begin` and `end`, optionally modifying the data fields of the chopped-up intervals)
    * `slice(point)`          (slice intervals at `point`)
    * `split_overlaps()`      (slice at all interval boundaries, optionally modifying the data field)
    * `merge_overlaps()` (joins overlapping intervals into a single interval, optionally merging the data fields)
    * `merge_equals()` (joins intervals with matching ranges into a single interval, optionally merging the data fields)

* Copying and typecasting
    * `IntervalTree(tree)`    (`Interval` objects are same as those in tree)
    * `tree.copy()`           (`Interval` objects are shallow copies of those in tree)
    * `set(tree)`             (can later be fed into `IntervalTree()`)
    * `list(tree)`            (ditto)

* Pickle-friendly
* Automatic AVL balancing

Examples
--------

* Getting started

    ``` python
    >>> from intervaltree import Interval, IntervalTree
    >>> t = IntervalTree()
    >>> t
    IntervalTree()

    ```

* Adding intervals - any object works!

    ``` python
    >>> t[1:2] = "1-2"
    >>> t[4:7] = (4, 7)
    >>> t[5:9] = {5: 9}

    ```

* Query by point

    The result of a query is a `set` object, so if ordering is important,
    you must sort it first.

    ``` python
    >>> sorted(t[6])
    [Interval(4, 7, (4, 7)), Interval(5, 9, {5: 9})]
    >>> sorted(t[6])[0]
    Interval(4, 7, (4, 7))

    ```

* Query by range

    Note that ranges are inclusive of the lower limit, but non-inclusive of the upper limit. So:

    ``` python
    >>> sorted(t[2:4])
    []

    ```

    Since our search was over `2 ≤ x < 4`, neither `Interval(1, 2)` nor `Interval(4, 7)`
    was included. The first interval, `1 ≤ x < 2` does not include `x = 2`. The second
    interval, `4 ≤ x < 7`, does include `x = 4`, but our search interval excludes it. So,
    there were no overlapping intervals. However:

    ``` python
    >>> sorted(t[1:5])
    [Interval(1, 2, '1-2'), Interval(4, 7, (4, 7))]

    ```

    To only return intervals that are completely enveloped by the search range:

    ``` python
    >>> sorted(t.envelop(1, 5))
    [Interval(1, 2, '1-2')]

    ```

* Accessing an `Interval` object

    ``` python
    >>> iv = Interval(4, 7, (4, 7))
    >>> iv.begin
    4
    >>> iv.end
    7
    >>> iv.data
    (4, 7)

    >>> begin, end, data = iv
    >>> begin
    4
    >>> end
    7
    >>> data
    (4, 7)

    ```

* Constructing from lists of intervals

    We could have made a similar tree this way:

    ``` python
    >>> ivs = [(1, 2), (4, 7), (5, 9)]
    >>> t = IntervalTree(
    ...    Interval(begin, end, "%d-%d" % (begin, end)) for begin, end in ivs
    ... )

    ```

    Or, if we don't need the data fields:

    ``` python
    >>> t2 = IntervalTree(Interval(*iv) for iv in ivs)

    ```

    Or even:

    ``` python
    >>> t2 = IntervalTree.from_tuples(ivs)

    ```

* Removing intervals

    ``` python
    >>> t.remove(Interval(1, 2, "1-2"))
    >>> sorted(t)
    [Interval(4, 7, '4-7'), Interval(5, 9, '5-9')]

    >>> t.remove(Interval(500, 1000, "Doesn't exist"))  # raises ValueError
    Traceback (most recent call last):
    ValueError

    >>> t.discard(Interval(500, 1000, "Doesn't exist"))  # quietly does nothing

    >>> del t[5]  # same as t.remove_overlap(5)
    >>> t
    IntervalTree()

    ```

    We could also empty a tree entirely:

    ``` python
    >>> t2.clear()
    >>> t2
    IntervalTree()

    ```

    Or remove intervals that overlap a range:

    ``` python
    >>> t = IntervalTree([
    ...     Interval(0, 10),
    ...     Interval(10, 20),
    ...     Interval(20, 30),
    ...     Interval(30, 40)])
    >>> t.remove_overlap(25, 35)
    >>> sorted(t)
    [Interval(0, 10), Interval(10, 20)]

    ```

    We can also remove only those intervals completely enveloped in a range:

    ``` python
    >>> t.remove_envelop(5, 20)
    >>> sorted(t)
    [Interval(0, 10)]

    ```

* Chopping

    We could also chop out parts of the tree:

    ``` python
    >>> t = IntervalTree([Interval(0, 10)])
    >>> t.chop(3, 7)
    >>> sorted(t)
    [Interval(0, 3), Interval(7, 10)]

    ```

    To modify the new intervals' data fields based on which side of the interval is being chopped:

    ``` python
    >>> def datafunc(iv, islower):
    ...     oldlimit = iv[islower]
    ...     return "oldlimit: {0}, islower: {1}".format(oldlimit, islower)
    >>> t = IntervalTree([Interval(0, 10)])
    >>> t.chop(3, 7, datafunc)
    >>> sorted(t)[0]
    Interval(0, 3, 'oldlimit: 10, islower: True')
    >>> sorted(t)[1]
    Interval(7, 10, 'oldlimit: 0, islower: False')

    ```

* Slicing

    You can also slice intervals in the tree without removing them:

    ``` python
    >>> t = IntervalTree([Interval(0, 10), Interval(5, 15)])
    >>> t.slice(3)
    >>> sorted(t)
    [Interval(0, 3), Interval(3, 10), Interval(5, 15)]

    ```

    You can also set the data fields, for example, re-using `datafunc()` from above:

    ``` python
    >>> t = IntervalTree([Interval(5, 15)])
    >>> t.slice(10, datafunc)
    >>> sorted(t)[0]
    Interval(5, 10, 'oldlimit: 15, islower: True')
    >>> sorted(t)[1]
    Interval(10, 15, 'oldlimit: 5, islower: False')

    ```

Future improvements
-------------------

See the [issue tracker][] on GitHub.

Based on
--------

* Eternally Confuzzled's [AVL tree][Confuzzled AVL tree]
* Wikipedia's [Interval Tree][Wiki intervaltree]
* Heavily modified from Tyler Kahn's [Interval Tree implementation in Python][Kahn intervaltree] ([GitHub project][Kahn intervaltree GH])
* Incorporates contributions from:
    * [konstantint/Konstantin Tretyakov][Konstantin intervaltree] of the University of Tartu (Estonia)
    * [siniG/Avi Gabay][siniG intervaltree]
    * [lmcarril/Luis M. Carril][lmcarril intervaltree] of the Karlsruhe Institute for Technology (Germany)
    * [depristo/MarkDePristo][depristo intervaltree]

Copyright
---------

* [Chaim Leib Halbert][GH], 2013-2020
* Modifications, [Konstantin Tretyakov][Konstantin intervaltree], 2014

Licensed under the [Apache License, version 2.0][Apache].

The source code for this project is at https://github.com/chaimleib/intervaltree


[build status badge]: https://travis-ci.org/chaimleib/intervaltree.svg?branch=master
[build status]: https://travis-ci.org/chaimleib/intervaltree
[GH]: https://github.com/chaimleib/intervaltree
[issue tracker]: https://github.com/chaimleib/intervaltree/issues
[Konstantin intervaltree]: https://github.com/konstantint/PyIntervalTree
[siniG intervaltree]: https://github.com/siniG/intervaltree
[lmcarril intervaltree]: https://github.com/lmcarril/intervaltree
[depristo intervaltree]: https://github.com/depristo/intervaltree
[Confuzzled AVL tree]: http://www.eternallyconfuzzled.com/tuts/datastructures/jsw_tut_avl.aspx
[Wiki intervaltree]: http://en.wikipedia.org/wiki/Interval_tree
[Kahn intervaltree]: http://zurb.com/forrst/posts/Interval_Tree_implementation_in_python-e0K
[Kahn intervaltree GH]: https://github.com/tylerkahn/intervaltree-python
[Apache]: http://www.apache.org/licenses/LICENSE-2.0
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/chaimleib/intervaltree",
    "name": "intervaltree",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "interval-tree data-structure intervals tree",
    "author": "Chaim Leib Halbert, Konstantin Tretyakov",
    "author_email": "chaim.leib.halbert@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/50/fb/396d568039d21344639db96d940d40eb62befe704ef849b27949ded5c3bb/intervaltree-3.1.0.tar.gz",
    "platform": "",
    "description": "[![Build status badge][]][build status]\n\nintervaltree\n============\n\nA mutable, self-balancing interval tree for Python 2 and 3. Queries may be by point, by range overlap, or by range envelopment.\n\nThis library was designed to allow tagging text and time intervals, where the intervals include the lower bound but not the upper bound.\n\n**Version 3 changes!**\n\n* The `search(begin, end, strict)` method no longer exists. Instead, use one of these:\n    * `at(point)`\n    * `overlap(begin, end)`\n    * `envelop(begin, end)`\n* The `extend(items)` method no longer exists. Instead, use `update(items)`.\n* Methods like `merge_overlaps()` which took a `strict` argument consistently default to `strict=True`. Before, some methods defaulted to `True` and others to `False`.\n\nInstalling\n----------\n\n```sh\npip install intervaltree\n```\n\nFeatures\n--------\n\n* Supports Python 2.7 and Python 3.5+ (Tested under 2.7, and 3.5 thru 3.8)\n* Initializing\n    * blank `tree = IntervalTree()`\n    * from an iterable of `Interval` objects (`tree = IntervalTree(intervals)`)\n    * from an iterable of tuples (`tree = IntervalTree.from_tuples(interval_tuples)`)\n\n* Insertions\n    * `tree[begin:end] = data`\n    * `tree.add(interval)`\n    * `tree.addi(begin, end, data)`\n\n* Deletions\n    * `tree.remove(interval)`             (raises `ValueError` if not present)\n    * `tree.discard(interval)`            (quiet if not present)\n    * `tree.removei(begin, end, data)`    (short for `tree.remove(Interval(begin, end, data))`)\n    * `tree.discardi(begin, end, data)`   (short for `tree.discard(Interval(begin, end, data))`)\n    * `tree.remove_overlap(point)`\n    * `tree.remove_overlap(begin, end)`   (removes all overlapping the range)\n    * `tree.remove_envelop(begin, end)`   (removes all enveloped in the range)\n\n* Point queries\n    * `tree[point]`\n    * `tree.at(point)`                    (same as previous)\n\n* Overlap queries\n    * `tree[begin:end]`\n    * `tree.overlap(begin, end)`          (same as previous)\n\n* Envelop queries\n    * `tree.envelop(begin, end)`\n\n* Membership queries\n    * `interval_obj in tree`              (this is fastest, O(1))\n    * `tree.containsi(begin, end, data)`\n    * `tree.overlaps(point)`\n    * `tree.overlaps(begin, end)`\n\n* Iterable\n    * `for interval_obj in tree:`\n    * `tree.items()`\n\n* Sizing\n    * `len(tree)`\n    * `tree.is_empty()`\n    * `not tree`\n    * `tree.begin()`          (the `begin` coordinate of the leftmost interval)\n    * `tree.end()`            (the `end` coordinate of the rightmost interval)\n\n* Set-like operations\n    * union\n        * `result_tree = tree.union(iterable)`\n        * `result_tree = tree1 | tree2`\n        * `tree.update(iterable)`\n        * `tree |= other_tree`\n\n    * difference\n        * `result_tree = tree.difference(iterable)`\n        * `result_tree = tree1 - tree2`\n        * `tree.difference_update(iterable)`\n        * `tree -= other_tree`\n\n    * intersection\n        * `result_tree = tree.intersection(iterable)`\n        * `result_tree = tree1 & tree2`\n        * `tree.intersection_update(iterable)`\n        * `tree &= other_tree`\n\n    * symmetric difference\n        * `result_tree = tree.symmetric_difference(iterable)`\n        * `result_tree = tree1 ^ tree2`\n        * `tree.symmetric_difference_update(iterable)`\n        * `tree ^= other_tree`\n\n    * comparison\n        * `tree1.issubset(tree2)` or `tree1 <= tree2`\n        * `tree1 <= tree2`\n        * `tree1.issuperset(tree2)` or `tree1 > tree2`\n        * `tree1 >= tree2`\n        * `tree1 == tree2`\n\n* Restructuring\n    * `chop(begin, end)`      (slice intervals and remove everything between `begin` and `end`, optionally modifying the data fields of the chopped-up intervals)\n    * `slice(point)`          (slice intervals at `point`)\n    * `split_overlaps()`      (slice at all interval boundaries, optionally modifying the data field)\n    * `merge_overlaps()` (joins overlapping intervals into a single interval, optionally merging the data fields)\n    * `merge_equals()` (joins intervals with matching ranges into a single interval, optionally merging the data fields)\n\n* Copying and typecasting\n    * `IntervalTree(tree)`    (`Interval` objects are same as those in tree)\n    * `tree.copy()`           (`Interval` objects are shallow copies of those in tree)\n    * `set(tree)`             (can later be fed into `IntervalTree()`)\n    * `list(tree)`            (ditto)\n\n* Pickle-friendly\n* Automatic AVL balancing\n\nExamples\n--------\n\n* Getting started\n\n    ``` python\n    >>> from intervaltree import Interval, IntervalTree\n    >>> t = IntervalTree()\n    >>> t\n    IntervalTree()\n\n    ```\n\n* Adding intervals - any object works!\n\n    ``` python\n    >>> t[1:2] = \"1-2\"\n    >>> t[4:7] = (4, 7)\n    >>> t[5:9] = {5: 9}\n\n    ```\n\n* Query by point\n\n    The result of a query is a `set` object, so if ordering is important,\n    you must sort it first.\n\n    ``` python\n    >>> sorted(t[6])\n    [Interval(4, 7, (4, 7)), Interval(5, 9, {5: 9})]\n    >>> sorted(t[6])[0]\n    Interval(4, 7, (4, 7))\n\n    ```\n\n* Query by range\n\n    Note that ranges are inclusive of the lower limit, but non-inclusive of the upper limit. So:\n\n    ``` python\n    >>> sorted(t[2:4])\n    []\n\n    ```\n\n    Since our search was over `2 \u2264 x < 4`, neither `Interval(1, 2)` nor `Interval(4, 7)`\n    was included. The first interval, `1 \u2264 x < 2` does not include `x = 2`. The second\n    interval, `4 \u2264 x < 7`, does include `x = 4`, but our search interval excludes it. So,\n    there were no overlapping intervals. However:\n\n    ``` python\n    >>> sorted(t[1:5])\n    [Interval(1, 2, '1-2'), Interval(4, 7, (4, 7))]\n\n    ```\n\n    To only return intervals that are completely enveloped by the search range:\n\n    ``` python\n    >>> sorted(t.envelop(1, 5))\n    [Interval(1, 2, '1-2')]\n\n    ```\n\n* Accessing an `Interval` object\n\n    ``` python\n    >>> iv = Interval(4, 7, (4, 7))\n    >>> iv.begin\n    4\n    >>> iv.end\n    7\n    >>> iv.data\n    (4, 7)\n\n    >>> begin, end, data = iv\n    >>> begin\n    4\n    >>> end\n    7\n    >>> data\n    (4, 7)\n\n    ```\n\n* Constructing from lists of intervals\n\n    We could have made a similar tree this way:\n\n    ``` python\n    >>> ivs = [(1, 2), (4, 7), (5, 9)]\n    >>> t = IntervalTree(\n    ...    Interval(begin, end, \"%d-%d\" % (begin, end)) for begin, end in ivs\n    ... )\n\n    ```\n\n    Or, if we don't need the data fields:\n\n    ``` python\n    >>> t2 = IntervalTree(Interval(*iv) for iv in ivs)\n\n    ```\n\n    Or even:\n\n    ``` python\n    >>> t2 = IntervalTree.from_tuples(ivs)\n\n    ```\n\n* Removing intervals\n\n    ``` python\n    >>> t.remove(Interval(1, 2, \"1-2\"))\n    >>> sorted(t)\n    [Interval(4, 7, '4-7'), Interval(5, 9, '5-9')]\n\n    >>> t.remove(Interval(500, 1000, \"Doesn't exist\"))  # raises ValueError\n    Traceback (most recent call last):\n    ValueError\n\n    >>> t.discard(Interval(500, 1000, \"Doesn't exist\"))  # quietly does nothing\n\n    >>> del t[5]  # same as t.remove_overlap(5)\n    >>> t\n    IntervalTree()\n\n    ```\n\n    We could also empty a tree entirely:\n\n    ``` python\n    >>> t2.clear()\n    >>> t2\n    IntervalTree()\n\n    ```\n\n    Or remove intervals that overlap a range:\n\n    ``` python\n    >>> t = IntervalTree([\n    ...     Interval(0, 10),\n    ...     Interval(10, 20),\n    ...     Interval(20, 30),\n    ...     Interval(30, 40)])\n    >>> t.remove_overlap(25, 35)\n    >>> sorted(t)\n    [Interval(0, 10), Interval(10, 20)]\n\n    ```\n\n    We can also remove only those intervals completely enveloped in a range:\n\n    ``` python\n    >>> t.remove_envelop(5, 20)\n    >>> sorted(t)\n    [Interval(0, 10)]\n\n    ```\n\n* Chopping\n\n    We could also chop out parts of the tree:\n\n    ``` python\n    >>> t = IntervalTree([Interval(0, 10)])\n    >>> t.chop(3, 7)\n    >>> sorted(t)\n    [Interval(0, 3), Interval(7, 10)]\n\n    ```\n\n    To modify the new intervals' data fields based on which side of the interval is being chopped:\n\n    ``` python\n    >>> def datafunc(iv, islower):\n    ...     oldlimit = iv[islower]\n    ...     return \"oldlimit: {0}, islower: {1}\".format(oldlimit, islower)\n    >>> t = IntervalTree([Interval(0, 10)])\n    >>> t.chop(3, 7, datafunc)\n    >>> sorted(t)[0]\n    Interval(0, 3, 'oldlimit: 10, islower: True')\n    >>> sorted(t)[1]\n    Interval(7, 10, 'oldlimit: 0, islower: False')\n\n    ```\n\n* Slicing\n\n    You can also slice intervals in the tree without removing them:\n\n    ``` python\n    >>> t = IntervalTree([Interval(0, 10), Interval(5, 15)])\n    >>> t.slice(3)\n    >>> sorted(t)\n    [Interval(0, 3), Interval(3, 10), Interval(5, 15)]\n\n    ```\n\n    You can also set the data fields, for example, re-using `datafunc()` from above:\n\n    ``` python\n    >>> t = IntervalTree([Interval(5, 15)])\n    >>> t.slice(10, datafunc)\n    >>> sorted(t)[0]\n    Interval(5, 10, 'oldlimit: 15, islower: True')\n    >>> sorted(t)[1]\n    Interval(10, 15, 'oldlimit: 5, islower: False')\n\n    ```\n\nFuture improvements\n-------------------\n\nSee the [issue tracker][] on GitHub.\n\nBased on\n--------\n\n* Eternally Confuzzled's [AVL tree][Confuzzled AVL tree]\n* Wikipedia's [Interval Tree][Wiki intervaltree]\n* Heavily modified from Tyler Kahn's [Interval Tree implementation in Python][Kahn intervaltree] ([GitHub project][Kahn intervaltree GH])\n* Incorporates contributions from:\n    * [konstantint/Konstantin Tretyakov][Konstantin intervaltree] of the University of Tartu (Estonia)\n    * [siniG/Avi Gabay][siniG intervaltree]\n    * [lmcarril/Luis M. Carril][lmcarril intervaltree] of the Karlsruhe Institute for Technology (Germany)\n    * [depristo/MarkDePristo][depristo intervaltree]\n\nCopyright\n---------\n\n* [Chaim Leib Halbert][GH], 2013-2020\n* Modifications, [Konstantin Tretyakov][Konstantin intervaltree], 2014\n\nLicensed under the [Apache License, version 2.0][Apache].\n\nThe source code for this project is at https://github.com/chaimleib/intervaltree\n\n\n[build status badge]: https://travis-ci.org/chaimleib/intervaltree.svg?branch=master\n[build status]: https://travis-ci.org/chaimleib/intervaltree\n[GH]: https://github.com/chaimleib/intervaltree\n[issue tracker]: https://github.com/chaimleib/intervaltree/issues\n[Konstantin intervaltree]: https://github.com/konstantint/PyIntervalTree\n[siniG intervaltree]: https://github.com/siniG/intervaltree\n[lmcarril intervaltree]: https://github.com/lmcarril/intervaltree\n[depristo intervaltree]: https://github.com/depristo/intervaltree\n[Confuzzled AVL tree]: http://www.eternallyconfuzzled.com/tuts/datastructures/jsw_tut_avl.aspx\n[Wiki intervaltree]: http://en.wikipedia.org/wiki/Interval_tree\n[Kahn intervaltree]: http://zurb.com/forrst/posts/Interval_Tree_implementation_in_python-e0K\n[Kahn intervaltree GH]: https://github.com/tylerkahn/intervaltree-python\n[Apache]: http://www.apache.org/licenses/LICENSE-2.0",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "Editable interval tree data structure for Python 2 and 3",
    "version": "3.1.0",
    "split_keywords": [
        "interval-tree",
        "data-structure",
        "intervals",
        "tree"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "9883ac54b1ce2a572b27ac4508cd6194",
                "sha256": "902b1b88936918f9b2a19e0e5eb7ccb430ae45cde4f39ea4b36932920d33952d"
            },
            "downloads": -1,
            "filename": "intervaltree-3.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9883ac54b1ce2a572b27ac4508cd6194",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 32861,
            "upload_time": "2020-08-03T08:01:11",
            "upload_time_iso_8601": "2020-08-03T08:01:11.392173Z",
            "url": "https://files.pythonhosted.org/packages/50/fb/396d568039d21344639db96d940d40eb62befe704ef849b27949ded5c3bb/intervaltree-3.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-08-03 08:01:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "chaimleib",
    "github_project": "intervaltree",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "intervaltree"
}
        
Elapsed time: 0.01601s