Find updates for packages in requirements.txt on pypi
Project description
requirements
Find updates for packages in requirements.txt on pypi
Usage
Run requirements.py
in a folder that contains a requirements.txt
Or run requirements.py path/to/first/requirements.txt path/to/second/requirements.txt
Once installed the module can be used directly with requirements
or python -m requirements
.
It also offers some functions to query pypi and requirements.txt programmatically:
import requirements
requirements.get_versions("lxml")
[<Version('4.9.2')>, <Version('4.9.1')>, <Version('4.9.0')>, <Version('4.8.0')>, ...]
requirements.parse("lxml == 4.0.0")
('lxml', '==', <Version('4.0.0')>, '4.0.0', 0)
requirements.parse_file("requirements.txt")
[('lxml', '==', <Version('4.9.0')>, '4.9.0', 0), ('defusedxml', '>=', <Version('0.6.0')>, '0.6.0', 1)]
requirements.check_files(["requirements.txt"])
{
'defusedxml': {
'clause': '=',
'current_version': packaging.version.Version('0.6.0'),
'available_versions': [
packaging.version.Version('0.4'),
packaging.version.Version('0.4.1'),
packaging.version.Version('0.5.0'),
packaging.version.Version('0.6.0'),
packaging.version.Version('0.7.0'),
packaging.version.Version('0.7.1')]},
'lxml': {
'clause': '==',
'current_version': packaging.version.Version('4.9.0'),
'available_versions': [
packaging.version.Version('4.7.1'),
packaging.version.Version('4.8.0'),
packaging.version.Version('4.9.0'),
packaging.version.Version('4.9.1'),
packaging.version.Version('4.9.2'),
...
]}}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
requirements.py-1.0.0.tar.gz
(17.3 kB
view details)
Built Distribution
File details
Details for the file requirements.py-1.0.0.tar.gz
.
File metadata
- Download URL: requirements.py-1.0.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dc538a786fbd3287647fad78353113e904ed591941c9b787a833ec41f698ad1 |
|
MD5 | 66e14acd0f7e091ec2fd045f3d903231 |
|
BLAKE2b-256 | edca7f67386d899e262b9defdad5dea02844d37ad0f7dc7495b8c3e1f61e4be4 |
Provenance
File details
Details for the file requirements.py-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: requirements.py-1.0.0-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44560291267c1742e0c7ff5ed41cd360d09cd18338d7b485b3a31aab42d51231 |
|
MD5 | 759895dcb1dc28979989c33ec84fea40 |
|
BLAKE2b-256 | 7a55fe958e0c400566d47f2948cd9a7be216d4e41b22390f9171cc1059502709 |