pypath.internals.license.LicensePurpose§

class pypath.internals.license.LicensePurpose(level)[source]§

Bases: LicenseFeature

__init__(level)[source]§

Methods

__init__(level)

check_level(level)

Checks of level is a valid key for the

enables(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.