Web platform for sharing free data for ML and research

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 add_licences.py

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