Skip to main content

modeling library for transport planning

Project description

quetzal

What is it?

quetzal is a Python package providing flexible models for transport planning and traffic forecasting.

Copyright

(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

pip install quetzal-transport

Installation from sources

For Linux

One should choose between

  • Poetry (recommended)
  • Virtualenv
  • Anaconda

poetry

  1. 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. add the env to ipykernel (to use in jupyter)
python -m ipykernel install --user --name=quetzal_env

Virtualenv

Virtual environment: virtualenv .venv -p python3.12; source .venv/bin/activate or any equivalent command.

pip install -e .

Anaconda

In order to use python notebook, Anaconda 3 + Python 3.12 must be installed. Then create + activate quetzal environment:

conda init
conda create -n quetzal_env -y python=3.12
conda activate quetzal_env
pip install -e . -r requirements_win.txt
python -m ipykernel install --user --name=quetzal_env

For Windows

Anaconda 3 + Python 3.12 is supposed to be installed

PIP and Anaconda (recommended)

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.bat

press enter to accept default environment name or enter a custom name

If you are facing SSL issues

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

security warning: the host is added to pip.ini

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

Deploying

  1. change the version in pyproject.toml
[tool.poetry]
name = "quetzal-transport"
version = "3.1.1"
  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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quetzal_transport-3.1.1.tar.gz (896.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quetzal_transport-3.1.1-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file quetzal_transport-3.1.1.tar.gz.

File metadata

  • Download URL: quetzal_transport-3.1.1.tar.gz
  • Upload date:
  • Size: 896.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for quetzal_transport-3.1.1.tar.gz
Algorithm Hash digest
SHA256 05ee1c8b0db664a787d9ff1697c3f6b83b7c4b904c558d31cf970afe6fabb993
MD5 95ed6b0b59f1d27f1412cd2d3397f59d
BLAKE2b-256 9e1f209119e6b0745aae28bf01659c55bac352fbb30b98eb67c6d17ecc87faef

See more details on using hashes here.

File details

Details for the file quetzal_transport-3.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for quetzal_transport-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79fdf9366e0613d094a6db94e2666bdfdfa4a9a9603650c396e0df037f2bc1ed
MD5 31676ffc232006c1b439de9836f83489
BLAKE2b-256 79ab8091a67369e6794d597d495283f8c8ecd0ac2491d16fe05f76784cc1797f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page