scanoss 1.12.2__py3-none-any.whl → 1.43.1__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.
Files changed (109) hide show
  1. protoc_gen_swagger/__init__.py +13 -13
  2. protoc_gen_swagger/options/__init__.py +13 -13
  3. protoc_gen_swagger/options/annotations_pb2.py +18 -12
  4. protoc_gen_swagger/options/annotations_pb2.pyi +48 -0
  5. protoc_gen_swagger/options/annotations_pb2_grpc.py +20 -0
  6. protoc_gen_swagger/options/openapiv2_pb2.py +110 -99
  7. protoc_gen_swagger/options/openapiv2_pb2.pyi +1317 -0
  8. protoc_gen_swagger/options/openapiv2_pb2_grpc.py +20 -0
  9. scanoss/__init__.py +18 -18
  10. scanoss/api/__init__.py +17 -17
  11. scanoss/api/common/__init__.py +17 -17
  12. scanoss/api/common/v2/__init__.py +17 -17
  13. scanoss/api/common/v2/scanoss_common_pb2.py +49 -20
  14. scanoss/api/common/v2/scanoss_common_pb2_grpc.py +25 -0
  15. scanoss/api/components/__init__.py +17 -17
  16. scanoss/api/components/v2/__init__.py +17 -17
  17. scanoss/api/components/v2/scanoss_components_pb2.py +68 -43
  18. scanoss/api/components/v2/scanoss_components_pb2_grpc.py +83 -22
  19. scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py +136 -21
  20. scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +766 -13
  21. scanoss/api/dependencies/__init__.py +17 -17
  22. scanoss/api/dependencies/v2/__init__.py +17 -17
  23. scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +56 -29
  24. scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +94 -8
  25. scanoss/api/geoprovenance/__init__.py +23 -0
  26. scanoss/api/geoprovenance/v2/__init__.py +23 -0
  27. scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2.py +92 -0
  28. scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2_grpc.py +381 -0
  29. scanoss/api/licenses/__init__.py +23 -0
  30. scanoss/api/licenses/v2/__init__.py +23 -0
  31. scanoss/api/licenses/v2/scanoss_licenses_pb2.py +84 -0
  32. scanoss/api/licenses/v2/scanoss_licenses_pb2_grpc.py +302 -0
  33. scanoss/api/scanning/__init__.py +17 -17
  34. scanoss/api/scanning/v2/__init__.py +17 -17
  35. scanoss/api/scanning/v2/scanoss_scanning_pb2.py +42 -13
  36. scanoss/api/scanning/v2/scanoss_scanning_pb2_grpc.py +86 -7
  37. scanoss/api/semgrep/__init__.py +17 -17
  38. scanoss/api/semgrep/v2/__init__.py +17 -17
  39. scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +50 -23
  40. scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +151 -16
  41. scanoss/api/vulnerabilities/__init__.py +17 -17
  42. scanoss/api/vulnerabilities/v2/__init__.py +17 -17
  43. scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +78 -31
  44. scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py +282 -18
  45. scanoss/cli.py +2359 -370
  46. scanoss/components.py +187 -94
  47. scanoss/constants.py +22 -0
  48. scanoss/cryptography.py +308 -0
  49. scanoss/csvoutput.py +91 -58
  50. scanoss/cyclonedx.py +221 -63
  51. scanoss/data/build_date.txt +1 -1
  52. scanoss/data/osadl-copyleft.json +133 -0
  53. scanoss/data/scanoss-settings-schema.json +254 -0
  54. scanoss/delta.py +197 -0
  55. scanoss/export/__init__.py +23 -0
  56. scanoss/export/dependency_track.py +227 -0
  57. scanoss/file_filters.py +582 -0
  58. scanoss/filecount.py +75 -69
  59. scanoss/gitlabqualityreport.py +214 -0
  60. scanoss/header_filter.py +563 -0
  61. scanoss/inspection/__init__.py +23 -0
  62. scanoss/inspection/policy_check/__init__.py +0 -0
  63. scanoss/inspection/policy_check/dependency_track/__init__.py +0 -0
  64. scanoss/inspection/policy_check/dependency_track/project_violation.py +479 -0
  65. scanoss/inspection/policy_check/policy_check.py +222 -0
  66. scanoss/inspection/policy_check/scanoss/__init__.py +0 -0
  67. scanoss/inspection/policy_check/scanoss/copyleft.py +243 -0
  68. scanoss/inspection/policy_check/scanoss/undeclared_component.py +309 -0
  69. scanoss/inspection/summary/__init__.py +0 -0
  70. scanoss/inspection/summary/component_summary.py +170 -0
  71. scanoss/inspection/summary/license_summary.py +191 -0
  72. scanoss/inspection/summary/match_summary.py +341 -0
  73. scanoss/inspection/utils/file_utils.py +44 -0
  74. scanoss/inspection/utils/license_utils.py +123 -0
  75. scanoss/inspection/utils/markdown_utils.py +63 -0
  76. scanoss/inspection/utils/scan_result_processor.py +417 -0
  77. scanoss/osadl.py +125 -0
  78. scanoss/results.py +275 -0
  79. scanoss/scancodedeps.py +87 -38
  80. scanoss/scanner.py +431 -539
  81. scanoss/scanners/__init__.py +23 -0
  82. scanoss/scanners/container_scanner.py +476 -0
  83. scanoss/scanners/folder_hasher.py +358 -0
  84. scanoss/scanners/scanner_config.py +73 -0
  85. scanoss/scanners/scanner_hfh.py +252 -0
  86. scanoss/scanoss_settings.py +337 -0
  87. scanoss/scanossapi.py +140 -101
  88. scanoss/scanossbase.py +59 -22
  89. scanoss/scanossgrpc.py +799 -251
  90. scanoss/scanpostprocessor.py +294 -0
  91. scanoss/scantype.py +22 -21
  92. scanoss/services/dependency_track_service.py +132 -0
  93. scanoss/spdxlite.py +532 -174
  94. scanoss/threadeddependencies.py +148 -47
  95. scanoss/threadedscanning.py +53 -37
  96. scanoss/utils/__init__.py +23 -0
  97. scanoss/utils/abstract_presenter.py +103 -0
  98. scanoss/utils/crc64.py +96 -0
  99. scanoss/utils/file.py +84 -0
  100. scanoss/utils/scanoss_scan_results_utils.py +41 -0
  101. scanoss/utils/simhash.py +198 -0
  102. scanoss/winnowing.py +241 -63
  103. {scanoss-1.12.2.dist-info → scanoss-1.43.1.dist-info}/METADATA +18 -9
  104. scanoss-1.43.1.dist-info/RECORD +110 -0
  105. {scanoss-1.12.2.dist-info → scanoss-1.43.1.dist-info}/WHEEL +1 -1
  106. scanoss-1.12.2.dist-info/RECORD +0 -58
  107. {scanoss-1.12.2.dist-info → scanoss-1.43.1.dist-info}/entry_points.txt +0 -0
  108. {scanoss-1.12.2.dist-info → scanoss-1.43.1.dist-info/licenses}/LICENSE +0 -0
  109. {scanoss-1.12.2.dist-info → scanoss-1.43.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,254 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "title": "Scanoss Settings",
4
+ "type": "object",
5
+ "properties": {
6
+ "self": {
7
+ "type": "object",
8
+ "description": "Description of the project under analysis",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string",
12
+ "description": "Name of the project"
13
+ },
14
+ "license": {
15
+ "type": "string",
16
+ "description": "License of the project"
17
+ },
18
+ "description": {
19
+ "type": "string",
20
+ "description": "Description of the project"
21
+ }
22
+ }
23
+ },
24
+ "settings": {
25
+ "type": "object",
26
+ "description": "Scan settings and other configurations",
27
+ "properties": {
28
+ "skip": {
29
+ "type": "object",
30
+ "description": "Set of rules to skip files from fingerprinting and scanning",
31
+ "properties": {
32
+ "patterns": {
33
+ "type": "object",
34
+ "properties": {
35
+ "scanning": {
36
+ "type": "array",
37
+ "description": "List of glob patterns to skip files from scanning",
38
+ "items": {
39
+ "type": "string",
40
+ "examples": [
41
+ "path/to/folder",
42
+ "path/to/folder/**",
43
+ "path/to/folder/**/*",
44
+ "path/to/file.c",
45
+ "path/to/another/file.py",
46
+ "**/*.ts",
47
+ "**/*.json"
48
+ ]
49
+ },
50
+ "uniqueItems": true
51
+ },
52
+ "fingerprinting": {
53
+ "type": "array",
54
+ "description": "List of glob patterns to skip files from fingerprinting",
55
+ "items": {
56
+ "type": "string",
57
+ "examples": [
58
+ "path/to/folder",
59
+ "path/to/folder/**",
60
+ "path/to/folder/**/*",
61
+ "path/to/file.c",
62
+ "path/to/another/file.py",
63
+ "**/*.ts",
64
+ "**/*.json"
65
+ ]
66
+ },
67
+ "uniqueItems": true
68
+ }
69
+ }
70
+ },
71
+ "sizes": {
72
+ "type": "object",
73
+ "description": "Set of rules to skip files based on their size.",
74
+ "properties": {
75
+ "scanning": {
76
+ "type": "array",
77
+ "items": {
78
+ "type": "object",
79
+ "properties": {
80
+ "patterns": {
81
+ "type": "array",
82
+ "description": "List of glob patterns to apply the min/max size rule",
83
+ "items": {
84
+ "type": "string",
85
+ "examples": [
86
+ "path/to/folder",
87
+ "path/to/folder/**",
88
+ "path/to/folder/**/*",
89
+ "path/to/file.c",
90
+ "path/to/another/file.py",
91
+ "**/*.ts",
92
+ "**/*.json"
93
+ ]
94
+ }
95
+ },
96
+ "min": {
97
+ "type": "integer",
98
+ "description": "Minimum size of the file in bytes"
99
+ },
100
+ "max": {
101
+ "type": "integer",
102
+ "description": "Maximum size of the file in bytes"
103
+ }
104
+ }
105
+ }
106
+ },
107
+ "fingerprinting": {
108
+ "type": "array",
109
+ "items": {
110
+ "type": "object",
111
+ "properties": {
112
+ "patterns": {
113
+ "type": "array",
114
+ "description": "List of glob patterns to apply the min/max size rule",
115
+ "items": {
116
+ "type": "string"
117
+ },
118
+ "examples": [
119
+ "path/to/folder",
120
+ "path/to/folder/**",
121
+ "path/to/folder/**/*",
122
+ "path/to/file.c",
123
+ "path/to/another/file.py",
124
+ "**/*.ts",
125
+ "**/*.json"
126
+ ]
127
+ },
128
+ "min": {
129
+ "type": "integer",
130
+ "description": "Minimum size of the file in bytes"
131
+ },
132
+ "max": {
133
+ "type": "integer",
134
+ "description": "Maximum size of the file in bytes"
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ },
145
+ "bom": {
146
+ "type": "object",
147
+ "description": "BOM Rules: Set of rules that will be used to modify the BOM before and after the scan is completed",
148
+ "properties": {
149
+ "include": {
150
+ "type": "array",
151
+ "description": "Set of rules to be added as context when scanning. This list will be sent as payload to the API.",
152
+ "items": {
153
+ "type": "object",
154
+ "properties": {
155
+ "path": {
156
+ "type": "string",
157
+ "description": "File path",
158
+ "examples": ["/path/to/file", "/path/to/another/file"],
159
+ "items": {
160
+ "type": "string"
161
+ },
162
+ "uniqueItems": true
163
+ },
164
+ "purl": {
165
+ "type": "string",
166
+ "description": "Package URL to be used to match the component",
167
+ "examples": [
168
+ "pkg:npm/vue@2.6.12",
169
+ "pkg:golang/github.com/golang/go@1.17.3"
170
+ ]
171
+ },
172
+ "comment": {
173
+ "type": "string",
174
+ "description": "Additional notes or comments"
175
+ }
176
+ },
177
+ "uniqueItems": true,
178
+ "required": ["purl"]
179
+ }
180
+ },
181
+ "remove": {
182
+ "type": "array",
183
+ "description": "Set of rules that will remove files from the results file after the scan is completed.",
184
+ "items": {
185
+ "type": "object",
186
+ "properties": {
187
+ "path": {
188
+ "type": "string",
189
+ "description": "File path",
190
+ "examples": ["/path/to/file", "/path/to/another/file"]
191
+ },
192
+ "purl": {
193
+ "type": "string",
194
+ "description": "Package URL",
195
+ "examples": [
196
+ "pkg:npm/vue@2.6.12",
197
+ "pkg:golang/github.com/golang/go@1.17.3"
198
+ ]
199
+ },
200
+ "comment": {
201
+ "type": "string",
202
+ "description": "Additional notes or comments"
203
+ }
204
+ },
205
+ "uniqueItems": true,
206
+ "required": ["purl"]
207
+ }
208
+ },
209
+ "replace": {
210
+ "type": "array",
211
+ "description": "Set of rules that will replace components with the specified one after the scan is completed.",
212
+ "items": {
213
+ "type": "object",
214
+ "properties": {
215
+ "path": {
216
+ "type": "string",
217
+ "description": "File path",
218
+ "examples": ["/path/to/file", "/path/to/another/file"]
219
+ },
220
+ "purl": {
221
+ "type": "string",
222
+ "description": "Package URL to replace",
223
+ "examples": [
224
+ "pkg:npm/vue@2.6.12",
225
+ "pkg:golang/github.com/golang/go@1.17.3"
226
+ ]
227
+ },
228
+ "comment": {
229
+ "type": "string",
230
+ "description": "Additional notes or comments"
231
+ },
232
+ "license": {
233
+ "type": "string",
234
+ "description": "License of the component. Should be a valid SPDX license expression",
235
+ "examples": ["MIT", "Apache-2.0"]
236
+ },
237
+ "replace_with": {
238
+ "type": "string",
239
+ "description": "Package URL to replace with",
240
+ "examples": [
241
+ "pkg:npm/vue@2.6.12",
242
+ "pkg:golang/github.com/golang/go@1.17.3"
243
+ ]
244
+ }
245
+ },
246
+ "uniqueItems": true,
247
+ "required": ["purl", "replace_with"]
248
+ }
249
+ }
250
+ }
251
+ }
252
+ }
253
+ }
254
+
scanoss/delta.py ADDED
@@ -0,0 +1,197 @@
1
+ """
2
+ SPDX-License-Identifier: MIT
3
+
4
+ Copyright (c) 2025, SCANOSS
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
23
+ """
24
+ import os
25
+ import shutil
26
+ import tempfile
27
+ from typing import Optional
28
+
29
+ from .scanossbase import ScanossBase
30
+
31
+
32
+ class Delta(ScanossBase):
33
+ """
34
+ Handle delta scan operations by copying files into a dedicated delta directory.
35
+
36
+ This class manages the creation of delta directories and copying of specified files
37
+ while preserving the directory structure. Files are read from an input file where each
38
+ line contains a file path to copy.
39
+ """
40
+
41
+ def __init__( # noqa: PLR0913
42
+ self,
43
+ debug: bool = False,
44
+ trace: bool = False,
45
+ quiet: bool = False,
46
+ filepath: str = None,
47
+ folder: str = None,
48
+ output: str = None,
49
+ root_dir: str = None,
50
+ ):
51
+ """
52
+ Initialise the Delta instance.
53
+
54
+ :param debug: Enable debug logging.
55
+ :param trace: Enable trace logging.
56
+ :param quiet: Enable quiet mode (suppress non-essential output).
57
+ :param filepath: Path to an input file containing a list of files to copy.
58
+ :param folder: A target delta directory path (auto-generated if not provided).
59
+ :param output: Output file path for the delta directory location (stdout if not provided).
60
+ """
61
+ super().__init__(debug, trace, quiet)
62
+ self.filepath = filepath
63
+ self.folder = folder
64
+ self.output = output
65
+ self.root_dir = root_dir if root_dir else '.'
66
+
67
+ def copy(self, input_file: str = None):
68
+ """
69
+ Copy files listed in the input file to the delta directory.
70
+
71
+ Reads the input file line by line, where each line contains a file path.
72
+ Creates the delta directory if it doesn't exist, then copies each file
73
+ while preserving its directory structure.
74
+
75
+ :return: Tuple of (status_code, folder_path) where status_code is 0 for success,
76
+ 1 for error, and folder_path is the delta directory path
77
+ """
78
+ input_file = input_file if input_file else self.filepath
79
+ if not input_file:
80
+ self.print_stderr('ERROR: No input file specified')
81
+ return 1, ''
82
+ # Validate that an input file exists
83
+ if not os.path.isfile(input_file):
84
+ self.print_stderr(f'ERROR: Input file {input_file} does not exist or is not a file')
85
+ return 1, ''
86
+ # Load the input file and validate it contains valid file paths
87
+ files = self.load_input_file(input_file)
88
+ if files is None:
89
+ return 1, ''
90
+ # Create delta dir (folder)
91
+ delta_folder = self.create_delta_dir(self.folder, self.root_dir)
92
+ if not delta_folder:
93
+ return 1, ''
94
+ # Print delta folder location to output
95
+ self.print_to_file_or_stdout(delta_folder, self.output)
96
+ # Process each file and copy it to the delta dir
97
+ for source_file in files:
98
+ # Normalise the source path to handle ".." and redundant separators
99
+ normalised_source = os.path.normpath(source_file)
100
+ if '..' in normalised_source:
101
+ self.print_stderr(f'WARNING: Source path escapes root directory for {source_file}. Skipping.')
102
+ continue
103
+ # Resolve to the absolute path for source validation
104
+ abs_source = os.path.abspath(os.path.join(self.root_dir, normalised_source))
105
+ # Check if the source file exists and is a file
106
+ if not os.path.exists(abs_source) or not os.path.isfile(abs_source):
107
+ self.print_stderr(f'WARNING: File {source_file} does not exist or is not a file, skipping')
108
+ continue
109
+ # Use a normalised source for destination to prevent traversal
110
+ dest_path = os.path.normpath(os.path.join(self.root_dir, delta_folder, normalised_source.lstrip(os.sep)))
111
+ # Final safety check: ensure destination is within the delta folder
112
+ abs_dest = os.path.abspath(dest_path)
113
+ abs_folder = os.path.abspath(os.path.join(self.root_dir, delta_folder))
114
+ if not abs_dest.startswith(abs_folder + os.sep):
115
+ self.print_stderr(
116
+ f'WARNING: Destination path ({abs_dest}) escapes delta directory for {source_file}. Skipping.')
117
+ continue
118
+ # Create the destination directory if it doesn't exist and copy the file
119
+ try:
120
+ dest_dir = os.path.dirname(dest_path)
121
+ if dest_dir:
122
+ self.print_trace(f'Creating directory {dest_dir}...')
123
+ os.makedirs(dest_dir, exist_ok=True)
124
+ self.print_debug(f'Copying {source_file} to {dest_path} ...')
125
+ shutil.copy(abs_source, dest_path)
126
+ except (OSError, shutil.Error) as e:
127
+ self.print_stderr(f'ERROR: Failed to copy {source_file} to {dest_path}: {e}')
128
+ return 1, ''
129
+ return 0, delta_folder
130
+
131
+ def create_delta_dir(self, folder: str, root_dir: str = '.') -> str or None:
132
+ """
133
+ Create the delta directory.
134
+
135
+ If no folder is specified, creates a unique temporary directory with
136
+ a 'delta-' prefix in the current directory. If a folder is specified,
137
+ validates that it doesn't already exist before creating it.
138
+
139
+ :param root_dir: Root directory to create the delta directory in (default: current directory)
140
+ :param folder: Optional target directory
141
+ :return: Path to the delta directory, or None if it already exists or creation fails
142
+ """
143
+ if folder:
144
+ # Resolve a relative folder under root_dir so checks/creation apply to the right place
145
+ resolved = folder if os.path.isabs(folder) else os.path.join(root_dir, folder)
146
+ resolved = os.path.normpath(resolved)
147
+ # Validate the target directory doesn't already exist and create it
148
+ if os.path.exists(resolved):
149
+ self.print_stderr(f'ERROR: Folder {resolved} already exists.')
150
+ return None
151
+ else:
152
+ try:
153
+ self.print_debug(f'Creating delta directory {resolved}...')
154
+ os.makedirs(resolved)
155
+ except (OSError, IOError) as e:
156
+ self.print_stderr(f'ERROR: Failed to create directory {resolved}: {e}')
157
+ return None
158
+ else:
159
+ # Create a unique temporary directory in the given root directory
160
+ try:
161
+ self.print_debug(f'Creating temporary delta directory in {root_dir} ...')
162
+ folder = tempfile.mkdtemp(prefix="delta-", dir=root_dir)
163
+ if folder:
164
+ folder = os.path.relpath(folder, start=root_dir) # Get the relative path from root_dir
165
+ self.print_debug(f'Created temporary delta directory: {folder}')
166
+ except (OSError, IOError) as e:
167
+ self.print_stderr(f'ERROR: Failed to create temporary directory in {root_dir}: {e}')
168
+ return None
169
+ return folder
170
+
171
+ def load_input_file(self, input_file: str) -> Optional[list[str]]:
172
+ """
173
+ Loads and parses the input file line by line. Each line in the input
174
+ file represents a source file path, which will be stripped of trailing
175
+ whitespace and appended to the resulting list if it is not empty.
176
+
177
+ :param input_file: The path to the input file to be read.
178
+ :type input_file: String
179
+ :return: A list of source file paths extracted from the input file,
180
+ or None if an error occurs or the file path is invalid.
181
+ :rtype: An array list[str] or None
182
+ """
183
+ files = []
184
+ if input_file:
185
+ try:
186
+ with open(input_file, 'r', encoding='utf-8') as f:
187
+ for line in f:
188
+ source_file = line.rstrip()
189
+ if source_file:
190
+ # Save the file path without any leading separators
191
+ files.append(source_file.lstrip(os.sep))
192
+ # End of for loop
193
+ except (OSError, IOError) as e:
194
+ self.print_stderr(f'ERROR: Failed to read input file; {input_file}: {e}')
195
+ return None
196
+ self.print_debug(f'Loaded {len(files)} files from input file.')
197
+ return files
@@ -0,0 +1,23 @@
1
+ """
2
+ SPDX-License-Identifier: MIT
3
+
4
+ Copyright (c) 2025, SCANOSS
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
23
+ """