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

MOAR

roundabout,
created on Friday, 16 August 2024, 20:12:10 (1723839130), received on Monday, 19 August 2024, 08:43:57 (1724057037)
Author identity: vlad <vlad.muntoiu@gmail.com>

9f560086ea3cd1ae645aaaf30634e83904eb42f1

add_licences.py

@@ -0,0 +1,537 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        from app import Licence, db
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        # Prefix non-SPDX licences with "X-"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        def add_licences():
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            licences = [
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Free informal licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-do-anything", "Informal 'do anything' licence",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An informal licence that allows you to do anything with the work, making it "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "public domain equivalent. Not recommended for your own works. Please provide "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-attribution", "Informal licence that requires attribution",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An informal licence that allows you to do anything with the work, as long as you "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "attribute the original author. Not recommended for your own works. Please provide "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-copyleft", "Informal copyleft licence",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An informal copyleft licence that allows you to do anything with the work, as long as "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "you share your modifications under the same terms. Not recommended for your own works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please provide original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-attribution-copyleft", "Informal copyleft licence that requires attribution",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An informal copyleft licence that allows you to do anything with the work, as long as "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "you attribute the original author and share your modifications under the same terms. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Not recommended for your own works. Please provide original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Non-free informal licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-noncommercial", "Informal non-commercial licence",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An informal licence that allows any non-commercial use of the work. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please provide original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-noncommercial-attribution", "Informal non-commercial licence that requires attribution",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An informal licence that allows any non-commercial use of the work, as long as you "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "attribute the original author. Please provide original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-noncommercial-copyleft", "Informal non-commercial copyleft licence",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An informal copyleft licence that allows any non-commercial use of the work, as long as "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "you share your modifications under the same terms. Please provide original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-noncommercial-attribution-copyleft", "Informal non-commercial copyleft licence that requires attribution",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An informal copyleft licence that allows any non-commercial use of the work, as long as "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "you attribute the original author and share your modifications under the same terms. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please provide original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-verbatim", "Informal verbatim licence",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An informal licence that allows the distribution of only unmodified copies of the work. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please provide original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-verbatim-attribution", "Informal verbatim licence that requires attribution",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An informal licence that allows the distribution of only unmodified copies of the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as long as you attribute the original author. Please provide original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Other informal licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-other-free", "Other informal free licence",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Some other kind of informal licence that allows free use of the work. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please provide original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Informal-other-nonfree", "Other informal non-free licence",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Some other kind of informal licence that does not allow free use of the work. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please provide original statement and evidence in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Public domain or equivalent licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC0-1.0", "Creative Commons Zero v1.0 Universal",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Public domain equivalent, with a fallback lax licence if public domain is not possible.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/publicdomain/zero/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/publicdomain/zero/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Public-domain", "Public domain dedication",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Author has explicitly dedicated the work to the public domain; please provide original statement and evidence.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Public-domain-old", "Ineligible for copyright due to age",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The copyright of this work has expired both in the source country and in Romania, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "where this service is hosted.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("X-Public-domain-gov", "Public domain due to government work",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The work is in the public domain because it is a work of the government of a country "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "where government works are exempt from copyright, such as the USA.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "", "", free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Creative Commons Attribution licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-1.0", "Creative Commons Attribution v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first Creative Commons Attribution licence. Very rare nowadays; not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires only attribution to the original author, usually using a link to the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "the name of the licence, and the author, if applicable.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-2.0", "Creative Commons Attribution v2.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The second Creative Commons Attribution licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant or 2.1 is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires only attribution to the original author, usually using a link to the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "the name of the licence, and the author, if applicable.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by/2.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by/2.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-2.5", "Creative Commons Attribution v2.5",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "A modification of Creative Commons Attribution v2.0. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires only attribution to the original author, usually using a link to the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "the name of the licence, and the author, if applicable.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by/2.5/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by/2.5/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-3.0", "Creative Commons Attribution v3.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The third Creative Commons Attribution licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires only attribution to the original author, usually using a link to the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "the name of the licence, and the author, if applicable.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by/3.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by/3.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-4.0", "Creative Commons Attribution v4.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The fourth and most recent Creative Commons Attribution licence. Recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "This licence doesn't have regional variants; translations are equivalent. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires only attribution to the original author, usually using a link to the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "the name of the licence, and the author, if applicable.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by/4.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by/4.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Creative Commons ShareAlike licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-SA-1.0", "Creative Commons ShareAlike v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first Creative Commons ShareAlike licence. Very rare nowadays; not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, but attribution is optional. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "This family of licences has been discontinued by Creative Commons.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/sa/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/sa/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Creative Commons Attribution-ShareAlike licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-SA-1.0", "Creative Commons Attribution-ShareAlike v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first Creative Commons Attribution-ShareAlike licence. Very rare nowadays; not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "or select compatible licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-sa/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-sa/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-SA-2.0", "Creative Commons Attribution-ShareAlike v2.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The second Creative Commons Attribution-ShareAlike licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant or 2.1 is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "or select compatible licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-sa/2.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-sa/2.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-SA-2.5", "Creative Commons Attribution-ShareAlike v2.5",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "A modification of Creative Commons Attribution-ShareAlike v2.0. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "or select compatible licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-sa/2.5/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-sa/2.5/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-SA-3.0", "Creative Commons Attribution-ShareAlike v3.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The third Creative Commons Attribution-ShareAlike licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "or select compatible licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-sa/3.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-sa/3.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-SA-4.0", "Creative Commons Attribution-ShareAlike v4.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The fourth and most recent Creative Commons Attribution-ShareAlike licence. Recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "This licence doesn't have regional variants; translations are equivalent. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "or select compatible licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-sa/4.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-sa/4.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Creative Commons NonCommercial licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-NC-1.0", "Creative Commons NonCommercial v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first Creative Commons NonCommercial licence. Very rare nowadays; not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, but attribution is optional. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "This family of licences has been discontinued by Creative Commons.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/nc/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/nc/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Creative Commons Attribution-NonCommercial licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-1.0", "Creative Commons Attribution-NonCommercial v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first Creative Commons Attribution-NonCommercial licence. Very rare nowadays; not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-2.0", "Creative Commons Attribution-NonCommercial v2.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The second Creative Commons Attribution-NonCommercial licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant or 2.1 is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc/2.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc/2.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-2.5", "Creative Commons Attribution-NonCommercial v2.5",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "A modification of Creative Commons Attribution-NonCommercial v2.0. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc/2.5/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc/2.5/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-3.0", "Creative Commons Attribution-NonCommercial v3.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The third Creative Commons Attribution-NonCommercial licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc/3.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc/3.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-4.0", "Creative Commons Attribution-NonCommercial v4.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The fourth and most recent Creative Commons Attribution-NonCommercial licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "This licence doesn't have regional variants; translations are equivalent. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc/4.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc/4.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Creative Commons Attribution-NonCommercial-ShareAlike licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-SA-1.0", "Creative Commons Attribution-NonCommercial-ShareAlike v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first Creative Commons Attribution-NonCommercial-ShareAlike licence. Very rare nowadays; not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and sharing of modifications under the same terms, or select compatible licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-sa/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-sa/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-SA-2.0", "Creative Commons Attribution-NonCommercial-ShareAlike v2.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The second Creative Commons Attribution-NonCommercial-ShareAlike licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant or 2.1 is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and sharing of modifications under the same terms, or select compatible licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-sa/2.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-sa/2.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-SA-2.5", "Creative Commons Attribution-NonCommercial-ShareAlike v2.5",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "A modification of Creative Commons Attribution-NonCommercial-ShareAlike v2.0. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and sharing of modifications under the same terms, or select compatible licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-sa/2.5/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-sa/2.5/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-SA-3.0", "Creative Commons Attribution-NonCommercial-ShareAlike v3.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The third Creative Commons Attribution-NonCommercial-ShareAlike licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and sharing of modifications under the same terms, or select compatible licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-sa/3.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-sa/3.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-SA-4.0", "Creative Commons Attribution-NonCommercial-ShareAlike v4.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The fourth and most recent Creative Commons Attribution-NonCommercial-ShareAlike licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "This licence doesn't have regional variants; translations are equivalent. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and sharing of modifications under the same terms, or select compatible licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-sa/4.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Creative Commons NoDerivatives licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-ND-1.0", "Creative Commons NoDerivatives v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first Creative Commons NoDerivatives licence. Very rare nowadays; not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows distribution of unmodified copies of the work, but attribution is optional. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "This family of licences has been discontinued by Creative Commons.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/nd/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/nd/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Creative Commons Attribution-NoDerivatives licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-ND-1.0", "Creative Commons Attribution-NoDerivatives v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first Creative Commons Attribution-NoDerivatives licence. Very rare nowadays; not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nd/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nd/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-ND-2.0", "Creative Commons Attribution-NoDerivatives v2.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The second Creative Commons Attribution-NoDerivatives licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant or 2.1 is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nd/2.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nd/2.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-ND-2.5", "Creative Commons Attribution-NoDerivatives v2.5",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "A modification of Creative Commons Attribution-NoDerivatives v2.0. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nd/2.5/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nd/2.5/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-ND-3.0", "Creative Commons Attribution-NoDerivatives v3.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The third Creative Commons Attribution-NoDerivatives licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nd/3.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nd/3.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-ND-4.0", "Creative Commons Attribution-NoDerivatives v4.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The fourth and most recent Creative Commons Attribution-NoDerivatives licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "This licence doesn't have regional variants; translations are equivalent. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nd/4.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nd/4.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Creative Commons NonCommercial-NoDerivatives licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-NC-ND-1.0", "Creative Commons NonCommercial-NoDerivatives v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first Creative Commons NonCommercial-NoDerivatives licence. Very rare nowadays; not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, but attribution is optional. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "This family of licences has been discontinued by Creative Commons.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/nc-nd/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/nc-nd/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Creative Commons Attribution-NonCommercial-NoDerivatives licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-ND-1.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first Creative Commons Attribution-NonCommercial-NoDerivatives licence. Very rare nowadays; not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-nd/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-nd/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-ND-2.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v2.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The second Creative Commons Attribution-NonCommercial-NoDerivatives licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant or 2.1 is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-nd/2.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-nd/2.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-ND-2.5", "Creative Commons Attribution-NonCommercial-NoDerivatives v2.5",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "A modification of Creative Commons Attribution-NonCommercial-NoDerivatives v2.0. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-nd/2.5/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-nd/2.5/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-ND-3.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v3.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The third Creative Commons Attribution-NonCommercial-NoDerivatives licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-nd/3.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-BY-NC-ND-4.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v4.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The fourth and most recent Creative Commons Attribution-NonCommercial-NoDerivatives licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "This licence doesn't have regional variants; translations are equivalent. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and only with attribution to the original author (just like CC BY).",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-nd/4.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Other Creative Commons licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-Sampling-1.0", "Creative Commons Sampling v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An old and uncommon Creative Commons licence that allows only 'creative transformation' of the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and not full distribution. Also requires attribution to the original author like CC BY. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/sampling/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/sampling/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-Sampling-Plus-1.0", "Creative Commons Sampling Plus v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An old and uncommon Creative Commons licence that allows 'creative transformation' of the work, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "commercially or non-commercially, and non-commercial full distribution. Also requires attribution to the original author like CC BY. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Not recommended for new works. Please specify if a regional variant is used in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/sampling+/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/sampling+/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-NC-Sampling-Plus-1.0", "Creative Commons NonCommercial Sampling Plus v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An old and uncommon Creative Commons licence that allows only some kinds of non-commercial sampling "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "and distribution of the work. Also requires attribution to the original author like CC BY."
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Not recommended for new works. Please specify if a regional variant is used in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/nc-sampling+/1.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/nc-sampling+/1.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("CC-DevNations-2.0", "Creative Commons Developing Nations v2.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "An old and uncommon Creative Commons licence that allows distribution of the work in developing nations only. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Also requires attribution to the original author like CC BY. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Please specify if a regional variant is used in the description.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/devnations/2.0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://creativecommons.org/licenses/devnations/2.0/legalcode.en",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=False),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Open Data Commons licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("ODbL-1.0", "Open Data Commons Open Database Licence v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "A licence for databases that allows free use, modification, and distribution, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "but requires attribution and sharing under the same terms for the database itself. ",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://opendatacommons.org/licenses/odbl/summary/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://opendatacommons.org/licenses/odbl/1-0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("ODC-By-1.0", "Open Data Commons Attribution Licence v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "A licence for databases that allows free use, modification, and distribution, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "but requires attribution for the database itself. ",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://opendatacommons.org/licenses/by/summary/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://opendatacommons.org/licenses/by/1-0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("PDDL-1.0", "Open Data Commons Public Domain Dedication and Licence v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "A licence for databases that allows free use, modification, and distribution, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "with no restrictions, making it public domain equivalent. ",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://opendatacommons.org/licenses/pddl/summary/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://opendatacommons.org/licenses/pddl/1-0/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # GNU licences
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("GPL-1.0", "GNU General Public Licence v1.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first version of the GNU General Public Licence. Not recommended for new works. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-1.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-1.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("GPL-1.0-or-later", "GNU General Public Licence v1.0 or later",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Any of the versions of the GNU General Public Licence, starting with the first version. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "GPL by itself is not compatible with later versions, so this must be specified.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-1.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-1.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("GPL-2.0", "GNU General Public Licence v2.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The second version of the GNU General Public Licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-2.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-2.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("GPL-2.0-or-later", "GNU General Public Licence v2.0 or later",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Any of the versions of the GNU General Public Licence, starting with the second version. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "GPL by itself is not compatible with later versions, so this must be specified.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-2.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-2.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("GPL-3.0", "GNU General Public Licence v3.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The third and latest version of the GNU General Public Licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("GPL-3.0-or-later", "GNU General Public Licence v3.0 or later",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Any of the versions of the GNU General Public Licence, starting with the third version. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "GPL by itself is not compatible with later versions, so this must be specified. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "However there are currently no later versions.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/gpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("LGPL-2.0", "GNU Library General Public Licence v2.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first version of the GNU Lesser/Library General Public Licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "It doesn't, however, require dependent works to be compatible with the licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Note the later versions have been renamed to the Lesser GPL.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-2.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-2.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("LGPL-2.0-or-later", "GNU Library General Public Licence v2.0 or later",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Any of the versions of the GNU Lesser/Library General Public Licence, starting with the first version 2.o. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "It doesn't, however, require dependent works to be compatible with the licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Note the later versions have been renamed to the Lesser GPL.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-2.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-2.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("LGPL-2.1", "GNU Lesser General Public Licence v2.1",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The second version of the GNU Lesser General Public Licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "It doesn't, however, require dependent works to be compatible with the licence.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-2.1.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-2.1.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("LGPL-2.1-or-later", "GNU Lesser General Public Licence v2.1 or later",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Any of the versions of the GNU Lesser General Public Licence, starting with the second version 2.1."
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "It doesn't, however, require dependent works to be compatible with the licence.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-2.1.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-2.1.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("LGPL-3.0", "GNU Lesser General Public Licence v3.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The third and latest version of the GNU Lesser General Public Licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "It doesn't, however, require dependent works to be compatible with the licence.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("LGPL-3.0-or-later", "GNU Lesser General Public Licence v3.0 or later",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Any of the versions of the GNU Lesser General Public Licence, starting with the third version 3.0. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "It doesn't, however, require dependent works to be compatible with the licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "However there are currently no later versions.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/lgpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("AGPL-3.0", "GNU Affero General Public Licence v3.0",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "The first, only and latest version of the GNU Affero General Public Licence. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "It also requires that the source code be made available to users which access the "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "software over a network.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/agpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/agpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("AGPL-3.0-or-later", "GNU Affero General Public Licence v3.0 or later",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Any of the versions of the GNU Affero General Public Licence, starting with the first version 3.0. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Requires sharing of modifications under the same terms, and distribution of the source code, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "as well as requiring the licence notice to be included in distributions. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "It also requires that the source code be made available to users which access the "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "software over a network. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "However there are currently no later versions.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/agpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://www.gnu.org/licenses/agpl-3.0.html",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                # Licence Art Libre
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("LAL-1.2", "Free Art Licence / Licence Art Libre v1.2",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "A licence for works of art that allows free use, modification, and distribution, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "but requires attribution for the work itself, and sharing under the same terms. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Similar to the Creative Commons Attribution-ShareAlike and GNU GPL licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://artlibre.org/licence/lal/licence-art-libre-1.2/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://artlibre.org/licence/lal/licence-art-libre-1.2/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                Licence("LAL-1.3", "Free Art Licence / Licence Art Libre v1.3",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "A licence for works of art that allows free use, modification, and distribution, "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "but requires attribution for the work itself, and sharing under the same terms. "
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "Similar to the Creative Commons Attribution-ShareAlike and GNU GPL licences.",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://artlibre.org/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        "https://artlibre.org/",
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        free=True),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            ]
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            for licence in licences:
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                db.session.add(licence)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            db.session.commit()
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

app.py

@@ -47,19 +47,21 @@ with app.app_context():

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                class Licence(db.Model):
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                id = db.Column(db.String(32), primary_key=True)               # SPDX identifier
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                id = db.Column(db.String(64), primary_key=True)               # SPDX identifier
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    title = db.Column(db.UnicodeText, nullable=False)             # the official name of the licence
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    description = db.Column(db.UnicodeText, nullable=False)       # brief description of its permissions and restrictions
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    legal_text = db.Column(db.UnicodeText, nullable=False)        # the full legal text of the licence
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    url = db.Column(db.String(2048), nullable=True)               # the URL to a page with the full text of the licence and more information
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    pictures = db.relationship("PictureLicence", back_populates="licence")
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                free = db.Column(db.Boolean, nullable=False, default=False)   # whether the licence is free or not
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                def __init__(self, id, title, description, legal_text, url):
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                def __init__(self, id, title, description, legal_text, url, free):
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        self.id = id
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        self.title = title
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        self.description = description
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        self.legal_text = legal_text
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        self.url = url
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                    self.free = free
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                class PictureLicence(db.Model):
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -193,7 +195,7 @@ def index():

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                return flask.render_template("home.html")
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @app.route("/accounts")
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @app.route("/accounts/")
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            def accounts():
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                return flask.render_template("login.html")
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -247,7 +249,7 @@ def signup():

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    flask.flash("Passwords must be at least 6 characters long.")
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    return flask.redirect("/accounts")
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            user = User(username, None, password)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            user = User(username, password)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                db.session.add(user)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                db.session.commit()
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -300,7 +302,7 @@ def upload_post():

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                return flask.redirect("/picture/" + str(resource.id))
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @app.route("/picture/<int:id>")
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @app.route("/picture/<int:id>/")
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            def picture(id):
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                resource = db.session.get(PictureResource, id)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                if resource is None:
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -310,6 +312,17 @@ def picture(id):

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                                             file_extension=mimetypes.guess_extension(resource.file_format))
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @app.route("/picture/<int:id>/annotate")
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        def annotate_picture(id):
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            resource = db.session.get(PictureResource, id)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            if resource is None:
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                return flask.abort(404)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            return flask.render_template("picture-annotation.html", resource=resource,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                                         file_extension=mimetypes.guess_extension(resource.file_format))
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @app.route("/raw/picture/<int:id>")
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            def raw_picture(id):
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                resource = db.session.get(PictureResource, id)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

templates/default.html

@@ -14,6 +14,7 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                            <ul>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                                <li><a href="/">Home</a></li>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                                {% if session.username %}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                                <li><a href="/upload">Upload</a></li>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                                    <li><a href="/profile/{{ session.username }}">Profile: {{ session.username }}</a></li>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                                    <li><a href="/logout">Log out</a></li>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                                {% else %}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

templates/picture-annotation.html

@@ -0,0 +1,9 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        {% extends "default.html" %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        {% block title %}Picture | gigadata{% endblock %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        {% block content %}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            <x-frame style="--width: 768px">
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                <h1>Annotating: {{ resource.title }}</h1>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                <img src="/raw/picture/{{ resource.id }}" alt="{{ resource.title }}">
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            </x-frame>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        {% endblock %}