semvec/pypi-packages huggingface dataset:
librtree 0.9.0
The R-tree spatial index of Guttman-Green
License: MIT
Keywords: R-tree,spatial-index

The librtree-python package
===========================

A Python native extension implementing the R-tree spatial
index of Guttman-Green.  The code is an embedded version of
`librtree <http://soliton.vm.bytemark.co.uk/pub/jjg/en/code/librtree/>`_.


Dependencies
------------

Just `Jansson <http://www.digip.org/jansson/>`_: this common library
may be in your operating-system's repositories. On Debian, Ubuntu and
derivatives:

.. code-block:: sh

   apt-get install libjansson-dev

On RedHat, CentOS:

.. code-block:: sh

    yum install jansson-devel

On OSX:

.. code-block:: sh

    brew install jansson

One does not need to install `librtree` itself, the library-code is
embedded within the package.


Install the package from PyPI
-----------------------------

Run

.. code-block:: sh

   python3 -m pip install librtree

and you should be ready to go.


Use the RTree class
-------------------

Add

.. code-block:: python

   from librtree import RTree

to your Python code.  See the
`documentation <https://librtree-python.readthedocs.io/>`_ for details
on usage.