Python library providing NonParametric models for Value of Travel Time analysis
Project description
PyNP4VTT
Python library providing NonParametric models for Value of Travel Time analysis.
Installation steps
- Use
pip
to install thepy-np4vtt
library normally.- Recommended: do it in a fresh virtual environment
- Create env:
python3 -m venv <chosen_venv_directory>
- Activate env:
source <chosen_venv_directory>/bin/activate
- Create env:
- Either install from TestPyPI
python3 -m pip install --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple py-np4vtt
- Or from the normal (public/official) PyPI
python3 -m pip install py-np4vtt
- Recommended: do it in a fresh virtual environment
Instructions for contributing to the project
One-time setup
- This project uses
poetry
as its dependency management, virtualenv management and release (build) tool- Install following the steps described in https://python-poetry.org/docs/master/#installing-with-the-official-installer
- Setup PyPI credentials to be able to publish packages
- Make an account on
https://pypi.org
. Ask (optional) for invitation to become contributor on PyPI. - Add API token on the "account settings" page of PyPI (global scope)
- Setup Poetry:
poetry config pypi-token.pypi "<your_api_token>"
- Make an account on
- Setup TestPyPI credentials to be able to publish packages
- Make an account on
https://test.pypi.org
. Ask (optional) for invitation to become contributor on TestPyPI. - Add API token on the "account settings" page of TestPyPI (global scope)
- Setup Poetry:
poetry config repositories.testpypi https://test.pypi.org/legacy
poetry config pypi-token.testpypi "<your_api_token>"
- Make an account on
Sometimes: update package dependencies
- It is advisable to sometimes (every couple of months) update the package's dependencies
- Using newer versions (if possible) of dependencies gives you security fixes (sometimes also performance improvements)
- Steps:
- Make a backup of the lock file (in case you need to rollback the update):
mv poetry.lock bkp-poetry.lock
- Then create a new lock file with updated versions of dependencies, and install all fresh:
poetry update --lock
poetry env remove python && poetry install
- Test that the program still works as expected
- If the program breaks after the update, revert to the previous state by restoring the old lock file:
mv bkp-poetry.lock poetry.lock
poetry env remove python && poetry install
- If nothing is broken after the update, remove the old lock file:
rm bkp-poetry.lock
- Make a backup of the lock file (in case you need to rollback the update):
Building a new version and releasing/uploading to PyPI or TestPyPI
- Do the actual contribution to the project 🙂
- Increment the package's version number in
pyproject.toml
- Build the package (wheel and source):
poetry build
. The built artifacts will be placed in thedist
folder - Publish:
- Either to PyPI:
poetry publish
- Or to TestPyPI:
poetry publish -r testpypi
- Either to PyPI:
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
py-np4vtt-1.0.1.tar.gz
(15.7 kB
view details)
Built Distribution
py_np4vtt-1.0.1-py3-none-any.whl
(27.0 kB
view details)
File details
Details for the file py-np4vtt-1.0.1.tar.gz
.
File metadata
- Download URL: py-np4vtt-1.0.1.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.4.0-131-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ba80354d42391b87cc47bd454509f20c0b97cb1b9b665f3c70e12967c656b89 |
|
MD5 | 0fa363776aad4bed5391d61ccff74633 |
|
BLAKE2b-256 | c697a2810b769c40c1fc88a2bfb91b8b47e7e2649928ed4d1a4f191355454dda |
File details
Details for the file py_np4vtt-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: py_np4vtt-1.0.1-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.4.0-131-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3cca579b20e95e401be952926900f327c22a378d510741356e28c205fc84dbe |
|
MD5 | f3b689adcf189b992f67b990940caf3f |
|
BLAKE2b-256 | 636feec315885d67b9ba8ab47a8390d7720d14af6a3b70a096f43aed23509611 |