Installation ============ Requirements ------------ ``python-mobilitydb`` has several dependencies beyond an installation of Python 3.x: * `psycopg2 `_ or `asyncpg `_ to connect to PostgreSQL, * `postgis `_ to connect to PostGIS, * `Spans `_ for an implementation of PostgreSQL’s range types, * `python-dateutil `_ for extensions to the standard datetime module, * `parsec `_ for parsing. Python Package Index -------------------- ``python-mobilitydb`` may be installed from PyPI. .. code-block:: console $ pip install python-mobilitydb Source ------ The package sources are available at https://github.com/MobilityDB/MobilityDB-python. Building and installing ``python-mobilitydb`` from source can be done with `setuptools `_: .. code-block:: console $ python setup.py install Tests ~~~~~ Tests require `pytest `_ and `pytest-asyncio `_. .. code-block:: console $ pytest The PostgreSQL database server must be started before launching the tests. Documentation ~~~~~~~~~~~~~ Building the documentation from source requires `Sphinx `_. By default, the documentation will be rendered in HTML: .. code-block:: console $ python setup.py build_sphinx For other documentation output formats, see the options in the ``docs`` subdirectory: .. code-block:: console $ cd docs $ make