Skip to content

Work with version specifiers (can parse PEP-440, SemVer, Ruby, NPM, Maven)

License

Notifications You must be signed in to change notification settings

dephell/dephell_specifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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