Skip to main content

Work with version specifiers.

Project description

Dephell Specifier

Work with version 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.2.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file dephell_specifier-0.2.1.tar.gz.

File metadata

  • Download URL: dephell_specifier-0.2.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

File hashes

Hashes for dephell_specifier-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c2ec7e62a2406960e19eb6db0f11918d82af64995ee1f26fe00d013791ae9758
MD5 c2f1302198f43e7fb3435a42f90c046d
BLAKE2b-256 37db01586bfcc502091e35dc57612f4c78f0543dfb73a732ab41f7b27b04a651

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dephell_specifier-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

File hashes

Hashes for dephell_specifier-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de46325cfd6adedf5f685a3c00242d8a16fe270a7a76948fd1957c99561eb89e
MD5 07020964f2969f3a5860b439b016ad0d
BLAKE2b-256 ee43e54297417ed6e830bd248f400a0e36f73eb22dd37b0c3b92e87c6f2b2ffd

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