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