requirements.py
Find updates for packages in requirements.txt on pypi
Usage
You can use the file requirements.py, simply
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
You can also install the module with its dependencies from pypi.org:
pip install requirements.py
Once installed the module can be used directly with python -m requirements or the command 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'),
...
]}}
Metadata
Release files for requirements.py 1.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 | Actions |
|---|---|---|---|---|
| requirements.py-1.0.1.tar.gz | 17.3 kB | Without provenance | Details for requirements.py-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| requirements.py-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for requirements.py-1.0.1-py3-none-any.whl |
Total release size: 35.6 kB
Release files / requirements.py-1.0.1.tar.gz
| Download URL | requirements.py-1.0.1.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abd71adc6a9ce564c04b602f7ab75586a9888563b9154fa55fe95e5feae07648
|
|
BLAKE2b-256 checksum How to use checksums |
dae2c2d9cb41fa6ea5d17a817ecf5befb97959e100c3c20caff9216762914d47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / requirements.py-1.0.1-py3-none-any.whl
| Download URL | requirements.py-1.0.1-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d31ad8274f52058a7f339131831ecc279087fe44fe46ed829071590193e3a41
|
|
BLAKE2b-256 checksum How to use checksums |
039f63c3fa5b29a9c052065f60de2da10944e2dc33d575b938c2ad75a81a87c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for requirements.py 1.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.