Skip to main content

quetzal

What is it?

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

License

CeCILL-B

Documentation

The official documentation is hosted on https://systragroup.github.io/quetzal

Backward compatibility

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.

Installation

https://pypi.org/project/quetzal-transport/

pip install quetzal-transport

Installation from sources

For Linux

uv

  1. Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. install dependencies (this will create a new virtualenv at .venv/ and fetch Python 3.12 if needed)
uv sync
  1. activate the env
source .venv/bin/activate
  1. (optional) add the env to ipykernel (to use in jupyter)
python -m ipykernel install --user --name=quetzal_env

poetry (alternative)

  1. You may need to set the default (or local) python version in the project
pyenv local 3.12
  1. install dependancies (this will create a new virtualenv)
poetry install
  1. activate the env
poetry shell
  1. (optional) add the env to ipykernel (to use in jupyter)
python -m ipykernel install --user --name=quetzal_env

For Windows

No prior installation of Python or uv is required — the batch file handles both. Open a command prompt and run the windows-install batch file

C:\users\you\path\to\quetzal> windows-install.bat

press enter to accept the default kernel name or enter a custom name

poetry (alternative)

Requires Anaconda 3 with Python 3.12. Run the poetry batch file instead:

C:\users\you\path\to\quetzal> windows-install-poetry.bat

press enter to accept the default kernel name or enter a custom name

If you are facing DLL or dependencies issues

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

If you are facing SSL issues

pip config set global.trusted-host "pypi.org files.pythonhosted.org"
C:\users\you\path\to\quetzal> windows-install.bat

security warning: the host is added to pip.ini

Tests

to run unittest:

uv run python -W ignore -m unittest discover

Or with poetry:

poetry run python -W ignore -m unittest discover

Deploying

  1. change the version in pyproject.toml
[project]
name = "quetzal-transport"
version = "3.1.1"
  1. edit CHANGELOG.md with the changes
## [3.1.1] (2026-01-15)
## changes
* some changes
  1. commit your changes
git commit -m 'description'
  1. create a tag matching the version (starting with v)
git tag -a v3.1.1 -m 'description'
  1. push the tag
git push origin v3.1.1

that's it. A Github action will

  • build
  • create a release
  • update the package on pipy.

Metadata

Release files for quetzal-transport 3.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quetzal-transport 3.9.2
File Size Uploaded
quetzal_transport-3.9.2.tar.gz 907.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quetzal-transport 3.9.2
File Interpreter ABI Platform
quetzal_transport-3.9.2-py3-none-any.whl Python 3 none any Details

Total release size: 2.0 MB

Release files / quetzal_transport-3.9.2.tar.gz

Download URL quetzal_transport-3.9.2.tar.gz
Size 907.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f59a49e5890c7bdb9c1d7228e49260154b99c1de5a7bdf24da366d0a28744d1f
BLAKE2b-256 checksum
How to use checksums
c4b0b576898c9a8b7f56c080daba295e2f9ddf82b05377f3928962aa3c1be8fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / quetzal_transport-3.9.2-py3-none-any.whl

Download URL quetzal_transport-3.9.2-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f1c944f07831428e0b8aea0ea531c7107cd4680897f30bd699562a823f5f3f77
BLAKE2b-256 checksum
How to use checksums
ec6a826d205af6bfc8bad787881118a3d28e3ca2ba165e539fb898857bb53102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

3.10.3

2 release files

3.10.2

2 release files

3.9.5

2 release files

3.9.4

2 release files

3.9.3

2 release files

This release

3.9.2 This release

2 release files

3.9.1

2 release files

3.9.0

2 release files

3.8.7

2 release files

3.8.6

2 release files

3.8.5

2 release files

3.8.4

2 release files

3.8.3

2 release files

3.8.2

2 release files

3.8.1

2 release files

3.8.0

2 release files

3.7.0

2 release files

3.6.0

2 release files

3.5.1

2 release files

3.5.0

2 release files

3.4.1

2 release files

3.4.0

2 release files

3.3.0

2 release files

3.2.0

2 release files

3.1.3

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page