Skip to main content

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 the py-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
    • 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

Instructions for contributing to the project

One-time setup

  • This project uses poetry as its dependency management, virtualenv management and release (build) tool
  • Setup PyPI credentials to be able to publish packages
    1. Make an account on https://pypi.org. Ask (optional) for invitation to become contributor on PyPI.
    2. Add API token on the "account settings" page of PyPI (global scope)
    3. Setup Poetry:
      • poetry config pypi-token.pypi "<your_api_token>"
  • Setup TestPyPI credentials to be able to publish packages
    1. Make an account on https://test.pypi.org. Ask (optional) for invitation to become contributor on TestPyPI.
    2. Add API token on the "account settings" page of TestPyPI (global scope)
    3. Setup Poetry:
      • poetry config repositories.testpypi https://test.pypi.org/legacy
      • poetry config pypi-token.testpypi "<your_api_token>"

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:
    1. Make a backup of the lock file (in case you need to rollback the update):
      • mv poetry.lock bkp-poetry.lock
    2. Then create a new lock file with updated versions of dependencies, and install all fresh:
      • poetry update --lock
      • poetry env remove python && poetry install
    3. Test that the program still works as expected
    4. 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
    5. If nothing is broken after the update, remove the old lock file:
      • rm bkp-poetry.lock

Building a new version and releasing/uploading to PyPI or TestPyPI

  1. Do the actual contribution to the project 🙂
  2. Increment the package's version number in pyproject.toml
  3. Build the package (wheel and source): poetry build. The built artifacts will be placed in the dist folder
  4. Publish:
    • Either to PyPI: poetry publish
    • Or to TestPyPI: poetry publish -r testpypi

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)

Uploaded Source

Built Distribution

py_np4vtt-1.0.1-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

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

Hashes for py-np4vtt-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9ba80354d42391b87cc47bd454509f20c0b97cb1b9b665f3c70e12967c656b89
MD5 0fa363776aad4bed5391d61ccff74633
BLAKE2b-256 c697a2810b769c40c1fc88a2bfb91b8b47e7e2649928ed4d1a4f191355454dda

See more details on using hashes here.

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

Hashes for py_np4vtt-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e3cca579b20e95e401be952926900f327c22a378d510741356e28c205fc84dbe
MD5 f3b689adcf189b992f67b990940caf3f
BLAKE2b-256 636feec315885d67b9ba8ab47a8390d7720d14af6a3b70a096f43aed23509611

See more details on using hashes here.

Supported by

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