PyVersionTracker
PyVersionTracker is a Python utility for tracking and managing Python versions. It provides functionality to fetch and parse information about Python releases from the official Official Python.
Table of Contents
Installation
To use PyVersionTracker in your Python project, you can install it via pip. Open your terminal or command prompt and run the following command:
pip install py-version-tracker
Features
-
Version Checker: Ensures System Compatibility
- Verify if the current Python version meets the specified minimum requirements in real-time, ensuring optimal functionality.
- Defaults to the minimum version obtained from Official Python
-
Version Information Retrieval: Stay Updated
- Fetch details about the latest Python version and comprehensive information regarding stable and active versions.
-
Validation: Ensuring Correct Format
- Validate and verify the format of Python version strings, providing confidence in the accuracy of the input.
-
Deprecation Check: Identify Deprecated Versions
- Identify whether a specific Python version is deprecated, allowing proactive management of software versions.
-
Version Range: Flexible Versioning
- Obtain a range of Python versions based on a specified version, facilitating compatibility assessments and version range queries.
Usage
from py_version_tracker import PyVersionTracker
Retrieving the Latest Version
You can use the latest_version property to retrieve the latest Python version available for download.
tracker = PyVersionTracker()
latest_version = tracker.latest_version
print(f"The latest Python version is: {latest_version}")
Retrieving All Versions
You can use the all_versions property to retrieve all available Python versions.
tracker = PyVersionTracker()
all_versions = list(tracker.all_versions)
print("All available Python versions:")
for version in all_versions:
print(version)
Retrieving Active Versions
You can use the active_versions method to retrieve active Python versions along with their status, start date, end date, and schedule.
tracker = PyVersionTracker()
active_versions = list(tracker.active_versions())
print("Active Python versions:")
for version in active_versions:
print(version)
Retrieving Unsupported Versions
You can use the unsupported_versions method to identify unsupported Python versions.
# Identify all unsupported versions
unsupported = list(PyVersionTracker.unsupported_versions())
print("Unsupported Python versions:")
for version in unsupported:
print(version)
Validating a Version
You can use the is_version method to validate a given Python version.
valid_version = "3.8.1"
is_valid = PyVersionTracker.is_version(valid_version)
print(f"Is {valid_version} a valid Python version? {is_valid}")
Check if a version is deprecated
You can use the is_deprecated method to identify deprecated Python versions.
# Check if a version is deprecated
version_to_check = '2.8.0'
if py_version_tracker.is_deprecated(version_to_check):
print(f'The Python version {version_to_check} is deprecated.')
Check if a version is within a specified range
You can use the version_range method to identify deprecated Python versions.
# Check if a version is within a specified range
target_version = '3.0.1'
version_range = py_version_tracker.version_range(target_version, above=True)
print(f'Python versions above {target_version}: {version_range}')
Check if a system meets the required minimum python version
You can use the version_checker method.
py_version_tracker.version_checker(sys.version, minimum_version='3.8')
Requirements
- Python 3.8+
- aiohttp
- beautifulsoup4
Author
Yousef Abuzahrieh Email: yousef.zahrieh17@gmail.com
Version
0.0.1
Metadata
Release files for py-version-tracker 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| py_version_tracker-0.0.1.tar.gz | 13.6 kB | Without provenance | Details |
Release files / py_version_tracker-0.0.1.tar.gz
| Download URL | py_version_tracker-0.0.1.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2883e669b9097e6328ee91a1e69d61c157e5f514324afc613fde00fb6c932a7
|
|
BLAKE2b-256 checksum How to use checksums |
a1d291f197de6cbd877268a13fc50bb6dfaab38ed7be290d6970d227cb21ade0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Security for py-version-tracker 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.