Skip to main content

requirements.py

Find updates for packages in requirements.txt on pypi

Screenrecord

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'),
            ...
]}}

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)

Source distribution for requirements.py 1.0.1
File Size Uploaded
requirements.py-1.0.1.tar.gz 17.3 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

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