basic_rows.py
Python script, ASCII text executable
1from app import Licence, PictureObject, db 2 3# Prefix non-SPDX licences with "X-" 4# Order of licences is: 5# 1. Free, pinned licences 6# 2. Other free licences 7# 3. Non-free, pinned licences 8# 4. Other non-free licences 9# Non-free licences may only be used in multi-licences with at least one free licence. 10 11def add_licences(): 12licences = [ 13# Free informal licences 14Licence("X-Informal-do-anything", "Informal 'do anything' licence", 15"An informal licence that allows you to do anything with the work, making it " 16"public domain equivalent. Not recommended for your own works. Please provide " 17"original statement and evidence in the description.", 18"", "", free=True), 19Licence("X-Informal-attribution", "Informal licence that requires attribution", 20"An informal licence that allows you to do anything with the work, as long as you " 21"attribute the original author. Not recommended for your own works. Please provide " 22"original statement and evidence in the description.", 23"", "", free=True), 24Licence("X-Informal-copyleft", "Informal copyleft licence", 25"An informal copyleft licence that allows you to do anything with the work, as long as " 26"you share your modifications under the same terms. Not recommended for your own works. " 27"Please provide original statement and evidence in the description.", 28"", "", free=True), 29Licence("X-Informal-attribution-copyleft", "Informal copyleft licence that requires attribution", 30"An informal copyleft licence that allows you to do anything with the work, as long as " 31"you attribute the original author and share your modifications under the same terms. " 32"Not recommended for your own works. Please provide original statement and evidence in the description.", 33"", "", free=True), 34# Non-free informal licences 35Licence("X-Informal-noncommercial", "Informal non-commercial licence", 36"An informal licence that allows any non-commercial use of the work. " 37"Please provide original statement and evidence in the description.", 38"", "", free=False), 39Licence("X-Informal-noncommercial-attribution", "Informal non-commercial licence that requires attribution", 40"An informal licence that allows any non-commercial use of the work, as long as you " 41"attribute the original author. Please provide original statement and evidence in the description.", 42"", "", free=False), 43Licence("X-Informal-noncommercial-copyleft", "Informal non-commercial copyleft licence", 44"An informal copyleft licence that allows any non-commercial use of the work, as long as " 45"you share your modifications under the same terms. Please provide original statement and evidence in the description.", 46"", "", free=False), 47Licence("X-Informal-noncommercial-attribution-copyleft", "Informal non-commercial copyleft licence that requires attribution", 48"An informal copyleft licence that allows any non-commercial use of the work, as long as " 49"you attribute the original author and share your modifications under the same terms. " 50"Please provide original statement and evidence in the description.", 51"", "", free=False), 52Licence("X-Informal-verbatim", "Informal verbatim licence", 53"An informal licence that allows the distribution of only unmodified copies of the work. " 54"Please provide original statement and evidence in the description.", 55"", "", free=False), 56Licence("X-Informal-verbatim-attribution", "Informal verbatim licence that requires attribution", 57"An informal licence that allows the distribution of only unmodified copies of the work, " 58"as long as you attribute the original author. Please provide original statement and evidence in the description.", 59"", "", free=False), 60# Other informal licences 61Licence("X-Informal-other-free", "Other informal free licence", 62"Some other kind of informal licence that allows free use of the work. " 63"Please provide original statement and evidence in the description.", 64"", "", free=True), 65Licence("X-Informal-other-nonfree", "Other informal non-free licence", 66"Some other kind of informal licence that does not allow free use of the work. " 67"Please provide original statement and evidence in the description.", 68"", "", free=False), 69# Public domain or equivalent licences 70Licence("CC0-1.0", "Creative Commons Zero v1.0 Universal", 71"Public domain equivalent, with a fallback lax licence if public domain is not possible.", 72"https://creativecommons.org/publicdomain/zero/1.0/", 73"https://creativecommons.org/publicdomain/zero/1.0/legalcode.en", 74free=True, pinned=True, logo_url="https://licensebuttons.net/l/zero/1.0/88x31.png"), 75Licence("X-Public-domain", "Public domain dedication", 76"Author has explicitly dedicated the work to the public domain; please provide original statement and evidence.", 77"", "", free=True), 78Licence("X-Public-domain-old", "Ineligible for copyright due to age", 79"The copyright of this work has expired both in the source country and in Romania, " 80"where this service is hosted.", 81"", "", free=True), 82Licence("X-Public-domain-gov", "Public domain due to government work", 83"The work is in the public domain because it is a work of the government of a country " 84"where government works are exempt from copyright, such as the USA.", 85"", "", free=True), 86# Creative Commons Attribution licences 87Licence("CC-BY-1.0", "Creative Commons Attribution v1.0", 88"The first Creative Commons Attribution licence. Very rare nowadays; not recommended for new works. " 89"Please specify if a regional variant is used in the description. " 90"Requires only attribution to the original author, usually using a link to the work, " 91"the name of the licence, and the author, if applicable.", 92"https://creativecommons.org/licenses/by/1.0/", 93"https://creativecommons.org/licenses/by/1.0/legalcode.en", 94free=True, logo_url="https://licensebuttons.net/l/by/1.0/88x31.png"), 95Licence("CC-BY-2.0", "Creative Commons Attribution v2.0", 96"The second Creative Commons Attribution licence. Not recommended for new works. " 97"Please specify if a regional variant or 2.1 is used in the description. " 98"Requires only attribution to the original author, usually using a link to the work, " 99"the name of the licence, and the author, if applicable.", 100"https://creativecommons.org/licenses/by/2.0/", 101"https://creativecommons.org/licenses/by/2.0/legalcode.en", 102free=True, logo_url="https://licensebuttons.net/l/by/2.0/88x31.png"), 103Licence("CC-BY-2.5", "Creative Commons Attribution v2.5", 104"A modification of Creative Commons Attribution v2.0. Not recommended for new works. " 105"Please specify if a regional variant is used in the description. " 106"Requires only attribution to the original author, usually using a link to the work, " 107"the name of the licence, and the author, if applicable.", 108"https://creativecommons.org/licenses/by/2.5/", 109"https://creativecommons.org/licenses/by/2.5/legalcode.en", 110free=True, logo_url="https://licensebuttons.net/l/by/2.5/88x31.png"), 111Licence("CC-BY-3.0", "Creative Commons Attribution v3.0", 112"The third Creative Commons Attribution licence. Not recommended for new works. " 113"Please specify if a regional variant is used in the description. " 114"Requires only attribution to the original author, usually using a link to the work, " 115"the name of the licence, and the author, if applicable.", 116"https://creativecommons.org/licenses/by/3.0/", 117"https://creativecommons.org/licenses/by/3.0/legalcode.en", 118free=True, logo_url="https://licensebuttons.net/l/by/3.0/88x31.png"), 119Licence("CC-BY-4.0", "Creative Commons Attribution v4.0", 120"The fourth and most recent Creative Commons Attribution licence. Recommended for new works. " 121"This licence doesn't have regional variants; translations are equivalent. " 122"Requires only attribution to the original author, usually using a link to the work, " 123"the name of the licence, and the author, if applicable.", 124"https://creativecommons.org/licenses/by/4.0/", 125"https://creativecommons.org/licenses/by/4.0/legalcode.en", 126free=True, pinned=True, logo_url="https://licensebuttons.net/l/by/4.0/88x31.png"), 127# Creative Commons ShareAlike licences 128Licence("CC-SA-1.0", "Creative Commons ShareAlike v1.0", 129"The first Creative Commons ShareAlike licence. Very rare nowadays; not recommended for new works. " 130"Please specify if a regional variant is used in the description. " 131"Requires sharing of modifications under the same terms, but attribution is optional. " 132"This family of licences has been discontinued by Creative Commons.", 133"https://creativecommons.org/licenses/sa/1.0/", 134"https://creativecommons.org/licenses/sa/1.0/legalcode.en", 135free=True, logo_url="https://licensebuttons.net/l/sa/1.0/88x31.png"), 136# Creative Commons Attribution-ShareAlike licences 137Licence("CC-BY-SA-1.0", "Creative Commons Attribution-ShareAlike v1.0", 138"The first Creative Commons Attribution-ShareAlike licence. Very rare nowadays; not recommended for new works. " 139"Please specify if a regional variant is used in the description. " 140"Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, " 141"or select compatible licences.", 142"https://creativecommons.org/licenses/by-sa/1.0/", 143"https://creativecommons.org/licenses/by-sa/1.0/legalcode.en", 144free=True, logo_url="https://licensebuttons.net/l/by-sa/1.0/88x31.png"), 145Licence("CC-BY-SA-2.0", "Creative Commons Attribution-ShareAlike v2.0", 146"The second Creative Commons Attribution-ShareAlike licence. Not recommended for new works. " 147"Please specify if a regional variant or 2.1 is used in the description. " 148"Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, " 149"or select compatible licences.", 150"https://creativecommons.org/licenses/by-sa/2.0/", 151"https://creativecommons.org/licenses/by-sa/2.0/legalcode.en", 152free=True, logo_url="https://licensebuttons.net/l/by-sa/2.0/88x31.png"), 153Licence("CC-BY-SA-2.5", "Creative Commons Attribution-ShareAlike v2.5", 154"A modification of Creative Commons Attribution-ShareAlike v2.0. Not recommended for new works. " 155"Please specify if a regional variant is used in the description. " 156"Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, " 157"or select compatible licences.", 158"https://creativecommons.org/licenses/by-sa/2.5/", 159"https://creativecommons.org/licenses/by-sa/2.5/legalcode.en", 160free=True, logo_url="https://licensebuttons.net/l/by-sa/2.5/88x31.png"), 161Licence("CC-BY-SA-3.0", "Creative Commons Attribution-ShareAlike v3.0", 162"The third Creative Commons Attribution-ShareAlike licence. Not recommended for new works. " 163"Please specify if a regional variant is used in the description. " 164"Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, " 165"or select compatible licences.", 166"https://creativecommons.org/licenses/by-sa/3.0/", 167"https://creativecommons.org/licenses/by-sa/3.0/legalcode.en", 168free=True, logo_url="https://licensebuttons.net/l/by-sa/3.0/88x31.png"), 169Licence("CC-BY-SA-4.0", "Creative Commons Attribution-ShareAlike v4.0", 170"The fourth and most recent Creative Commons Attribution-ShareAlike licence. Recommended for new works. " 171"This licence doesn't have regional variants; translations are equivalent. " 172"Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, " 173"or select compatible licences.", 174"https://creativecommons.org/licenses/by-sa/4.0/", 175"https://creativecommons.org/licenses/by-sa/4.0/legalcode.en", 176free=True, pinned=True, logo_url="https://licensebuttons.net/l/by-sa/4.0/88x31.png"), 177# Creative Commons NonCommercial licences 178Licence("CC-NC-1.0", "Creative Commons NonCommercial v1.0", 179"The first Creative Commons NonCommercial licence. Very rare nowadays; not recommended for new works. " 180"Please specify if a regional variant is used in the description. " 181"Only allows non-commercial use of the work, but attribution is optional. " 182"This family of licences has been discontinued by Creative Commons.", 183"https://creativecommons.org/licenses/nc/1.0/", 184"https://creativecommons.org/licenses/nc/1.0/legalcode.en", 185free=False, logo_url="https://licensebuttons.net/l/nc/1.0/88x31.png"), 186# Creative Commons Attribution-NonCommercial licences 187Licence("CC-BY-NC-1.0", "Creative Commons Attribution-NonCommercial v1.0", 188"The first Creative Commons Attribution-NonCommercial licence. Very rare nowadays; not recommended for new works. " 189"Please specify if a regional variant is used in the description. " 190"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).", 191"https://creativecommons.org/licenses/by-nc/1.0/", 192"https://creativecommons.org/licenses/by-nc/1.0/legalcode.en", 193free=False, logo_url="https://licensebuttons.net/l/by-nc/1.0/88x31.png"), 194Licence("CC-BY-NC-2.0", "Creative Commons Attribution-NonCommercial v2.0", 195"The second Creative Commons Attribution-NonCommercial licence. Not recommended for new works. " 196"Please specify if a regional variant or 2.1 is used in the description. " 197"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).", 198"https://creativecommons.org/licenses/by-nc/2.0/", 199"https://creativecommons.org/licenses/by-nc/2.0/legalcode.en", 200free=False, logo_url="https://licensebuttons.net/l/by-nc/2.0/88x31.png"), 201Licence("CC-BY-NC-2.5", "Creative Commons Attribution-NonCommercial v2.5", 202"A modification of Creative Commons Attribution-NonCommercial v2.0. Not recommended for new works. " 203"Please specify if a regional variant is used in the description. " 204"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).", 205"https://creativecommons.org/licenses/by-nc/2.5/", 206"https://creativecommons.org/licenses/by-nc/2.5/legalcode.en", 207free=False, logo_url="https://licensebuttons.net/l/by-nc/2.5/88x31.png"), 208Licence("CC-BY-NC-3.0", "Creative Commons Attribution-NonCommercial v3.0", 209"The third Creative Commons Attribution-NonCommercial licence. Not recommended for new works. " 210"Please specify if a regional variant is used in the description. " 211"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).", 212"https://creativecommons.org/licenses/by-nc/3.0/", 213"https://creativecommons.org/licenses/by-nc/3.0/legalcode.en", 214free=False, logo_url="https://licensebuttons.net/l/by-nc/3.0/88x31.png"), 215Licence("CC-BY-NC-4.0", "Creative Commons Attribution-NonCommercial v4.0", 216"The fourth and most recent Creative Commons Attribution-NonCommercial licence. " 217"This licence doesn't have regional variants; translations are equivalent. " 218"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).", 219"https://creativecommons.org/licenses/by-nc/4.0/", 220"https://creativecommons.org/licenses/by-nc/4.0/legalcode.en", 221free=False, pinned=True, logo_url="https://licensebuttons.net/l/by-nc/4.0/88x31.png"), 222# Creative Commons Attribution-NonCommercial-ShareAlike licences 223Licence("CC-BY-NC-SA-1.0", "Creative Commons Attribution-NonCommercial-ShareAlike v1.0", 224"The first Creative Commons Attribution-NonCommercial-ShareAlike licence. Very rare nowadays; not recommended for new works. " 225"Please specify if a regional variant is used in the description. " 226"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), " 227"and sharing of modifications under the same terms, or select compatible licences.", 228"https://creativecommons.org/licenses/by-nc-sa/1.0/", 229"https://creativecommons.org/licenses/by-nc-sa/1.0/legalcode.en", 230free=False, logo_url="https://licensebuttons.net/l/by-nc-sa/1.0/88x31.png"), 231Licence("CC-BY-NC-SA-2.0", "Creative Commons Attribution-NonCommercial-ShareAlike v2.0", 232"The second Creative Commons Attribution-NonCommercial-ShareAlike licence. Not recommended for new works. " 233"Please specify if a regional variant or 2.1 is used in the description. " 234"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), " 235"and sharing of modifications under the same terms, or select compatible licences.", 236"https://creativecommons.org/licenses/by-nc-sa/2.0/", 237"https://creativecommons.org/licenses/by-nc-sa/2.0/legalcode.en", 238free=False, logo_url="https://licensebuttons.net/l/by-nc-sa/2.0/88x31.png"), 239Licence("CC-BY-NC-SA-2.5", "Creative Commons Attribution-NonCommercial-ShareAlike v2.5", 240"A modification of Creative Commons Attribution-NonCommercial-ShareAlike v2.0. Not recommended for new works. " 241"Please specify if a regional variant is used in the description. " 242"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), " 243"and sharing of modifications under the same terms, or select compatible licences.", 244"https://creativecommons.org/licenses/by-nc-sa/2.5/", 245"https://creativecommons.org/licenses/by-nc-sa/2.5/legalcode.en", 246free=False, logo_url="https://licensebuttons.net/l/by-nc-sa/2.5/88x31.png"), 247Licence("CC-BY-NC-SA-3.0", "Creative Commons Attribution-NonCommercial-ShareAlike v3.0", 248"The third Creative Commons Attribution-NonCommercial-ShareAlike licence. Not recommended for new works. " 249"Please specify if a regional variant is used in the description. " 250"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), " 251"and sharing of modifications under the same terms, or select compatible licences.", 252"https://creativecommons.org/licenses/by-nc-sa/3.0/", 253"https://creativecommons.org/licenses/by-nc-sa/3.0/legalcode.en", 254free=False, logo_url="https://licensebuttons.net/l/by-nc-sa/3.0/88x31.png"), 255Licence("CC-BY-NC-SA-4.0", "Creative Commons Attribution-NonCommercial-ShareAlike v4.0", 256"The fourth and most recent Creative Commons Attribution-NonCommercial-ShareAlike licence. " 257"This licence doesn't have regional variants; translations are equivalent. " 258"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), " 259"and sharing of modifications under the same terms, or select compatible licences.", 260"https://creativecommons.org/licenses/by-nc-sa/4.0/", 261"https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.en", 262free=False, pinned=True, logo_url="https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png"), 263# Creative Commons NoDerivatives licences 264Licence("CC-ND-1.0", "Creative Commons NoDerivatives v1.0", 265"The first Creative Commons NoDerivatives licence. Very rare nowadays; not recommended for new works. " 266"Please specify if a regional variant is used in the description. " 267"Only allows distribution of unmodified copies of the work, but attribution is optional. " 268"This family of licences has been discontinued by Creative Commons.", 269"https://creativecommons.org/licenses/nd/1.0/", 270"https://creativecommons.org/licenses/nd/1.0/legalcode.en", 271free=False, logo_url="https://licensebuttons.net/l/nd/1.0/88x31.png"), 272# Creative Commons Attribution-NoDerivatives licences 273Licence("CC-BY-ND-1.0", "Creative Commons Attribution-NoDerivatives v1.0", 274"The first Creative Commons Attribution-NoDerivatives licence. Very rare nowadays; not recommended for new works. " 275"Please specify if a regional variant is used in the description. " 276"Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).", 277"https://creativecommons.org/licenses/by-nd/1.0/", 278"https://creativecommons.org/licenses/by-nd/1.0/legalcode.en", 279free=False, logo_url="https://licensebuttons.net/l/by-nd/1.0/88x31.png"), 280Licence("CC-BY-ND-2.0", "Creative Commons Attribution-NoDerivatives v2.0", 281"The second Creative Commons Attribution-NoDerivatives licence. Not recommended for new works. " 282"Please specify if a regional variant or 2.1 is used in the description. " 283"Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).", 284"https://creativecommons.org/licenses/by-nd/2.0/", 285"https://creativecommons.org/licenses/by-nd/2.0/legalcode.en", 286free=False, logo_url="https://licensebuttons.net/l/by-nd/2.0/88x31.png"), 287Licence("CC-BY-ND-2.5", "Creative Commons Attribution-NoDerivatives v2.5", 288"A modification of Creative Commons Attribution-NoDerivatives v2.0. Not recommended for new works. " 289"Please specify if a regional variant is used in the description. " 290"Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).", 291"https://creativecommons.org/licenses/by-nd/2.5/", 292"https://creativecommons.org/licenses/by-nd/2.5/legalcode.en", 293free=False, logo_url="https://licensebuttons.net/l/by-nd/2.5/88x31.png"), 294Licence("CC-BY-ND-3.0", "Creative Commons Attribution-NoDerivatives v3.0", 295"The third Creative Commons Attribution-NoDerivatives licence. Not recommended for new works. " 296"Please specify if a regional variant is used in the description. " 297"Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).", 298"https://creativecommons.org/licenses/by-nd/3.0/", 299"https://creativecommons.org/licenses/by-nd/3.0/legalcode.en", 300free=False, logo_url="https://licensebuttons.net/l/by-nd/3.0/88x31.png"), 301Licence("CC-BY-ND-4.0", "Creative Commons Attribution-NoDerivatives v4.0", 302"The fourth and most recent Creative Commons Attribution-NoDerivatives licence. " 303"This licence doesn't have regional variants; translations are equivalent. " 304"Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).", 305"https://creativecommons.org/licenses/by-nd/4.0/", 306"https://creativecommons.org/licenses/by-nd/4.0/legalcode.en", 307free=False, pinned=True, logo_url="https://licensebuttons.net/l/by-nd/4.0/88x31.png"), 308# Creative Commons NonCommercial-NoDerivatives licences 309Licence("CC-NC-ND-1.0", "Creative Commons NonCommercial-NoDerivatives v1.0", 310"The first Creative Commons NonCommercial-NoDerivatives licence. Very rare nowadays; not recommended for new works. " 311"Please specify if a regional variant is used in the description. " 312"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, but attribution is optional. " 313"This family of licences has been discontinued by Creative Commons.", 314"https://creativecommons.org/licenses/nc-nd/1.0/", 315"https://creativecommons.org/licenses/nc-nd/1.0/legalcode.en", 316free=False, logo_url="https://licensebuttons.net/l/nd-nc/1.0/88x31.png"), 317# Creative Commons Attribution-NonCommercial-NoDerivatives licences 318Licence("CC-BY-NC-ND-1.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v1.0", 319"The first Creative Commons Attribution-NonCommercial-NoDerivatives licence. Very rare nowadays; not recommended for new works. " 320"Please specify if a regional variant is used in the description. " 321"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, " 322"and only with attribution to the original author (just like CC BY).", 323"https://creativecommons.org/licenses/by-nc-nd/1.0/", 324"https://creativecommons.org/licenses/by-nc-nd/1.0/legalcode.en", 325free=False, logo_url="https://licensebuttons.net/l/by-nd-nc/1.0/88x31.png"), 326Licence("CC-BY-NC-ND-2.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v2.0", 327"The second Creative Commons Attribution-NonCommercial-NoDerivatives licence. Not recommended for new works. " 328"Please specify if a regional variant or 2.1 is used in the description. " 329"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, " 330"and only with attribution to the original author (just like CC BY).", 331"https://creativecommons.org/licenses/by-nc-nd/2.0/", 332"https://creativecommons.org/licenses/by-nc-nd/2.0/legalcode.en", 333free=False, logo_url="https://licensebuttons.net/l/by-nc-nd/2.0/88x31.png"), 334Licence("CC-BY-NC-ND-2.5", "Creative Commons Attribution-NonCommercial-NoDerivatives v2.5", 335"A modification of Creative Commons Attribution-NonCommercial-NoDerivatives v2.0. Not recommended for new works. " 336"Please specify if a regional variant is used in the description. " 337"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, " 338"and only with attribution to the original author (just like CC BY).", 339"https://creativecommons.org/licenses/by-nc-nd/2.5/", 340"https://creativecommons.org/licenses/by-nc-nd/2.5/legalcode.en", 341free=False, logo_url="https://licensebuttons.net/l/by-nc-nd/2.5/88x31.png"), 342Licence("CC-BY-NC-ND-3.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v3.0", 343"The third Creative Commons Attribution-NonCommercial-NoDerivatives licence. Not recommended for new works. " 344"Please specify if a regional variant is used in the description. " 345"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, " 346"and only with attribution to the original author (just like CC BY).", 347"https://creativecommons.org/licenses/by-nc-nd/3.0/", 348"https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode.en", 349free=False, logo_url="https://licensebuttons.net/l/by-nc-nd/3.0/88x31.png"), 350Licence("CC-BY-NC-ND-4.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v4.0", 351"The fourth and most recent Creative Commons Attribution-NonCommercial-NoDerivatives licence. " 352"This licence doesn't have regional variants; translations are equivalent. " 353"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, " 354"and only with attribution to the original author (just like CC BY).", 355"https://creativecommons.org/licenses/by-nc-nd/4.0/", 356"https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.en", 357free=False, pinned=True, logo_url="https://licensebuttons.net/l/by-nc-nd/4.0/88x31.png"), 358# Other Creative Commons licences 359Licence("CC-Sampling-1.0", "Creative Commons Sampling v1.0", 360"An old and uncommon Creative Commons licence that allows only 'creative transformation' of the work, " 361"and not full distribution. Also requires attribution to the original author like CC BY. Not recommended for new works. " 362"Please specify if a regional variant is used in the description.", 363"https://creativecommons.org/licenses/sampling/1.0/", 364"https://creativecommons.org/licenses/sampling/1.0/legalcode.en", 365free=False, logo_url="https://licensebuttons.net/l/sampling/1.0/88x31.png"), 366Licence("CC-Sampling-Plus-1.0", "Creative Commons Sampling Plus v1.0", 367"An old and uncommon Creative Commons licence that allows 'creative transformation' of the work, " 368"commercially or non-commercially, and non-commercial full distribution. Also requires attribution to the original author like CC BY. " 369"Not recommended for new works. Please specify if a regional variant is used in the description.", 370"https://creativecommons.org/licenses/sampling+/1.0/", 371"https://creativecommons.org/licenses/sampling+/1.0/legalcode.en", 372free=False, logo_url="https://licensebuttons.net/l/sampling+/1.0/88x31.png"), 373Licence("CC-NC-Sampling-Plus-1.0", "Creative Commons NonCommercial Sampling Plus v1.0", 374"An old and uncommon Creative Commons licence that allows only some kinds of non-commercial sampling " 375"and distribution of the work. Also requires attribution to the original author like CC BY." 376"Not recommended for new works. Please specify if a regional variant is used in the description.", 377"https://creativecommons.org/licenses/nc-sampling+/1.0/", 378"https://creativecommons.org/licenses/nc-sampling+/1.0/legalcode.en", 379free=False, logo_url="https://licensebuttons.net/l/nc-sampling+/1.0/88x31.png"), 380Licence("CC-DevNations-2.0", "Creative Commons Developing Nations v2.0", 381"An old and uncommon Creative Commons licence that allows distribution of the work in developing nations only. " 382"Also requires attribution to the original author like CC BY. Not recommended for new works. " 383"Please specify if a regional variant is used in the description.", 384"https://creativecommons.org/licenses/devnations/2.0/", 385"https://creativecommons.org/licenses/devnations/2.0/legalcode.en", 386free=False, logo_url="https://licensebuttons.net/l/devnations/2.0/88x31.png"), 387# Open Data Commons licences 388Licence("ODbL-1.0", "Open Data Commons Open Database Licence v1.0", 389"A licence for databases that allows free use, modification, and distribution, " 390"but requires attribution and sharing under the same terms for the database itself. ", 391"https://opendatacommons.org/licenses/odbl/summary/", 392"https://opendatacommons.org/licenses/odbl/1-0/", 393free=True), 394Licence("ODC-By-1.0", "Open Data Commons Attribution Licence v1.0", 395"A licence for databases that allows free use, modification, and distribution, " 396"but requires attribution for the database itself. ", 397"https://opendatacommons.org/licenses/by/summary/", 398"https://opendatacommons.org/licenses/by/1-0/", 399free=True), 400Licence("PDDL-1.0", "Open Data Commons Public Domain Dedication and Licence v1.0", 401"A licence for databases that allows free use, modification, and distribution, " 402"with no restrictions, making it public domain equivalent. ", 403"https://opendatacommons.org/licenses/pddl/summary/", 404"https://opendatacommons.org/licenses/pddl/1-0/", 405free=True), 406# GNU licences 407Licence("GPL-1.0", "GNU General Public Licence v1.0", 408"The first version of the GNU General Public Licence. Not recommended for new works. " 409"Requires sharing of modifications under the same terms, and distribution of the source code, " 410"as well as requiring the licence notice to be included in distributions.", 411"https://www.gnu.org/licenses/gpl-1.0.html", 412"https://www.gnu.org/licenses/gpl-1.0.html", 413free=True), 414Licence("GPL-1.0-or-later", "GNU General Public Licence v1.0 or later", 415"Any of the versions of the GNU General Public Licence, starting with the first version. " 416"Requires sharing of modifications under the same terms, and distribution of the source code, " 417"as well as requiring the licence notice to be included in distributions. " 418"GPL by itself is not compatible with later versions, so this must be specified.", 419"https://www.gnu.org/licenses/gpl-1.0.html", 420"https://www.gnu.org/licenses/gpl-1.0.html", 421free=True), 422Licence("GPL-2.0", "GNU General Public Licence v2.0", 423"The second version of the GNU General Public Licence. " 424"Requires sharing of modifications under the same terms, and distribution of the source code, " 425"as well as requiring the licence notice to be included in distributions.", 426"https://www.gnu.org/licenses/gpl-2.0.html", 427"https://www.gnu.org/licenses/gpl-2.0.html", 428free=True), 429Licence("GPL-2.0-or-later", "GNU General Public Licence v2.0 or later", 430"Any of the versions of the GNU General Public Licence, starting with the second version. " 431"Requires sharing of modifications under the same terms, and distribution of the source code, " 432"as well as requiring the licence notice to be included in distributions. " 433"GPL by itself is not compatible with later versions, so this must be specified.", 434"https://www.gnu.org/licenses/gpl-2.0.html", 435"https://www.gnu.org/licenses/gpl-2.0.html", 436free=True), 437Licence("GPL-3.0", "GNU General Public Licence v3.0", 438"The third and latest version of the GNU General Public Licence. " 439"Requires sharing of modifications under the same terms, and distribution of the source code, " 440"as well as requiring the licence notice to be included in distributions.", 441"https://www.gnu.org/licenses/gpl-3.0.html", 442"https://www.gnu.org/licenses/gpl-3.0.html", 443free=True, logo_url="https://www.gnu.org/graphics/gplv3-127x51.png"), 444Licence("GPL-3.0-or-later", "GNU General Public Licence v3.0 or later", 445"Any of the versions of the GNU General Public Licence, starting with the third version. " 446"Requires sharing of modifications under the same terms, and distribution of the source code, " 447"as well as requiring the licence notice to be included in distributions. " 448"GPL by itself is not compatible with later versions, so this must be specified. " 449"However there are currently no later versions.", 450"https://www.gnu.org/licenses/gpl-3.0.html", 451"https://www.gnu.org/licenses/gpl-3.0.html", 452free=True, pinned=True, logo_url="https://www.gnu.org/graphics/gplv3-127x51.png"), 453Licence("LGPL-2.0", "GNU Library General Public Licence v2.0", 454"The first version of the GNU Lesser/Library General Public Licence. " 455"Requires sharing of modifications under the same terms, and distribution of the source code, " 456"as well as requiring the licence notice to be included in distributions. " 457"It doesn't, however, require dependent works to be compatible with the licence. " 458"Note the later versions have been renamed to the Lesser GPL.", 459"https://www.gnu.org/licenses/lgpl-2.0.html", 460"https://www.gnu.org/licenses/lgpl-2.0.html", 461free=True), 462Licence("LGPL-2.0-or-later", "GNU Library General Public Licence v2.0 or later", 463"Any of the versions of the GNU Lesser/Library General Public Licence, starting with the first version 2.o. " 464"Requires sharing of modifications under the same terms, and distribution of the source code, " 465"as well as requiring the licence notice to be included in distributions. " 466"It doesn't, however, require dependent works to be compatible with the licence. " 467"Note the later versions have been renamed to the Lesser GPL.", 468"https://www.gnu.org/licenses/lgpl-2.0.html", 469"https://www.gnu.org/licenses/lgpl-2.0.html", 470free=True), 471Licence("LGPL-2.1", "GNU Lesser General Public Licence v2.1", 472"The second version of the GNU Lesser General Public Licence. " 473"Requires sharing of modifications under the same terms, and distribution of the source code, " 474"as well as requiring the licence notice to be included in distributions. " 475"It doesn't, however, require dependent works to be compatible with the licence.", 476"https://www.gnu.org/licenses/lgpl-2.1.html", 477"https://www.gnu.org/licenses/lgpl-2.1.html", 478free=True), 479Licence("LGPL-2.1-or-later", "GNU Lesser General Public Licence v2.1 or later", 480"Any of the versions of the GNU Lesser General Public Licence, starting with the second version 2.1." 481"Requires sharing of modifications under the same terms, and distribution of the source code, " 482"as well as requiring the licence notice to be included in distributions. " 483"It doesn't, however, require dependent works to be compatible with the licence.", 484"https://www.gnu.org/licenses/lgpl-2.1.html", 485"https://www.gnu.org/licenses/lgpl-2.1.html", 486free=True), 487Licence("LGPL-3.0", "GNU Lesser General Public Licence v3.0", 488"The third and latest version of the GNU Lesser General Public Licence. " 489"Requires sharing of modifications under the same terms, and distribution of the source code, " 490"as well as requiring the licence notice to be included in distributions. " 491"It doesn't, however, require dependent works to be compatible with the licence.", 492"https://www.gnu.org/licenses/lgpl-3.0.html", 493"https://www.gnu.org/licenses/lgpl-3.0.html", 494free=True, logo_url="https://www.gnu.org/graphics/lgplv3-147x51.png"), 495Licence("LGPL-3.0-or-later", "GNU Lesser General Public Licence v3.0 or later", 496"Any of the versions of the GNU Lesser General Public Licence, starting with the third version 3.0. " 497"Requires sharing of modifications under the same terms, and distribution of the source code, " 498"as well as requiring the licence notice to be included in distributions. " 499"It doesn't, however, require dependent works to be compatible with the licence. " 500"However there are currently no later versions.", 501"https://www.gnu.org/licenses/lgpl-3.0.html", 502"https://www.gnu.org/licenses/lgpl-3.0.html", 503free=True, pinned=True, logo_url="https://www.gnu.org/graphics/lgplv3-147x51.png"), 504Licence("AGPL-3.0", "GNU Affero General Public Licence v3.0", 505"The first, only and latest version of the GNU Affero General Public Licence. " 506"Requires sharing of modifications under the same terms, and distribution of the source code, " 507"as well as requiring the licence notice to be included in distributions. " 508"It also requires that the source code be made available to users which access the " 509"software over a network.", 510"https://www.gnu.org/licenses/agpl-3.0.html", 511"https://www.gnu.org/licenses/agpl-3.0.html", 512free=True, logo_url="https://www.gnu.org/graphics/agplv3-155x51.png"), 513Licence("AGPL-3.0-or-later", "GNU Affero General Public Licence v3.0 or later", 514"Any of the versions of the GNU Affero General Public Licence, starting with the first version 3.0. " 515"Requires sharing of modifications under the same terms, and distribution of the source code, " 516"as well as requiring the licence notice to be included in distributions. " 517"It also requires that the source code be made available to users which access the " 518"software over a network. " 519"However there are currently no later versions.", 520"https://www.gnu.org/licenses/agpl-3.0.html", 521"https://www.gnu.org/licenses/agpl-3.0.html", 522free=True, pinned=True, logo_url="https://www.gnu.org/graphics/agplv3-155x51.png"), 523# Licence Art Libre 524Licence("LAL-1.2", "Free Art Licence / Licence Art Libre v1.2", 525"A licence for works of art that allows free use, modification, and distribution, " 526"but requires attribution for the work itself, and sharing under the same terms. " 527"Similar to the Creative Commons Attribution-ShareAlike and GNU GPL licences.", 528"https://artlibre.org/licence/lal/licence-art-libre-1.2/", 529"https://artlibre.org/licence/lal/licence-art-libre-1.2/", 530free=True, logo_url="https://artlibre.org/wp-content/Logo_Licence_Art_Libre.png"), 531Licence("LAL-1.3", "Free Art Licence / Licence Art Libre v1.3", 532"A licence for works of art that allows free use, modification, and distribution, " 533"but requires attribution for the work itself, and sharing under the same terms. " 534"Similar to the Creative Commons Attribution-ShareAlike and GNU GPL licences.", 535"https://artlibre.org/", 536"https://artlibre.org/", 537free=True, pinned=True, logo_url="https://artlibre.org/wp-content/Logo_Licence_Art_Libre.png"), 538] 539 540for licence in licences: 541db.session.add(licence) 542 543db.session.commit() 544 545 546def add_objects(): 547objects = [ 548PictureObject( 549"Cat (Felis catus)", 550"Domestic cat", 551), 552PictureObject( 553"Dandelion (Taraxacum officinale)", 554"Common dandelion", 555), 556] 557 558for object in objects: 559db.session.add(object) 560 561db.session.commit() 562