Skip to main content

Find updates for packages in requirements.txt on pypi

Project description

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

Project details


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.1.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

requirements.py-1.0.1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file requirements.py-1.0.1.tar.gz.

File metadata

  • Download URL: requirements.py-1.0.1.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for requirements.py-1.0.1.tar.gz
Algorithm Hash digest
SHA256 abd71adc6a9ce564c04b602f7ab75586a9888563b9154fa55fe95e5feae07648
MD5 bc9a3218aca528943efadad13bc4d3fa
BLAKE2b-256 dae2c2d9cb41fa6ea5d17a817ecf5befb97959e100c3c20caff9216762914d47

See more details on using hashes here.

Provenance

File details

Details for the file requirements.py-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for requirements.py-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d31ad8274f52058a7f339131831ecc279087fe44fe46ed829071590193e3a41
MD5 e8844478fc59ac246ca5646adb3a694b
BLAKE2b-256 039f63c3fa5b29a9c052065f60de2da10944e2dc33d575b938c2ad75a81a87c3

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page