diffpy.structure 3.2.0__py3-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.
- diffpy/Structure.py +35 -0
- diffpy/__init__.py +23 -0
- diffpy/structure/__init__.py +93 -0
- diffpy/structure/_legacy_importer.py +88 -0
- diffpy/structure/apps/__init__.py +17 -0
- diffpy/structure/apps/anyeye.py +284 -0
- diffpy/structure/apps/transtru.py +126 -0
- diffpy/structure/atom.py +544 -0
- diffpy/structure/expansion/__init__.py +27 -0
- diffpy/structure/expansion/makeellipsoid.py +129 -0
- diffpy/structure/expansion/shapeutils.py +44 -0
- diffpy/structure/expansion/supercell_mod.py +91 -0
- diffpy/structure/lattice.py +663 -0
- diffpy/structure/mmlibspacegroups.py +8154 -0
- diffpy/structure/parsers/__init__.py +83 -0
- diffpy/structure/parsers/p_auto.py +217 -0
- diffpy/structure/parsers/p_cif.py +876 -0
- diffpy/structure/parsers/p_discus.py +312 -0
- diffpy/structure/parsers/p_pdb.py +405 -0
- diffpy/structure/parsers/p_pdffit.py +290 -0
- diffpy/structure/parsers/p_rawxyz.py +149 -0
- diffpy/structure/parsers/p_xcfg.py +457 -0
- diffpy/structure/parsers/p_xyz.py +161 -0
- diffpy/structure/parsers/parser_index_mod.py +108 -0
- diffpy/structure/parsers/structureparser.py +80 -0
- diffpy/structure/pdffitstructure.py +109 -0
- diffpy/structure/sgtbxspacegroups.py +5198 -0
- diffpy/structure/spacegroupmod.py +329 -0
- diffpy/structure/spacegroups.py +1441 -0
- diffpy/structure/structure.py +866 -0
- diffpy/structure/structureerrors.py +35 -0
- diffpy/structure/symmetryutilities.py +1100 -0
- diffpy/structure/utils.py +126 -0
- diffpy/structure/version.py +26 -0
- diffpy.structure-3.2.0.dist-info/AUTHORS.rst +13 -0
- diffpy.structure-3.2.0.dist-info/LICENSE.rst +141 -0
- diffpy.structure-3.2.0.dist-info/LICENSE_DANSE.rst +50 -0
- diffpy.structure-3.2.0.dist-info/LICENSE_pymmlib.rst +203 -0
- diffpy.structure-3.2.0.dist-info/METADATA +197 -0
- diffpy.structure-3.2.0.dist-info/RECORD +42 -0
- diffpy.structure-3.2.0.dist-info/WHEEL +5 -0
- diffpy.structure-3.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
##############################################################################
|
|
3
|
+
#
|
|
4
|
+
# diffpy.structure by DANSE Diffraction group
|
|
5
|
+
# Simon J. L. Billinge
|
|
6
|
+
# (c) 2006 trustees of the Michigan State University.
|
|
7
|
+
# All rights reserved.
|
|
8
|
+
#
|
|
9
|
+
# File coded by: Pavol Juhas
|
|
10
|
+
#
|
|
11
|
+
# See AUTHORS.txt for a list of people who contributed.
|
|
12
|
+
# See LICENSE_DANSE.txt for license information.
|
|
13
|
+
#
|
|
14
|
+
##############################################################################
|
|
15
|
+
|
|
16
|
+
"""Small shared functions.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from collections.abc import Iterable as _Iterable
|
|
20
|
+
|
|
21
|
+
import numpy
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def isiterable(obj):
|
|
25
|
+
"""``True`` if argument is iterable."""
|
|
26
|
+
rv = isinstance(obj, _Iterable)
|
|
27
|
+
return rv
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def isfloat(s):
|
|
31
|
+
"""``True`` if argument can be converted to float."""
|
|
32
|
+
try:
|
|
33
|
+
float(s)
|
|
34
|
+
return True
|
|
35
|
+
except ValueError:
|
|
36
|
+
pass
|
|
37
|
+
return False
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def atomBareSymbol(smbl):
|
|
41
|
+
"""Remove atom type string stripped of isotope and ion charge symbols.
|
|
42
|
+
|
|
43
|
+
This function removes any blank, isotope numbers (0-9), leading hyphens (-), and ion charge
|
|
44
|
+
symbols (1-9)(+-) from the given atom type string, returning only the bare element symbol.
|
|
45
|
+
|
|
46
|
+
Parameters
|
|
47
|
+
----------
|
|
48
|
+
smbl : str
|
|
49
|
+
Atom type string that may include isotope numbers, ion charges, or hyphens.
|
|
50
|
+
|
|
51
|
+
Returns
|
|
52
|
+
-------
|
|
53
|
+
str
|
|
54
|
+
The bare element symbol.
|
|
55
|
+
|
|
56
|
+
Examples
|
|
57
|
+
--------
|
|
58
|
+
>>> atomBareSymbol("Cl-")
|
|
59
|
+
'Cl'
|
|
60
|
+
>>> atomBareSymbol("Ca2+")
|
|
61
|
+
'Ca'
|
|
62
|
+
>>> atomBareSymbol("12-C")
|
|
63
|
+
'C'
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
rv = smbl.strip().lstrip("0123456789-").rstrip("123456789+-")
|
|
67
|
+
return rv
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# Helpers for the Structure class --------------------------------------------
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def _linkAtomAttribute(attrname, doc, toarray=numpy.array):
|
|
74
|
+
"""Create property wrapper that maps the specified atom attribute.
|
|
75
|
+
|
|
76
|
+
The returned property object provides convenient access to atom
|
|
77
|
+
attributes from the owner `Structure` class.
|
|
78
|
+
|
|
79
|
+
Parameters
|
|
80
|
+
----------
|
|
81
|
+
attrname : str
|
|
82
|
+
The string name of the `Atom` class attribute to be mapped.
|
|
83
|
+
doc : str
|
|
84
|
+
The docstring for the property wrapper.
|
|
85
|
+
toarray : callable, Optional
|
|
86
|
+
Factory function that converts list of attributes to `numpy.ndarray`.
|
|
87
|
+
Use `numpy.char.array` for string attributes.
|
|
88
|
+
|
|
89
|
+
Return a property object.
|
|
90
|
+
"""
|
|
91
|
+
from itertools import repeat
|
|
92
|
+
from operator import setitem
|
|
93
|
+
|
|
94
|
+
_all = slice(None)
|
|
95
|
+
|
|
96
|
+
def fget(self):
|
|
97
|
+
va = toarray([getattr(a, attrname) for a in self])
|
|
98
|
+
return va
|
|
99
|
+
|
|
100
|
+
def fset(self, value):
|
|
101
|
+
n = len(self)
|
|
102
|
+
if n == 0:
|
|
103
|
+
return
|
|
104
|
+
v0 = getattr(self[0], attrname)
|
|
105
|
+
# replace scalar values, but change array attributes in place
|
|
106
|
+
if numpy.isscalar(v0):
|
|
107
|
+
|
|
108
|
+
def setvalue(a, v):
|
|
109
|
+
return setattr(a, attrname, v)
|
|
110
|
+
|
|
111
|
+
else:
|
|
112
|
+
|
|
113
|
+
def setvalue(a, v):
|
|
114
|
+
return setitem(getattr(a, attrname), _all, v)
|
|
115
|
+
|
|
116
|
+
# avoid broadcasting if the new value is a scalar
|
|
117
|
+
if numpy.isscalar(value):
|
|
118
|
+
genvalues = repeat(value)
|
|
119
|
+
else:
|
|
120
|
+
genvalues = numpy.broadcast_to(value, (n,) + numpy.shape(v0))
|
|
121
|
+
for a, v in zip(self, genvalues):
|
|
122
|
+
setvalue(a, v)
|
|
123
|
+
return
|
|
124
|
+
|
|
125
|
+
rv = property(fget, fset, doc=doc)
|
|
126
|
+
return rv
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
##############################################################################
|
|
3
|
+
#
|
|
4
|
+
# (c) 2024 The Trustees of Columbia University in the City of New York.
|
|
5
|
+
# All rights reserved.
|
|
6
|
+
#
|
|
7
|
+
# File coded by: Billinge Group members and community contributors.
|
|
8
|
+
#
|
|
9
|
+
# See GitHub contributions for a more detailed list of contributors.
|
|
10
|
+
# https://github.com/diffpy/diffpy.structure/graphs/contributors
|
|
11
|
+
#
|
|
12
|
+
# See LICENSE.rst for license information.
|
|
13
|
+
#
|
|
14
|
+
##############################################################################
|
|
15
|
+
|
|
16
|
+
"""Definition of __version__."""
|
|
17
|
+
|
|
18
|
+
# We do not use the other three variables, but can be added back if needed.
|
|
19
|
+
# __all__ = ["__date__", "__git_commit__", "__timestamp__", "__version__"]
|
|
20
|
+
|
|
21
|
+
# obtain version information
|
|
22
|
+
from importlib.metadata import version
|
|
23
|
+
|
|
24
|
+
__version__ = version("diffpy.structure")
|
|
25
|
+
|
|
26
|
+
# End of file
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
OPEN SOURCE LICENSE AGREEMENT
|
|
2
|
+
=============================
|
|
3
|
+
|
|
4
|
+
Copyright (c) 1989, 1991 Free Software Foundation, Inc.
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2006, The Regents of the University of California through Lawrence Berkeley National Laboratory
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2006-2007, Board of Trustees of Michigan State University
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2008-2012, The Trustees of Columbia University in the City of New York
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2009-2011, University of Tennessee
|
|
13
|
+
|
|
14
|
+
Copyright (c) 2014, Australian Synchrotron Research Program Inc., ("ASRP")
|
|
15
|
+
|
|
16
|
+
Copyright (c) 2014-2019, Brookhaven Science Associates, Brookhaven National Laboratory
|
|
17
|
+
|
|
18
|
+
Copyright (c) 2024, The Trustees of Columbia University in the City of New York.
|
|
19
|
+
All rights reserved.
|
|
20
|
+
|
|
21
|
+
The "DiffPy-CMI" is distributed subject to the following license conditions:
|
|
22
|
+
|
|
23
|
+
.. code-block:: text
|
|
24
|
+
|
|
25
|
+
SOFTWARE LICENSE AGREEMENT
|
|
26
|
+
|
|
27
|
+
Software: DiffPy-CMI
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
(1) The "Software", below, refers to the aforementioned DiffPy-CMI (in either
|
|
31
|
+
source code, or binary form and accompanying documentation).
|
|
32
|
+
|
|
33
|
+
Part of the software was derived from the DANSE, ObjCryst++ (with permission),
|
|
34
|
+
PyCifRW, Python periodictable, CCTBX, and SasView open source projects, of
|
|
35
|
+
which the original Copyrights are contained in each individual file.
|
|
36
|
+
|
|
37
|
+
Each licensee is addressed as "you" or "Licensee."
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
(2) The copyright holders shown above and their third-party Licensors hereby
|
|
41
|
+
grant licensee a royalty-free nonexclusive license, subject to the limitations
|
|
42
|
+
stated herein and U.S. Government license rights.
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
(3) You may modify and make a copy or copies of the software for use within
|
|
46
|
+
your organization, if you meet the following conditions:
|
|
47
|
+
|
|
48
|
+
(a) Copies in source code must include the copyright notice and this
|
|
49
|
+
software license agreement.
|
|
50
|
+
|
|
51
|
+
(b) Copies in binary form must include the copyright notice and this
|
|
52
|
+
Software License Agreement in the documentation and/or other materials
|
|
53
|
+
provided with the copy.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
(4) You may modify a copy or copies of the Software or any portion of it, thus
|
|
57
|
+
forming a work based on the Software, and distribute copies of such work
|
|
58
|
+
outside your organization, if you meet all of the following conditions:
|
|
59
|
+
|
|
60
|
+
(a) Copies in source code must include the copyright notice and this
|
|
61
|
+
Software License Agreement;
|
|
62
|
+
|
|
63
|
+
(b) Copies in binary form must include the copyright notice and this
|
|
64
|
+
Software License Agreement in the documentation and/or other materials
|
|
65
|
+
provided with the copy;
|
|
66
|
+
|
|
67
|
+
(c) Modified copies and works based on the Software must carry prominent
|
|
68
|
+
notices stating that you changed specified portions of the Software.
|
|
69
|
+
|
|
70
|
+
(d) Neither the name of Brookhaven Science Associates or Brookhaven
|
|
71
|
+
National Laboratory nor the names of its contributors may be used to
|
|
72
|
+
endorse or promote products derived from this software without specific
|
|
73
|
+
written permission.
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
(5) Portions of the Software resulted from work developed under a U.S.
|
|
77
|
+
Government contract and are subject to the following license:
|
|
78
|
+
The Government is granted for itself and others acting on its behalf a
|
|
79
|
+
paid-up, nonexclusive, irrevocable worldwide license in this computer software
|
|
80
|
+
to reproduce, prepare derivative works, and perform publicly and display
|
|
81
|
+
publicly.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
(6) WARRANTY DISCLAIMER. THE SOFTWARE IS SUPPLIED "AS IS" WITHOUT
|
|
85
|
+
WARRANTY OF ANY KIND. THE COPYRIGHT HOLDERS, THEIR THIRD PARTY
|
|
86
|
+
LICENSORS, THE UNITED STATES, THE UNITED STATES DEPARTMENT OF ENERGY, AND
|
|
87
|
+
THEIR EMPLOYEES: (1) DISCLAIM ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
|
|
88
|
+
BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
89
|
+
PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT, (2) DO NOT ASSUME ANY LEGAL
|
|
90
|
+
LIABILITY OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF
|
|
91
|
+
THE SOFTWARE, (3) DO NOT REPRESENT THAT USE OF THE SOFTWARE WOULD NOT INFRINGE
|
|
92
|
+
PRIVATELY OWNED RIGHTS, (4) DO NOT WARRANT THAT THE SOFTWARE WILL FUNCTION
|
|
93
|
+
UNINTERRUPTED, THAT IT IS ERROR-FREE OR THAT ANY ERRORS WILL BE CORRECTED.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
(7) LIMITATION OF LIABILITY. IN NO EVENT WILL THE COPYRIGHT HOLDERS, THEIR
|
|
97
|
+
THIRD PARTY LICENSORS, THE UNITED STATES, THE UNITED STATES DEPARTMENT OF
|
|
98
|
+
ENERGY, OR THEIR EMPLOYEES: BE LIABLE FOR ANY INDIRECT, INCIDENTAL,
|
|
99
|
+
CONSEQUENTIAL, SPECIAL OR PUNITIVE DAMAGES OF ANY KIND OR NATURE, INCLUDING
|
|
100
|
+
BUT NOT LIMITED TO LOSS OF PROFITS OR LOSS OF DATA, FOR ANY REASON WHATSOEVER,
|
|
101
|
+
WHETHER SUCH LIABILITY IS ASSERTED ON THE BASIS OF CONTRACT, TORT (INCLUDING
|
|
102
|
+
NEGLIGENCE OR STRICT LIABILITY), OR OTHERWISE, EVEN IF ANY OF SAID PARTIES HAS
|
|
103
|
+
BEEN WARNED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGES.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
Brookhaven National Laboratory Notice
|
|
107
|
+
=====================================
|
|
108
|
+
|
|
109
|
+
Acknowledgment of sponsorship
|
|
110
|
+
-----------------------------
|
|
111
|
+
|
|
112
|
+
This software was produced by the Brookhaven National Laboratory, under
|
|
113
|
+
Contract DE-AC02-98CH10886 with the Department of Energy.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
Government disclaimer of liability
|
|
117
|
+
----------------------------------
|
|
118
|
+
|
|
119
|
+
Neither the United States nor the United States Department of Energy, nor
|
|
120
|
+
any of their employees, makes any warranty, express or implied, or assumes
|
|
121
|
+
any legal liability or responsibility for the accuracy, completeness, or
|
|
122
|
+
usefulness of any data, apparatus, product, or process disclosed, or
|
|
123
|
+
represents that its use would not infringe privately owned rights.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
Brookhaven disclaimer of liability
|
|
127
|
+
----------------------------------
|
|
128
|
+
|
|
129
|
+
Brookhaven National Laboratory makes no representations or warranties,
|
|
130
|
+
express or implied, nor assumes any liability for the use of this software.
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
Maintenance of notice
|
|
134
|
+
---------------------
|
|
135
|
+
|
|
136
|
+
In the interest of clarity regarding the origin and status of this
|
|
137
|
+
software, Brookhaven National Laboratory requests that any recipient of it
|
|
138
|
+
maintain this notice affixed to any distribution by the recipient that
|
|
139
|
+
contains a copy or derivative of this software.
|
|
140
|
+
|
|
141
|
+
END OF LICENSE
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
This program is part of the DiffPy and DANSE open-source projects
|
|
5
|
+
and is available subject to the conditions and terms laid out below.
|
|
6
|
+
|
|
7
|
+
Copyright 2006-2007, Board of Trustees of Michigan State University,
|
|
8
|
+
|
|
9
|
+
Copyright 2008-2012, The Trustees of Columbia University in the
|
|
10
|
+
City of New York. (Copyright holder indicated in each source file).
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2024, The Trustees of Columbia University in the City of New York.
|
|
13
|
+
All rights reserved.
|
|
14
|
+
|
|
15
|
+
For more information please visit the project web-page:
|
|
16
|
+
|
|
17
|
+
http://www.diffpy.org/
|
|
18
|
+
|
|
19
|
+
or email Prof. Simon Billinge at sb2896@columbia.edu
|
|
20
|
+
|
|
21
|
+
Redistribution and use in source and binary forms, with or without
|
|
22
|
+
modification, are permitted provided that the following conditions
|
|
23
|
+
are met:
|
|
24
|
+
|
|
25
|
+
- Redistributions of source code must retain the above copyright
|
|
26
|
+
notice, this list of conditions and the following disclaimer.
|
|
27
|
+
|
|
28
|
+
- Redistributions in binary form must reproduce the above copyright
|
|
29
|
+
notice, this list of conditions and the following disclaimer in the
|
|
30
|
+
documentation and/or other materials provided with the distribution.
|
|
31
|
+
|
|
32
|
+
- Neither the name of the copyright holder nor the names of its
|
|
33
|
+
contributors may be used to endorse or promote products derived from
|
|
34
|
+
this software without specific prior written permission.
|
|
35
|
+
|
|
36
|
+
THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER "AS IS". COPYRIGHT HOLDER
|
|
37
|
+
EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES AND CONDITIONS, EITHER
|
|
38
|
+
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
39
|
+
WARRANTIES OF MERCHANTABILITY, TITLE, FITNESS, ADEQUACY OR SUITABILITY
|
|
40
|
+
FOR A PARTICULAR PURPOSE, AND ANY WARRANTIES OF FREEDOM FROM
|
|
41
|
+
INFRINGEMENT OF ANY DOMESTIC OR FOREIGN PATENT, COPYRIGHTS, TRADE
|
|
42
|
+
SECRETS OR OTHER PROPRIETARY RIGHTS OF ANY PARTY. IN NO EVENT SHALL
|
|
43
|
+
COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR ANY DIRECT, INDIRECT,
|
|
44
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
45
|
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
46
|
+
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
47
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
48
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
49
|
+
THIS SOFTWARE OR RELATING TO THIS AGREEMENT, EVEN IF ADVISED OF THE
|
|
50
|
+
POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
.. code-block:: text
|
|
2
|
+
|
|
3
|
+
The Artistic License 2.0
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2000-2006, The Perl Foundation.
|
|
6
|
+
|
|
7
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
8
|
+
of this license document, but changing it is not allowed.
|
|
9
|
+
|
|
10
|
+
Preamble
|
|
11
|
+
|
|
12
|
+
This license establishes the terms under which a given free software
|
|
13
|
+
Package may be copied, modified, distributed, and/or redistributed.
|
|
14
|
+
The intent is that the Copyright Holder maintains some artistic
|
|
15
|
+
control over the development of that Package while still keeping the
|
|
16
|
+
Package available as open source and free software.
|
|
17
|
+
|
|
18
|
+
You are always permitted to make arrangements wholly outside of this
|
|
19
|
+
license directly with the Copyright Holder of a given Package. If the
|
|
20
|
+
terms of this license do not permit the full use that you propose to
|
|
21
|
+
make of the Package, you should contact the Copyright Holder and seek
|
|
22
|
+
a different licensing arrangement.
|
|
23
|
+
|
|
24
|
+
Definitions
|
|
25
|
+
|
|
26
|
+
"Copyright Holder" means the individual(s) or organization(s)
|
|
27
|
+
named in the copyright notice for the entire Package.
|
|
28
|
+
|
|
29
|
+
"Contributor" means any party that has contributed code or other
|
|
30
|
+
material to the Package, in accordance with the Copyright Holder's
|
|
31
|
+
procedures.
|
|
32
|
+
|
|
33
|
+
"You" and "your" means any person who would like to copy,
|
|
34
|
+
distribute, or modify the Package.
|
|
35
|
+
|
|
36
|
+
"Package" means the collection of files distributed by the
|
|
37
|
+
Copyright Holder, and derivatives of that collection and/or of
|
|
38
|
+
those files. A given Package may consist of either the Standard
|
|
39
|
+
Version, or a Modified Version.
|
|
40
|
+
|
|
41
|
+
"Distribute" means providing a copy of the Package or making it
|
|
42
|
+
accessible to anyone else, or in the case of a company or
|
|
43
|
+
organization, to others outside of your company or organization.
|
|
44
|
+
|
|
45
|
+
"Distributor Fee" means any fee that you charge for Distributing
|
|
46
|
+
this Package or providing support for this Package to another
|
|
47
|
+
party. It does not mean licensing fees.
|
|
48
|
+
|
|
49
|
+
"Standard Version" refers to the Package if it has not been
|
|
50
|
+
modified, or has been modified only in ways explicitly requested
|
|
51
|
+
by the Copyright Holder.
|
|
52
|
+
|
|
53
|
+
"Modified Version" means the Package, if it has been changed, and
|
|
54
|
+
such changes were not explicitly requested by the Copyright
|
|
55
|
+
Holder.
|
|
56
|
+
|
|
57
|
+
"Original License" means this Artistic License as Distributed with
|
|
58
|
+
the Standard Version of the Package, in its current version or as
|
|
59
|
+
it may be modified by The Perl Foundation in the future.
|
|
60
|
+
|
|
61
|
+
"Source" form means the source code, documentation source, and
|
|
62
|
+
configuration files for the Package.
|
|
63
|
+
|
|
64
|
+
"Compiled" form means the compiled bytecode, object code, binary,
|
|
65
|
+
or any other form resulting from mechanical transformation or
|
|
66
|
+
translation of the Source form.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
Permission for Use and Modification Without Distribution
|
|
70
|
+
|
|
71
|
+
(1) You are permitted to use the Standard Version and create and use
|
|
72
|
+
Modified Versions for any purpose without restriction, provided that
|
|
73
|
+
you do not Distribute the Modified Version.
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
Permissions for Redistribution of the Standard Version
|
|
77
|
+
|
|
78
|
+
(2) You may Distribute verbatim copies of the Source form of the
|
|
79
|
+
Standard Version of this Package in any medium without restriction,
|
|
80
|
+
either gratis or for a Distributor Fee, provided that you duplicate
|
|
81
|
+
all of the original copyright notices and associated disclaimers. At
|
|
82
|
+
your discretion, such verbatim copies may or may not include a
|
|
83
|
+
Compiled form of the Package.
|
|
84
|
+
|
|
85
|
+
(3) You may apply any bug fixes, portability changes, and other
|
|
86
|
+
modifications made available from the Copyright Holder. The resulting
|
|
87
|
+
Package will still be considered the Standard Version, and as such
|
|
88
|
+
will be subject to the Original License.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
Distribution of Modified Versions of the Package as Source
|
|
92
|
+
|
|
93
|
+
(4) You may Distribute your Modified Version as Source (either gratis
|
|
94
|
+
or for a Distributor Fee, and with or without a Compiled form of the
|
|
95
|
+
Modified Version) provided that you clearly document how it differs
|
|
96
|
+
from the Standard Version, including, but not limited to, documenting
|
|
97
|
+
any non-standard features, executables, or modules, and provided that
|
|
98
|
+
you do at least ONE of the following:
|
|
99
|
+
|
|
100
|
+
(a) make the Modified Version available to the Copyright Holder
|
|
101
|
+
of the Standard Version, under the Original License, so that the
|
|
102
|
+
Copyright Holder may include your modifications in the Standard
|
|
103
|
+
Version.
|
|
104
|
+
|
|
105
|
+
(b) ensure that installation of your Modified Version does not
|
|
106
|
+
prevent the user installing or running the Standard Version. In
|
|
107
|
+
addition, the Modified Version must bear a name that is different
|
|
108
|
+
from the name of the Standard Version.
|
|
109
|
+
|
|
110
|
+
(c) allow anyone who receives a copy of the Modified Version to
|
|
111
|
+
make the Source form of the Modified Version available to others
|
|
112
|
+
under
|
|
113
|
+
|
|
114
|
+
(i) the Original License or
|
|
115
|
+
|
|
116
|
+
(ii) a license that permits the licensee to freely copy,
|
|
117
|
+
modify and redistribute the Modified Version using the same
|
|
118
|
+
licensing terms that apply to the copy that the licensee
|
|
119
|
+
received, and requires that the Source form of the Modified
|
|
120
|
+
Version, and of any works derived from it, be made freely
|
|
121
|
+
available in that license fees are prohibited but Distributor
|
|
122
|
+
Fees are allowed.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
Distribution of Compiled Forms of the Standard Version
|
|
126
|
+
or Modified Versions without the Source
|
|
127
|
+
|
|
128
|
+
(5) You may Distribute Compiled forms of the Standard Version without
|
|
129
|
+
the Source, provided that you include complete instructions on how to
|
|
130
|
+
get the Source of the Standard Version. Such instructions must be
|
|
131
|
+
valid at the time of your distribution. If these instructions, at any
|
|
132
|
+
time while you are carrying out such distribution, become invalid, you
|
|
133
|
+
must provide new instructions on demand or cease further distribution.
|
|
134
|
+
If you provide valid instructions or cease distribution within thirty
|
|
135
|
+
days after you become aware that the instructions are invalid, then
|
|
136
|
+
you do not forfeit any of your rights under this license.
|
|
137
|
+
|
|
138
|
+
(6) You may Distribute a Modified Version in Compiled form without
|
|
139
|
+
the Source, provided that you comply with Section 4 with respect to
|
|
140
|
+
the Source of the Modified Version.
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
Aggregating or Linking the Package
|
|
144
|
+
|
|
145
|
+
(7) You may aggregate the Package (either the Standard Version or
|
|
146
|
+
Modified Version) with other packages and Distribute the resulting
|
|
147
|
+
aggregation provided that you do not charge a licensing fee for the
|
|
148
|
+
Package. Distributor Fees are permitted, and licensing fees for other
|
|
149
|
+
components in the aggregation are permitted. The terms of this license
|
|
150
|
+
apply to the use and Distribution of the Standard or Modified Versions
|
|
151
|
+
as included in the aggregation.
|
|
152
|
+
|
|
153
|
+
(8) You are permitted to link Modified and Standard Versions with
|
|
154
|
+
other works, to embed the Package in a larger work of your own, or to
|
|
155
|
+
build stand-alone binary or bytecode versions of applications that
|
|
156
|
+
include the Package, and Distribute the result without restriction,
|
|
157
|
+
provided the result does not expose a direct interface to the Package.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
Items That are Not Considered Part of a Modified Version
|
|
161
|
+
|
|
162
|
+
(9) Works (including, but not limited to, modules and scripts) that
|
|
163
|
+
merely extend or make use of the Package, do not, by themselves, cause
|
|
164
|
+
the Package to be a Modified Version. In addition, such works are not
|
|
165
|
+
considered parts of the Package itself, and are not subject to the
|
|
166
|
+
terms of this license.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
General Provisions
|
|
170
|
+
|
|
171
|
+
(10) Any use, modification, and distribution of the Standard or
|
|
172
|
+
Modified Versions is governed by this Artistic License. By using,
|
|
173
|
+
modifying or distributing the Package, you accept this license. Do not
|
|
174
|
+
use, modify, or distribute the Package, if you do not accept this
|
|
175
|
+
license.
|
|
176
|
+
|
|
177
|
+
(11) If your Modified Version has been derived from a Modified
|
|
178
|
+
Version made by someone other than you, you are nevertheless required
|
|
179
|
+
to ensure that your Modified Version complies with the requirements of
|
|
180
|
+
this license.
|
|
181
|
+
|
|
182
|
+
(12) This license does not grant you the right to use any trademark,
|
|
183
|
+
service mark, tradename, or logo of the Copyright Holder.
|
|
184
|
+
|
|
185
|
+
(13) This license includes the non-exclusive, worldwide,
|
|
186
|
+
free-of-charge patent license to make, have made, use, offer to sell,
|
|
187
|
+
sell, import and otherwise transfer the Package with respect to any
|
|
188
|
+
patent claims licensable by the Copyright Holder that are necessarily
|
|
189
|
+
infringed by the Package. If you institute patent litigation
|
|
190
|
+
(including a cross-claim or counterclaim) against any party alleging
|
|
191
|
+
that the Package constitutes direct or contributory patent
|
|
192
|
+
infringement, then this Artistic License to you shall terminate on the
|
|
193
|
+
date that such litigation is filed.
|
|
194
|
+
|
|
195
|
+
(14) Disclaimer of Warranty:
|
|
196
|
+
THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
|
|
197
|
+
IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
|
|
198
|
+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
|
|
199
|
+
NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL
|
|
200
|
+
LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL
|
|
201
|
+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
202
|
+
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF
|
|
203
|
+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|