module documentation

.. testsetup:: from packaging.specifiers import Specifier, SpecifierSet, InvalidSpecifier from packaging.version import Version

Class BaseSpecifier No class docstring; 1/1 property, 6/6 methods documented
Class Specifier This class abstracts handling of version specifiers.
Class SpecifierSet This class abstracts handling of a set of version specifiers.
Exception InvalidSpecifier Raised when attempting to create a :class:`Specifier` with a specifier string that is invalid.
Type Variable UnparsedVersionVar Undocumented
Type Alias CallableOperator Undocumented
Type Alias UnparsedVersion Undocumented
Function _coerce_version Undocumented
Function _is_not_suffix Undocumented
Function _pad_version Undocumented
Function _version_split Undocumented
Variable _prefix_regex Undocumented
UnparsedVersionVar = (source)

Undocumented

Value
TypeVar('UnparsedVersionVar',
        bound=UnparsedVersion)
CallableOperator = (source)

Undocumented

Value
Callable[[Version, str], bool]
UnparsedVersion = (source)

Undocumented

Value
Union[Version, str]
def _coerce_version(version: UnparsedVersion) -> Version: (source)

Undocumented

def _is_not_suffix(segment: str) -> bool: (source)

Undocumented

def _pad_version(left: List[str], right: List[str]) -> Tuple[List[str], List[str]]: (source)

Undocumented

def _version_split(version: str) -> List[str]: (source)

Undocumented

_prefix_regex = (source)

Undocumented