synapse 2.180.1__py311-none-any.whl → 2.181.0__py311-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of synapse might be problematic. Click here for more details.

Files changed (85) hide show
  1. synapse/assets/__init__.py +35 -0
  2. synapse/assets/storm/migrations/model-0.2.28.storm +355 -0
  3. synapse/common.py +2 -1
  4. synapse/cortex.py +49 -35
  5. synapse/cryotank.py +1 -1
  6. synapse/datamodel.py +30 -0
  7. synapse/lib/ast.py +12 -7
  8. synapse/lib/cell.py +1 -1
  9. synapse/lib/chop.py +0 -1
  10. synapse/lib/drive.py +8 -8
  11. synapse/lib/layer.py +55 -13
  12. synapse/lib/lmdbslab.py +26 -5
  13. synapse/lib/modelrev.py +28 -1
  14. synapse/lib/modules.py +1 -0
  15. synapse/lib/nexus.py +1 -1
  16. synapse/lib/node.py +5 -0
  17. synapse/lib/parser.py +23 -16
  18. synapse/lib/scrape.py +1 -1
  19. synapse/lib/slabseqn.py +2 -2
  20. synapse/lib/snap.py +129 -0
  21. synapse/lib/storm.lark +16 -2
  22. synapse/lib/storm.py +3 -0
  23. synapse/lib/storm_format.py +1 -0
  24. synapse/lib/stormhttp.py +34 -1
  25. synapse/lib/stormlib/auth.py +1 -1
  26. synapse/lib/stormlib/cortex.py +5 -2
  27. synapse/lib/stormlib/ipv6.py +2 -2
  28. synapse/lib/stormlib/model.py +114 -12
  29. synapse/lib/stormlib/project.py +1 -1
  30. synapse/lib/stormtypes.py +81 -7
  31. synapse/lib/types.py +7 -0
  32. synapse/lib/version.py +2 -2
  33. synapse/lib/view.py +47 -0
  34. synapse/models/inet.py +10 -3
  35. synapse/models/infotech.py +2 -1
  36. synapse/models/language.py +4 -0
  37. synapse/models/math.py +50 -0
  38. synapse/models/orgs.py +8 -0
  39. synapse/models/risk.py +9 -0
  40. synapse/tests/files/stormcov/pragma-nocov.storm +18 -0
  41. synapse/tests/test_assets.py +25 -0
  42. synapse/tests/test_cortex.py +129 -0
  43. synapse/tests/test_datamodel.py +6 -0
  44. synapse/tests/test_lib_grammar.py +7 -1
  45. synapse/tests/test_lib_layer.py +35 -0
  46. synapse/tests/test_lib_lmdbslab.py +11 -9
  47. synapse/tests/test_lib_modelrev.py +655 -1
  48. synapse/tests/test_lib_slabseqn.py +5 -4
  49. synapse/tests/test_lib_snap.py +4 -0
  50. synapse/tests/test_lib_storm.py +72 -1
  51. synapse/tests/test_lib_stormhttp.py +99 -1
  52. synapse/tests/test_lib_stormlib_cortex.py +21 -4
  53. synapse/tests/test_lib_stormlib_iters.py +8 -5
  54. synapse/tests/test_lib_stormlib_model.py +45 -6
  55. synapse/tests/test_lib_stormtypes.py +158 -2
  56. synapse/tests/test_lib_types.py +6 -0
  57. synapse/tests/test_model_inet.py +10 -0
  58. synapse/tests/test_model_language.py +4 -0
  59. synapse/tests/test_model_math.py +22 -0
  60. synapse/tests/test_model_orgs.py +6 -2
  61. synapse/tests/test_model_risk.py +4 -0
  62. synapse/tests/test_utils_stormcov.py +5 -0
  63. synapse/tests/utils.py +18 -5
  64. synapse/utils/stormcov/plugin.py +31 -1
  65. synapse/vendor/cpython/LICENSE +279 -0
  66. synapse/vendor/cpython/__init__.py +0 -0
  67. synapse/vendor/cpython/lib/__init__.py +0 -0
  68. synapse/vendor/cpython/lib/email/__init__.py +0 -0
  69. synapse/vendor/cpython/lib/email/_parseaddr.py +560 -0
  70. synapse/vendor/cpython/lib/email/utils.py +505 -0
  71. synapse/vendor/cpython/lib/ipaddress.py +2366 -0
  72. synapse/vendor/cpython/lib/test/__init__.py +0 -0
  73. synapse/vendor/cpython/lib/test/support/__init__.py +114 -0
  74. synapse/vendor/cpython/lib/test/test_email/__init__.py +0 -0
  75. synapse/vendor/cpython/lib/test/test_email/test_email.py +480 -0
  76. synapse/vendor/cpython/lib/test/test_email/test_utils.py +167 -0
  77. synapse/vendor/cpython/lib/test/test_ipaddress.py +2672 -0
  78. synapse/vendor/utils.py +4 -3
  79. {synapse-2.180.1.dist-info → synapse-2.181.0.dist-info}/METADATA +1 -1
  80. {synapse-2.180.1.dist-info → synapse-2.181.0.dist-info}/RECORD +83 -66
  81. {synapse-2.180.1.dist-info → synapse-2.181.0.dist-info}/WHEEL +1 -1
  82. synapse/lib/jupyter.py +0 -505
  83. synapse/tests/test_lib_jupyter.py +0 -224
  84. {synapse-2.180.1.dist-info → synapse-2.181.0.dist-info}/LICENSE +0 -0
  85. {synapse-2.180.1.dist-info → synapse-2.181.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,22 @@
1
+ import synapse.common as s_common
2
+ import synapse.tests.utils as s_t_utils
3
+
4
+ class MathTest(s_t_utils.SynTest):
5
+
6
+ async def test_model_math_algo(self):
7
+
8
+ async with self.getTestCore() as core:
9
+ nodes = await core.nodes('''
10
+ [ math:algorithm=*
11
+ :name=" ImPHaSH "
12
+ :created=20120202
13
+ :type=hash.imports
14
+ :desc="Import Hashes!"
15
+ ]
16
+ ''')
17
+ self.len(1, nodes)
18
+ self.eq('imphash', nodes[0].get('name'))
19
+ self.eq('hash.imports.', nodes[0].get('type'))
20
+ self.eq(1328140800000, nodes[0].get('created'))
21
+ self.eq("Import Hashes!", nodes[0].get('desc'))
22
+ self.len(1, await core.nodes('math:algorithm -> math:algorithm:type:taxonomy'))
@@ -95,7 +95,7 @@ class OuModelTest(s_t_utils.SynTest):
95
95
  :techniques=$p.techniques :sophistication=$p.sophistication :tag=$p.tag
96
96
  :reporter=$p.reporter :reporter:name=$p."reporter:name" :timeline=$p.timeline
97
97
  :mitre:attack:campaign=$p."mitre:attack:campaign"
98
- :ext:id=Foo
98
+ :ext:id=Foo :slogan="For The People"
99
99
  )]'''
100
100
  nodes = await core.nodes(q, opts={'vars': {'valu': camp, 'p': props}})
101
101
  self.len(1, nodes)
@@ -118,7 +118,9 @@ class OuModelTest(s_t_utils.SynTest):
118
118
  self.nn(node.get('reporter'))
119
119
  self.eq(node.get('reporter:name'), 'vertex')
120
120
  self.eq(node.get('mitre:attack:campaign'), 'C0011')
121
+ self.eq(node.get('slogan'), 'for the people')
121
122
 
123
+ self.len(1, await core.nodes(f'ou:campaign={camp} :slogan -> lang:phrase'))
122
124
  nodes = await core.nodes(f'ou:campaign={camp} -> it:mitre:attack:campaign')
123
125
  self.len(1, nodes)
124
126
  nodes = nodes[0]
@@ -238,7 +240,7 @@ class OuModelTest(s_t_utils.SynTest):
238
240
  :logo=$p.logo :alias=$p.alias :phone=$p.phone :sic=$p.sic :naics=$p.naics :url=$p.url
239
241
  :us:cage=$p."us:cage" :founded=$p.founded :dissolved=$p.dissolved
240
242
  :techniques=$p.techniques :goals=$p.goals
241
- :ext:id=Foo
243
+ :ext:id=Foo :motto="DONT BE EVIL"
242
244
  )]'''
243
245
  nodes = await core.nodes(q, opts={'vars': {'valu': guid0, 'p': props}})
244
246
  self.len(1, nodes)
@@ -261,11 +263,13 @@ class OuModelTest(s_t_utils.SynTest):
261
263
  self.eq(node.get('goals'), (goal,))
262
264
  self.eq(node.get('ext:id'), 'Foo')
263
265
  self.nn(node.get('logo'))
266
+ self.eq('dont be evil', node.get('motto'))
264
267
 
265
268
  await core.nodes('ou:org:us:cage=7qe71 [ :country={ gen.pol.country ua } :country:code=ua ]')
266
269
  self.len(1, await core.nodes('ou:org:country:code=ua'))
267
270
  self.len(1, await core.nodes('pol:country:iso2=ua -> ou:org'))
268
271
  self.len(1, await core.nodes('ou:org -> ou:orgtype'))
272
+ self.len(1, await core.nodes('ou:org :motto -> lang:phrase'))
269
273
 
270
274
  nodes = await core.nodes('ou:name')
271
275
  self.sorteq([x.ndef[1] for x in nodes], (normname, 'vertex') + altnames)
@@ -523,14 +523,18 @@ class RiskModelTest(s_t_utils.SynTest):
523
523
  :period=(2022, ?)
524
524
  :node=(inet:fqdn, vertex.link)
525
525
  :vuln={[ risk:vuln=* :name=redtree ]}
526
+ :mitigated=true
527
+ :mitigations={[ risk:mitigation=* :name=patchstuff ]}
526
528
  ]
527
529
  ''')
528
530
  self.len(1, nodes)
529
531
  self.nn(nodes[0].get('vuln'))
532
+ self.eq(True, nodes[0].get('mitigated'))
530
533
  self.eq((1640995200000, 9223372036854775807), nodes[0].get('period'))
531
534
  self.eq(('inet:fqdn', 'vertex.link'), nodes[0].get('node'))
532
535
  self.len(1, await core.nodes('risk:vulnerable -> risk:vuln'))
533
536
  self.len(1, await core.nodes('risk:vuln:name=redtree -> risk:vulnerable :node -> *'))
537
+ self.len(1, await core.nodes('risk:vulnerable -> risk:mitigation'))
534
538
 
535
539
  async def test_model_risk_mitigation(self):
536
540
  async with self.getTestCore() as core:
@@ -27,6 +27,11 @@ class TestUtilsStormcov(s_utils.SynTest):
27
27
  self.eq(reporter.lines(), {1, 2, 3, 6})
28
28
  self.eq(reporter.translate_lines({1, 2}), {1, 2})
29
29
 
30
+ # no cover, no cover start, and no cover stop
31
+ reporter = plugin.file_reporter(s_files.getAssetPath('stormcov/pragma-nocov.storm'))
32
+ self.eq(reporter.lines(), {1, 2, 3, 12, 18})
33
+ self.eq(reporter.excluded_lines(), {6, 8, 9, 10, 14, 15, 16})
34
+
30
35
  # We no longer do whitespace transformations of lines.
31
36
  reporter = plugin.file_reporter(s_files.getAssetPath('stormcov/spin.storm'))
32
37
  self.eq(reporter.translate_lines({1, 2}), {1, 2})
synapse/tests/utils.py CHANGED
@@ -70,6 +70,7 @@ import synapse.lib.httpapi as s_httpapi
70
70
  import synapse.lib.msgpack as s_msgpack
71
71
  import synapse.lib.jsonstor as s_jsonstor
72
72
  import synapse.lib.lmdbslab as s_lmdbslab
73
+ import synapse.lib.modelrev as s_modelrev
73
74
  import synapse.lib.thishost as s_thishost
74
75
  import synapse.lib.structlog as s_structlog
75
76
  import synapse.lib.stormtypes as s_stormtypes
@@ -1015,11 +1016,23 @@ class SynTest(unittest.TestCase):
1015
1016
  yield regrdir
1016
1017
 
1017
1018
  @contextlib.asynccontextmanager
1018
- async def getRegrCore(self, vers, conf=None):
1019
+ async def getRegrCore(self, vers, conf=None, maxvers=None):
1019
1020
  with self.withNexusReplay():
1020
1021
  with self.getRegrDir('cortexes', vers) as dirn:
1021
- async with await s_cortex.Cortex.anit(dirn, conf=conf) as core:
1022
- yield core
1022
+ if maxvers is not None:
1023
+
1024
+ orig = s_modelrev.ModelRev
1025
+ class ModelRev(orig):
1026
+ def __init__(self, core):
1027
+ orig.__init__(self, core)
1028
+ self.revs = [k for k in self.revs if k[0] <= maxvers]
1029
+
1030
+ with mock.patch.object(s_modelrev, 'ModelRev', ModelRev):
1031
+ async with await s_cortex.Cortex.anit(dirn, conf=conf) as core:
1032
+ yield core
1033
+ else:
1034
+ async with await s_cortex.Cortex.anit(dirn, conf=conf) as core:
1035
+ yield core
1023
1036
 
1024
1037
  @contextlib.asynccontextmanager
1025
1038
  async def getRegrAxon(self, vers, conf=None):
@@ -1491,7 +1504,7 @@ class SynTest(unittest.TestCase):
1491
1504
  async def addSvcToAha(self, aha, svcname, ctor,
1492
1505
  conf=None, dirn=None, provinfo=None):
1493
1506
  '''
1494
- Creates as service and provision it in a Aha network via the provisioning API.
1507
+ Creates a service and provisions it in an Aha network via the provisioning API.
1495
1508
 
1496
1509
  This assumes the Aha cell has a provision:listen and aha:urls set.
1497
1510
 
@@ -1501,7 +1514,7 @@ class SynTest(unittest.TestCase):
1501
1514
  ctor: Service class to add.
1502
1515
  conf (dict): Optional service conf.
1503
1516
  dirn (str): Optional directory.
1504
- provinfo (dict)): Optional provisioning info.
1517
+ provinfo (dict): Optional provisioning info.
1505
1518
 
1506
1519
  Notes:
1507
1520
  The config data for the cell is pushed into dirn/cell.yaml.
@@ -243,4 +243,34 @@ class StormReporter(coverage.FileReporter):
243
243
  if token.type in TOKENS:
244
244
  source_lines.add(token.line)
245
245
 
246
- return source_lines
246
+ return source_lines - self.excluded_lines()
247
+
248
+ def excluded_lines(self):
249
+ excluded_lines = set()
250
+
251
+ pragma = 'pragma: no cover'
252
+ start = 'pragma: no cover start'
253
+ stop = 'pragma: no cover stop'
254
+
255
+ lines = self.source().splitlines()
256
+ nocov = [(lineno + 1, text) for (lineno, text) in enumerate(lines) if pragma in text]
257
+
258
+ block = None
259
+ for (lineno, text) in nocov:
260
+ if stop in text:
261
+ if block is not None:
262
+ # End a multi-line block
263
+ excluded_lines |= set(range(block, lineno + 1))
264
+ block = None
265
+ continue
266
+
267
+ if start in text:
268
+ if block is None:
269
+ # Start a multi-line block
270
+ block = lineno
271
+ continue
272
+
273
+ if pragma in text:
274
+ excluded_lines.add(lineno)
275
+
276
+ return excluded_lines
@@ -0,0 +1,279 @@
1
+ A. HISTORY OF THE SOFTWARE
2
+ ==========================
3
+
4
+ Python was created in the early 1990s by Guido van Rossum at Stichting
5
+ Mathematisch Centrum (CWI, see https://www.cwi.nl) in the Netherlands
6
+ as a successor of a language called ABC. Guido remains Python's
7
+ principal author, although it includes many contributions from others.
8
+
9
+ In 1995, Guido continued his work on Python at the Corporation for
10
+ National Research Initiatives (CNRI, see https://www.cnri.reston.va.us)
11
+ in Reston, Virginia where he released several versions of the
12
+ software.
13
+
14
+ In May 2000, Guido and the Python core development team moved to
15
+ BeOpen.com to form the BeOpen PythonLabs team. In October of the same
16
+ year, the PythonLabs team moved to Digital Creations, which became
17
+ Zope Corporation. In 2001, the Python Software Foundation (PSF, see
18
+ https://www.python.org/psf/) was formed, a non-profit organization
19
+ created specifically to own Python-related Intellectual Property.
20
+ Zope Corporation was a sponsoring member of the PSF.
21
+
22
+ All Python releases are Open Source (see https://opensource.org for
23
+ the Open Source Definition). Historically, most, but not all, Python
24
+ releases have also been GPL-compatible; the table below summarizes
25
+ the various releases.
26
+
27
+ Release Derived Year Owner GPL-
28
+ from compatible? (1)
29
+
30
+ 0.9.0 thru 1.2 1991-1995 CWI yes
31
+ 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
32
+ 1.6 1.5.2 2000 CNRI no
33
+ 2.0 1.6 2000 BeOpen.com no
34
+ 1.6.1 1.6 2001 CNRI yes (2)
35
+ 2.1 2.0+1.6.1 2001 PSF no
36
+ 2.0.1 2.0+1.6.1 2001 PSF yes
37
+ 2.1.1 2.1+2.0.1 2001 PSF yes
38
+ 2.1.2 2.1.1 2002 PSF yes
39
+ 2.1.3 2.1.2 2002 PSF yes
40
+ 2.2 and above 2.1.1 2001-now PSF yes
41
+
42
+ Footnotes:
43
+
44
+ (1) GPL-compatible doesn't mean that we're distributing Python under
45
+ the GPL. All Python licenses, unlike the GPL, let you distribute
46
+ a modified version without making your changes open source. The
47
+ GPL-compatible licenses make it possible to combine Python with
48
+ other software that is released under the GPL; the others don't.
49
+
50
+ (2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
51
+ because its license has a choice of law clause. According to
52
+ CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
53
+ is "not incompatible" with the GPL.
54
+
55
+ Thanks to the many outside volunteers who have worked under Guido's
56
+ direction to make these releases possible.
57
+
58
+
59
+ B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
60
+ ===============================================================
61
+
62
+ Python software and documentation are licensed under the
63
+ Python Software Foundation License Version 2.
64
+
65
+ Starting with Python 3.8.6, examples, recipes, and other code in
66
+ the documentation are dual licensed under the PSF License Version 2
67
+ and the Zero-Clause BSD license.
68
+
69
+ Some software incorporated into Python is under different licenses.
70
+ The licenses are listed with code falling under that license.
71
+
72
+
73
+ PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
74
+ --------------------------------------------
75
+
76
+ 1. This LICENSE AGREEMENT is between the Python Software Foundation
77
+ ("PSF"), and the Individual or Organization ("Licensee") accessing and
78
+ otherwise using this software ("Python") in source or binary form and
79
+ its associated documentation.
80
+
81
+ 2. Subject to the terms and conditions of this License Agreement, PSF hereby
82
+ grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
83
+ analyze, test, perform and/or display publicly, prepare derivative works,
84
+ distribute, and otherwise use Python alone or in any derivative version,
85
+ provided, however, that PSF's License Agreement and PSF's notice of copyright,
86
+ i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
87
+ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Python Software Foundation;
88
+ All Rights Reserved" are retained in Python alone or in any derivative version
89
+ prepared by Licensee.
90
+
91
+ 3. In the event Licensee prepares a derivative work that is based on
92
+ or incorporates Python or any part thereof, and wants to make
93
+ the derivative work available to others as provided herein, then
94
+ Licensee hereby agrees to include in any such work a brief summary of
95
+ the changes made to Python.
96
+
97
+ 4. PSF is making Python available to Licensee on an "AS IS"
98
+ basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
99
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
100
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
101
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
102
+ INFRINGE ANY THIRD PARTY RIGHTS.
103
+
104
+ 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
105
+ FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
106
+ A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
107
+ OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
108
+
109
+ 6. This License Agreement will automatically terminate upon a material
110
+ breach of its terms and conditions.
111
+
112
+ 7. Nothing in this License Agreement shall be deemed to create any
113
+ relationship of agency, partnership, or joint venture between PSF and
114
+ Licensee. This License Agreement does not grant permission to use PSF
115
+ trademarks or trade name in a trademark sense to endorse or promote
116
+ products or services of Licensee, or any third party.
117
+
118
+ 8. By copying, installing or otherwise using Python, Licensee
119
+ agrees to be bound by the terms and conditions of this License
120
+ Agreement.
121
+
122
+
123
+ BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
124
+ -------------------------------------------
125
+
126
+ BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
127
+
128
+ 1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
129
+ office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
130
+ Individual or Organization ("Licensee") accessing and otherwise using
131
+ this software in source or binary form and its associated
132
+ documentation ("the Software").
133
+
134
+ 2. Subject to the terms and conditions of this BeOpen Python License
135
+ Agreement, BeOpen hereby grants Licensee a non-exclusive,
136
+ royalty-free, world-wide license to reproduce, analyze, test, perform
137
+ and/or display publicly, prepare derivative works, distribute, and
138
+ otherwise use the Software alone or in any derivative version,
139
+ provided, however, that the BeOpen Python License is retained in the
140
+ Software, alone or in any derivative version prepared by Licensee.
141
+
142
+ 3. BeOpen is making the Software available to Licensee on an "AS IS"
143
+ basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
144
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
145
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
146
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
147
+ INFRINGE ANY THIRD PARTY RIGHTS.
148
+
149
+ 4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
150
+ SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
151
+ AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
152
+ DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
153
+
154
+ 5. This License Agreement will automatically terminate upon a material
155
+ breach of its terms and conditions.
156
+
157
+ 6. This License Agreement shall be governed by and interpreted in all
158
+ respects by the law of the State of California, excluding conflict of
159
+ law provisions. Nothing in this License Agreement shall be deemed to
160
+ create any relationship of agency, partnership, or joint venture
161
+ between BeOpen and Licensee. This License Agreement does not grant
162
+ permission to use BeOpen trademarks or trade names in a trademark
163
+ sense to endorse or promote products or services of Licensee, or any
164
+ third party. As an exception, the "BeOpen Python" logos available at
165
+ http://www.pythonlabs.com/logos.html may be used according to the
166
+ permissions granted on that web page.
167
+
168
+ 7. By copying, installing or otherwise using the software, Licensee
169
+ agrees to be bound by the terms and conditions of this License
170
+ Agreement.
171
+
172
+
173
+ CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
174
+ ---------------------------------------
175
+
176
+ 1. This LICENSE AGREEMENT is between the Corporation for National
177
+ Research Initiatives, having an office at 1895 Preston White Drive,
178
+ Reston, VA 20191 ("CNRI"), and the Individual or Organization
179
+ ("Licensee") accessing and otherwise using Python 1.6.1 software in
180
+ source or binary form and its associated documentation.
181
+
182
+ 2. Subject to the terms and conditions of this License Agreement, CNRI
183
+ hereby grants Licensee a nonexclusive, royalty-free, world-wide
184
+ license to reproduce, analyze, test, perform and/or display publicly,
185
+ prepare derivative works, distribute, and otherwise use Python 1.6.1
186
+ alone or in any derivative version, provided, however, that CNRI's
187
+ License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
188
+ 1995-2001 Corporation for National Research Initiatives; All Rights
189
+ Reserved" are retained in Python 1.6.1 alone or in any derivative
190
+ version prepared by Licensee. Alternately, in lieu of CNRI's License
191
+ Agreement, Licensee may substitute the following text (omitting the
192
+ quotes): "Python 1.6.1 is made available subject to the terms and
193
+ conditions in CNRI's License Agreement. This Agreement together with
194
+ Python 1.6.1 may be located on the internet using the following
195
+ unique, persistent identifier (known as a handle): 1895.22/1013. This
196
+ Agreement may also be obtained from a proxy server on the internet
197
+ using the following URL: http://hdl.handle.net/1895.22/1013".
198
+
199
+ 3. In the event Licensee prepares a derivative work that is based on
200
+ or incorporates Python 1.6.1 or any part thereof, and wants to make
201
+ the derivative work available to others as provided herein, then
202
+ Licensee hereby agrees to include in any such work a brief summary of
203
+ the changes made to Python 1.6.1.
204
+
205
+ 4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
206
+ basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
207
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
208
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
209
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
210
+ INFRINGE ANY THIRD PARTY RIGHTS.
211
+
212
+ 5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
213
+ 1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
214
+ A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
215
+ OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
216
+
217
+ 6. This License Agreement will automatically terminate upon a material
218
+ breach of its terms and conditions.
219
+
220
+ 7. This License Agreement shall be governed by the federal
221
+ intellectual property law of the United States, including without
222
+ limitation the federal copyright law, and, to the extent such
223
+ U.S. federal law does not apply, by the law of the Commonwealth of
224
+ Virginia, excluding Virginia's conflict of law provisions.
225
+ Notwithstanding the foregoing, with regard to derivative works based
226
+ on Python 1.6.1 that incorporate non-separable material that was
227
+ previously distributed under the GNU General Public License (GPL), the
228
+ law of the Commonwealth of Virginia shall govern this License
229
+ Agreement only as to issues arising under or with respect to
230
+ Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
231
+ License Agreement shall be deemed to create any relationship of
232
+ agency, partnership, or joint venture between CNRI and Licensee. This
233
+ License Agreement does not grant permission to use CNRI trademarks or
234
+ trade name in a trademark sense to endorse or promote products or
235
+ services of Licensee, or any third party.
236
+
237
+ 8. By clicking on the "ACCEPT" button where indicated, or by copying,
238
+ installing or otherwise using Python 1.6.1, Licensee agrees to be
239
+ bound by the terms and conditions of this License Agreement.
240
+
241
+ ACCEPT
242
+
243
+
244
+ CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
245
+ --------------------------------------------------
246
+
247
+ Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
248
+ The Netherlands. All rights reserved.
249
+
250
+ Permission to use, copy, modify, and distribute this software and its
251
+ documentation for any purpose and without fee is hereby granted,
252
+ provided that the above copyright notice appear in all copies and that
253
+ both that copyright notice and this permission notice appear in
254
+ supporting documentation, and that the name of Stichting Mathematisch
255
+ Centrum or CWI not be used in advertising or publicity pertaining to
256
+ distribution of the software without specific, written prior
257
+ permission.
258
+
259
+ STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
260
+ THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
261
+ FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
262
+ FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
263
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
264
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
265
+ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
266
+
267
+ ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION
268
+ ----------------------------------------------------------------------
269
+
270
+ Permission to use, copy, modify, and/or distribute this software for any
271
+ purpose with or without fee is hereby granted.
272
+
273
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
274
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
275
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
276
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
277
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
278
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
279
+ PERFORMANCE OF THIS SOFTWARE.
File without changes
File without changes
File without changes