Skip to main content

nwpackageversions

Introduction

This packages consists of the following modules:

  • nwpackageversions is a library that helps with retrieving package information from PyPi.org and comparing them with what you have installed locally.
  • nwpackageversionscli is a command-line application built on the top of nwpackageversions.

Getting Started

I'll use Debian as operating system, but the concept is similar for Windows or Mac.

Procedure:

  1. Install pip and venv:
sudo apt install python3-pip python3.12-venv
  1. Create a virtual environment:
python3 -m venv /tmp/nwpackageversions
source /tmp/nwpackageversions/bin/activate
  1. Download and install the package:
pip install nwpackageversions
  1. Enter in the interactive Python environment:
python3
Python 3.12.3 (main, Aug 31 2026, 10:18:26) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
  1. Try out if the library works:
from nwpackageversions import RequirementChecker

requirement_checker : RequirementChecker = RequirementChecker()
  1. Exit from the interactive Python environment:
exit()
  1. Try out if the CLI application works:
nwpackageversionscli
  1. Deactivate and delete the virtual environment:
deactivate
rm -rf /tmp/nwpackageversions
  1. Done!

Examples

Run it against the current runtime:

nwpackageversionscli runtime --required 3.12.5
*****************************************************************
'##::: ##:'##:::::'##:'########::'##::::'##:'########:'########::
 ###:: ##: ##:'##: ##: ##.... ##: ##:::: ##: ##.....:: ##.... ##:
 ####: ##: ##: ##: ##: ##:::: ##: ##:::: ##: ##::::::: ##:::: ##:
 ## ## ##: ##: ##: ##: ########:: ##:::: ##: ######::: ########::
 ##. ####: ##: ##: ##: ##.....:::. ##:: ##:: ##...:::: ##.. ##:::
 ##:. ###: ##: ##: ##: ##:::::::::. ## ##::: ##::::::: ##::. ##::
 ##::. ##:. ###. ###:: ##::::::::::. ###:::: ########: ##:::. ##:
..::::..:::...::...:::..::::::::::::...:::::........::..:::::..::
**********************************************Version: 2.0.1*****

command: 'runtime'
required: '(3, 12, 5)'

The installed Python version is matching the expected one (installed: '3.12.5', expected: '3.12.5').

Run it against a file_path:

nwpackageversionscli requirements --file_path .devcontainer/main/Dockerfile --waiting_time 5
*****************************************************************
'##::: ##:'##:::::'##:'########::'##::::'##:'########:'########::
 ###:: ##: ##:'##: ##: ##.... ##: ##:::: ##: ##.....:: ##.... ##:
 ####: ##: ##: ##: ##: ##:::: ##: ##:::: ##: ##::::::: ##:::: ##:
 ## ## ##: ##: ##: ##: ########:: ##:::: ##: ######::: ########::
 ##. ####: ##: ##: ##: ##.....:::. ##:: ##:: ##...:::: ##.. ##:::
 ##:. ###: ##: ##: ##: ##:::::::::. ## ##::: ##::::::: ##::. ##::
 ##::. ##:. ###. ###:: ##::::::::::. ###:::: ########: ##:::. ##:
..::::..:::...::...:::..::::::::::::...:::::........::..:::::..::
**********************************************Version: 2.0.1*****

command: 'requirements'
file_path: '.devcontainer/main/Dockerfile'
only_stable_releases: 'True'
waiting_time: '5'

total_packages: '9'
matching: '3'
matching_prc: '33.33%'
mismatching: '6'
mismatching_prc: '66.67%'

The current version ('2.32.3') of 'requests' doesn't match with the most recent release ('2.33.1', '2026-03-30').
The current version ('5.3.0') of 'lxml' doesn't match with the most recent release ('6.0.4', '2026-04-12').
The current version ('7.6.4') of 'coverage' doesn't match with the most recent release ('7.13.5', '2026-03-17').
The current version ('1.13.0') of 'mypy' doesn't match with the most recent release ('1.20.0', '2026-03-31').
The current version ('2.32.0.20241016') of 'types-requests' doesn't match with the most recent release ('2.33.0.20260408', '2026-04-08').
The current version ('3.3.3') of 'pylint' doesn't match with the most recent release ('4.0.5', '2026-02-20').
The current version ('0.9.0') of 'parameterized' matches with the most recent release ('0.9.0', '2023-03-27').
The current version ('0.5.1') of 'lxml-stubs' matches with the most recent release ('0.5.1', '2024-01-10').
The current version ('6.0.1') of 'radon' matches with the most recent release ('6.0.1', '2023-03-26').

Total Downloads (PyPi)

PyPI Downloads

Metadata

Release files for nwpackageversions 2.0.1

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

Source distribution (sdist)

Source distribution for nwpackageversions 2.0.1
File Size Uploaded
nwpackageversions-2.0.1.tar.gz 15.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nwpackageversions 2.0.1
File Interpreter ABI Platform
nwpackageversions-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.3 kB

Release files / nwpackageversions-2.0.1.tar.gz

Download URL nwpackageversions-2.0.1.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
635337a00d7a09153c0b6fa3efe1c495f0d52f784e30ccbbd104148eaeea26f2
BLAKE2b-256 checksum
How to use checksums
6e4ca48785bfea19cdf5a19f4714e6259ea781f8503170a55f567cc82f89ff22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.5

Release files / nwpackageversions-2.0.1-py3-none-any.whl

Download URL nwpackageversions-2.0.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ac37a814dcdb2917a38723075b3f0875bf44879e58313fa3db56b47981bbf7c
BLAKE2b-256 checksum
How to use checksums
329be8ff04e6002ac1dec7c4fa05fba54d0464306c5527a37be52359d4c51348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.5

Release history Release notifications | RSS feed

This release

2.0.1 This release

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