Skip to main content

A package to work with version specifiers.

Project description

Dephell Specifier

travis MIT License

Work with version specifiers.

Supported specifiers:

Installation

Install from PyPI:

python3 -m pip install --user dephell_specifier

Usage

from dephell_specifier import RangeSpecifier

'3.4' in RangeSpecifier('*')
# True

'3.4' in RangeSpecifier('<=2.7')
# False

'3.4' in RangeSpecifier('>2.7')
# True

'3.4' in RangeSpecifier('>2.7,<=3.4')
# True

'3.4' in RangeSpecifier('<2.7 || >=3.4')
# True

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

dephell-specifier-0.3.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

dephell_specifier-0.3.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file dephell-specifier-0.3.0.tar.gz.

File metadata

  • Download URL: dephell-specifier-0.3.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for dephell-specifier-0.3.0.tar.gz
Algorithm Hash digest
SHA256 73c0f7a480e3ec9a1922008d33cec5f24a7c71a09d0020b8b80870285afe18e7
MD5 927a13831f5fb8fbd370fe997aa012dd
BLAKE2b-256 78e752ecc5a90cf6075dd1cf49bfd45d93731764d641e144e2dcd490d9cc3767

See more details on using hashes here.

File details

Details for the file dephell_specifier-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dephell_specifier-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b831fcb91cf44d25790ac9cac594c633df6bdccbcaf0a330d99ec8d06e55880
MD5 b8ca9a034d58b49986cafd6d9ae60f70
BLAKE2b-256 12bdba3675531b9c00bf0bbc009529353c0ce6545197f56d9a81a26731cb0bcd

See more details on using hashes here.

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