Installation¶
Stable release¶
To install Distributed Trajectories, run this command in your terminal:
$ pip install distributed_trajectories
This is the preferred method to install Distributed Trajectories, as it will always install the most recent stable release.
If you don’t have pip installed, this Python installation guide can guide you through the process.
From sources¶
The sources for Distributed Trajectories can be downloaded from the Github repo.
clone the public repository:
$ git clone git://github.com/raalesir/distributed_trajectoriescreate a Python virtual environment
$ cd distributed_trajectories/distributed_trajectories && python3 -m venv taxi
activate the
venv. Checkwhich pythonto point to the current directory.$ source taxi/bin/activate
install dependencies:
$ pip3 install -r requirements.txt
Project structure¶
Once cloned, the repo structure should look like:
❯ tree -L 2
.
├── AUTHORS.rst
├── CONTRIBUTING.rst
├── HISTORY.rst
├── LICENSE
├── MANIFEST.in
├── Makefile
├── README.rst
├── data //small sample of data, 10 random trajectories
│ └── data.tar.gz
├── distributed_trajectories // main package
│ ├── OD.py
│ ├── TM.py
│ ├── __init__.py
│ ├── cli.py
│ ├── consts.py
│ ├── distributed_trajectories.py
│ └── udfs.py
├── docs // documentation source
│ ├── Makefile
│ ├── authors.rst
│ ├── conf.py
│ ├── contributing.rst
│ ├── history.rst
│ ├── index.rst
│ ├── installation.rst
│ ├── make.bat
│ ├── modules.rst
│ ├── readme.rst
│ └── usage.rst
├── requirements.txt
├── requirements_dev.txt
├── setup.cfg
├── setup.py
├── tests // tests to run
│ ├── __init__.py
│ └── test_udfs.py
└── tox.ini