Debian Codegraph @

LICENSE

raw
1 All contributions towards LibCST are MIT licensed.
2
3 Some Python files have been derived from the standard library and are therefore
4 PSF licensed. Modifications on these files are dual licensed (both MIT and
5 PSF). These files are:
6
7 - libcst/_parser/base_parser.py
8 - libcst/_parser/parso/utils.py
9 - libcst/_parser/parso/pgen2/generator.py
10 - libcst/_parser/parso/pgen2/grammar_parser.py
11 - libcst/_parser/parso/python/py_token.py
12 - libcst/_parser/parso/python/tokenize.py
13 - libcst/_parser/parso/tests/test_fstring.py
14 - libcst/_parser/parso/tests/test_tokenize.py
15 - libcst/_parser/parso/tests/test_utils.py
16 - native/libcst/src/tokenizer/core/mod.rs
17 - native/libcst/src/tokenizer/core/string_types.rs
18
19 Some Python files have been taken from dataclasses and are therefore Apache
20 licensed. Modifications on these files are licensed under Apache 2.0 license.
21 These files are:
22
23 - libcst/_add_slots.py
24
25 -------------------------------------------------------------------------------
26
27 MIT License
28
29 Copyright (c) Meta Platforms, Inc. and affiliates.
30
31 Permission is hereby granted, free of charge, to any person obtaining a copy
32 of this software and associated documentation files (the "Software"), to deal
33 in the Software without restriction, including without limitation the rights
34 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35 copies of the Software, and to permit persons to whom the Software is
36 furnished to do so, subject to the following conditions:
37
38 The above copyright notice and this permission notice shall be included in all
39 copies or substantial portions of the Software.
40
41 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47 SOFTWARE.
48
49 -------------------------------------------------------------------------------
50
51 PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
52
53 1. This LICENSE AGREEMENT is between the Python Software Foundation
54 ("PSF"), and the Individual or Organization ("Licensee") accessing and
55 otherwise using this software ("Python") in source or binary form and
56 its associated documentation.
57
58 2. Subject to the terms and conditions of this License Agreement, PSF hereby
59 grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
60 analyze, test, perform and/or display publicly, prepare derivative works,
61 distribute, and otherwise use Python alone or in any derivative version,
62 provided, however, that PSF's License Agreement and PSF's notice of copyright,
63 i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
64 2011, 2012, 2013, 2014, 2015 Python Software Foundation; All Rights Reserved"
65 are retained in Python alone or in any derivative version prepared by Licensee.
66
67 3. In the event Licensee prepares a derivative work that is based on
68 or incorporates Python or any part thereof, and wants to make
69 the derivative work available to others as provided herein, then
70 Licensee hereby agrees to include in any such work a brief summary of
71 the changes made to Python.
72
73 4. PSF is making Python available to Licensee on an "AS IS"
74 basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
75 IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
76 DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
77 FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
78 INFRINGE ANY THIRD PARTY RIGHTS.
79
80 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
81 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
82 A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
83 OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
84
85 6. This License Agreement will automatically terminate upon a material
86 breach of its terms and conditions.
87
88 7. Nothing in this License Agreement shall be deemed to create any
89 relationship of agency, partnership, or joint venture between PSF and
90 Licensee. This License Agreement does not grant permission to use PSF
91 trademarks or trade name in a trademark sense to endorse or promote
92 products or services of Licensee, or any third party.
93
94 8. By copying, installing or otherwise using Python, Licensee
95 agrees to be bound by the terms and conditions of this License
96 Agreement.
97
98 -------------------------------------------------------------------------------
99
100 APACHE LICENSE, VERSION 2.0
101
102 http://www.apache.org/licenses/LICENSE-2.0