pypath.internals.license.LicensePurpose§
- class pypath.internals.license.LicensePurpose(level)[source]§
Bases:
LicenseFeatureMethods
__init__(level)check_level(level)Checks of
levelis a valid key for theenables(other)ensure_int(other)int_to_level(i)Returns a set of labels corresponding to the level nearest to the integer
ion the ordinal scale of levels.level_to_int(level)Return the value for the key
levelas an integer on the ordinal scale of the levels.to_int()Returns the value of the current level of this license feature as an integer on the ordinal scale of levels.
unknown_warning(value)Attributes
int_levelslevelsname- classmethod check_level(level)§
Checks of
levelis a valid key for the
- classmethod int_to_level(i)§
Returns a set of labels corresponding to the level nearest to the integer
ion the ordinal scale of levels.
- classmethod level_to_int(level)§
Return the value for the key
levelas an integer on the ordinal scale of the levels.
- to_int()§
Returns the value of the current level of this license feature as an integer on the ordinal scale of levels.