Installation

Requirements

python-mobilitydb has several dependencies beyond an installation of Python 3.x:

Python Package Index

python-mobilitydb may be installed from PyPI.

$ 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:

$ python setup.py install

Tests

Tests require pytest and pytest-asyncio.

$ 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:

$ python setup.py build_sphinx

For other documentation output formats, see the options in the docs subdirectory:

$ cd docs
$ make