Recommended
LicenseRecommended
Recommended licenses:
DSP
: Licenses created and curated by DaSCH, seeDSP
for details.CC
: Creative Commons licenses, seeCC
for details.
Examples:
# adding a Creative Commons license to a file
resource = resource.add_file(
filename="images/cat.jpg",
license=xmllib.LicenseRecommended.CC.BY,
copyright_holder="Meow University",
authorship=["Kitty Meow"],
)
# adding a DSP license to a file
resource = resource.add_file(
filename="images/dog.jpg",
license=xmllib.LicenseRecommended.DSP.PUBLIC_DOMAIN,
copyright_holder="Bark University",
authorship=["Bark McDog"],
)
Source code in dsp/dsp-tools/src/dsp_tools/xmllib/models/licenses/recommended.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
CC
Bases: License
, StrEnum
Pre-defined and recommended Creative Commons licenses:
BY
: Attribution 4.0BY_SA
: Attribution-ShareAlike 4.0BY_NC
: Attribution-NonCommercial 4.0BY_NC_SA
: Attribution-NonCommercial-ShareAlike 4.0BY_ND
: Attribution-NoDerivatives 4.0BY_NC_ND
: Attribution-NonCommercial-NoDerivatives 4.0
Examples:
# adding a Creative Commons license to a file
resource = resource.add_file(
filename="images/dog.jpg",
license=xmllib.LicenseRecommended.CC.BY_NC_ND,
copyright_holder="Bark University",
authorship=["Bark McDog"],
)
Source code in dsp/dsp-tools/src/dsp_tools/xmllib/models/licenses/recommended.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|
DSP
Bases: License
, StrEnum
Pre-defined and recommended licenses created and curated by DaSCH:
AI_GENERATED
: AI-Generated Content - Not Protected by CopyrightUNKNOWN
: Unknown License - Ask Copyright Holder for PermissionPUBLIC_DOMAIN
: Public Domain - Not Protected by Copyright
Examples:
# adding a DSP license to a file
resource = resource.add_file(
filename="images/cat.jpg",
license=xmllib.LicenseRecommended.DSP.PUBLIC_DOMAIN,
copyright_holder="Meow University",
authorship=["Kitty Meow"],
)
Source code in dsp/dsp-tools/src/dsp_tools/xmllib/models/licenses/recommended.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|