OpenQuizz
Une application de gestion des contenus pédagogiques
Matcher Class Reference
Inheritance diagram for Matcher:
Collaboration diagram for Matcher:

Public Member Functions

def parse_requirement (self, s)
 
def __init__ (self, s)
 
def match (self, version)
 
def exact_version (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __hash__ (self)
 
def __repr__ (self)
 
def __str__ (self)
 

Data Fields

 name
 
 key
 

Static Public Attributes

 version_class
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  s 
)

Member Function Documentation

◆ __eq__()

def __eq__ (   self,
  other 
)

◆ __hash__()

def __hash__ (   self)

◆ __ne__()

def __ne__ (   self,
  other 
)

◆ __repr__()

def __repr__ (   self)

◆ __str__()

def __str__ (   self)

◆ exact_version()

def exact_version (   self)

◆ match()

def match (   self,
  version 
)
Check if the provided version matches the constraints.

:param version: The version to match against this instance.
:type version: String or :class:`Version` instance.

◆ parse_requirement()

def parse_requirement (   self,
  s 
)

Field Documentation

◆ key

key

◆ name

name

◆ version_class

version_class
static

The documentation for this class was generated from the following file: