quetzal is a Python package providing flexible models for transport planning and traffic forecasting. Quetzal is highly optimized to run fast on big cities.
(c) SYSTRA
The official documentation is hosted on https://systragroup.github.io/quetzal
In order to improve the ergonomics, the code may be re-factored and a few method calls may be re-designed. As a consequence, the backward compatibility of the library is not guaranteed. Therefore, the version of quetzal used for a project should be specified in its requirements.
https://pypi.org/project/quetzal-transport/
pip install quetzal-transport- You may need to set the default (or local) python version in the project
pyenv local 3.12- install dependancies (this will create a new virtualenv)
poetry install- activate the env
poetry shell- (optional) add the env to ipykernel (to use in jupyter)
python -m ipykernel install --user --name=quetzal_envAnaconda 3 + Python 3.12 is supposed to be installed
To create quetzal_env automatically and install quetzal, open anaconda prompt and run windows-install batch file
(base) C:users\you\path\to\quetzal> windows-install.batpress enter to accept default environment name or enter a custom name
(base) pip config set global.trusted-host "pypi.org files.pythonhosted.org"
(base) C:users\you\path\to\quetzal> windows-install.batsecurity warning: the host is added to pip.ini
Anaconda and Pip do not get along well, your Anaconda install may have been corrupted at some point.
- Remove your envs
- Uninstall Anaconda
- Delete your Python and Anaconda folders (users\you\Anaconda3, users\you\Appdata\Roaming\Python, ...etc)
- Install Anaconda
to run unittest:
poetry run python -W ignore -m unittest discover- change the version in pyproject.toml
[tool.poetry]
name = "quetzal-transport"
version = "3.1.1"- edit CHANGELOG.md with the changes
## [3.1.1] (2026-01-15)
## changes
* some changes- create a tag matching the version (starting with v)
git tag -a v3.1.1 -m 'description'- push the tag
git push origin v3.1.1that's it. A Github action will
- build
- create a release
- update the package on pipy.