Source code for projectreport.license.model

from enum import Enum


[docs]class LicenseType(str, Enum): MIT = "MIT" BSD = "BSD" GPL = "GPL" LGPL = "LGPL" AGPL = "AGPL" MPL = "MPL" APACHE = "APACHE"
[docs]class License:
[docs] def __init__(self, license_type: LicenseType, text: str): self.type = license_type self.text = text
def __repr__(self): return f"License({self.type})"