pypath.internals.license.License§

class pypath.internals.license.License(name, full_name=None, purpose=None, sharing=None, attrib='attrib', url=None, **kwargs)[source]§

Bases: object

__init__(name, full_name=None, purpose=None, sharing=None, attrib='attrib', url=None, **kwargs)[source]§

Methods

__init__(name[, full_name, purpose, ...])

enables(purpose[, sharing, attrib])

Checks if the license enables a particular use, according to purpose, sharing and attribution.

from_json(path, **kwargs)

Attributes

academic

alike

commercial

deriv

features

features_str

for_profit

forprofit

noattrib

noderiv

non_profit

nonprofit

noshare

share

enables(purpose, sharing=None, attrib=None)[source]§

Checks if the license enables a particular use, according to purpose, sharing and attribution. For example, to check if the license enables academic use with redistribution under a compatible license, call License.enables(purpose = 'academic', sharing = 'alike').