pypath.internals.license.LicenseFeature§
- class pypath.internals.license.LicenseFeature(level)[source]§
Bases:
object
Methods
__init__
(level)check_level
(level)Checks of
level
is 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
i
on the ordinal scale of levels.level_to_int
(level)Return the value for the key
level
as 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_levels
levels
name
- classmethod int_to_level(i)[source]§
Returns a set of labels corresponding to the level nearest to the integer
i
on the ordinal scale of levels.