@komira-ai/komira 0.0.0 → 0.1.1738
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.
- package/LICENSE +201 -0
- package/NOTICE +285 -0
- package/dist/arrow_import.d.ts +37 -0
- package/dist/arrow_import.js +242 -0
- package/dist/cpu.d.ts +79 -0
- package/dist/cpu.js +229 -0
- package/dist/errors.d.ts +55 -0
- package/dist/errors.js +97 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +21 -0
- package/dist/native.d.ts +76 -0
- package/dist/native.js +137 -0
- package/dist/platform.d.ts +35 -0
- package/dist/platform.js +89 -0
- package/dist/result.d.ts +32 -0
- package/dist/result.js +76 -0
- package/dist/session.d.ts +92 -0
- package/dist/session.js +258 -0
- package/dist/version.d.ts +4 -0
- package/dist/version.js +15 -0
- package/package.json +30 -4
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
komira
|
|
2
|
+
Licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
3
|
+
|
|
4
|
+
This file records third-party material that text committed to this repository
|
|
5
|
+
is derived from, the third-party code compiled into the native files of the
|
|
6
|
+
Python wheel, and, in its last section, the third-party runtime that the
|
|
7
|
+
wheel carries and the conda packages built from this repository depend on.
|
|
8
|
+
Material that
|
|
9
|
+
is only built or tested against (the C and C++ libraries of third_party/, the
|
|
10
|
+
toolchains) is fetched from pinned archives at build time and is not
|
|
11
|
+
committed; each is under its own license, which its archive carries.
|
|
12
|
+
|
|
13
|
+
Generated clients: text derived from Apache-2.0 inputs
|
|
14
|
+
------------------------------------------------------
|
|
15
|
+
|
|
16
|
+
The files under `src/*/generated/*/` are written by the generators of
|
|
17
|
+
tools/build/proto-codegen (see docs/design/generated_sources.md). Each file's
|
|
18
|
+
first lines name its generator and, where the generator pins them, the
|
|
19
|
+
sha256 of each input. Not every generated library derives from third-party
|
|
20
|
+
input: those generated from komira's own `.proto` files and models (for
|
|
21
|
+
example plan_proto, and records_db in db_sqlite) are komira's
|
|
22
|
+
own text. The inputs
|
|
23
|
+
themselves are not committed here; the archives are pinned by sha256 and
|
|
24
|
+
fetched at build time.
|
|
25
|
+
|
|
26
|
+
1. AWS clients (`komira_aws_*`). Generated from the AWS service models
|
|
27
|
+
(`service-2.json`) and endpoint rulesets of botocore, pinned in
|
|
28
|
+
third_party/botocore/BUCK (version and archive sha256 there). botocore is
|
|
29
|
+
licensed under the Apache License, Version 2.0, and its NOTICE reads:
|
|
30
|
+
|
|
31
|
+
Botocore
|
|
32
|
+
Copyright 2012-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
33
|
+
|
|
34
|
+
(The rest of botocore's NOTICE concerns the vendorized parts of the
|
|
35
|
+
`requests` and `urllib3` libraries and a bundle of CA root certificates
|
|
36
|
+
inside botocore's Python code and data; none of that is read or
|
|
37
|
+
reproduced here.) botocore's LICENSE.txt and NOTICE are extracted
|
|
38
|
+
unmodified from the archive as `//third_party/botocore:files[LICENSE.txt]`
|
|
39
|
+
and `[NOTICE]`.
|
|
40
|
+
|
|
41
|
+
2. Google Cloud clients (`komira_gcp_*`) and the modules of their googleapis
|
|
42
|
+
protos. Generated from the `.proto` files of
|
|
43
|
+
https://github.com/googleapis/googleapis (Apache License, Version 2.0; it
|
|
44
|
+
ships no NOTICE), at the commit pinned in tools/vendor/googleapis/BUCK.
|
|
45
|
+
The archive's LICENSE is extracted unmodified as
|
|
46
|
+
`//tools/vendor/googleapis:googleapis[LICENSE]`. The copyright holder
|
|
47
|
+
is Google LLC: the headers of the pinned protos read "Copyright <year>
|
|
48
|
+
Google LLC" and the Apache-2.0 notice (checked on google/type/expr.proto,
|
|
49
|
+
google/iam/v1/iam_policy.proto and
|
|
50
|
+
google/cloud/secretmanager/v1/service.proto). The generated Mojo does not
|
|
51
|
+
carry that header; this entry is where the attribution is.
|
|
52
|
+
|
|
53
|
+
The Apache License, Version 2.0 is at http://www.apache.org/licenses/LICENSE-2.0
|
|
54
|
+
and in the LICENSE file of this repository. The generated files are modified
|
|
55
|
+
forms of the inputs' definitions (their structure re-expressed as Mojo); they
|
|
56
|
+
are distributed here under the same license as the rest of komira.
|
|
57
|
+
libkomira, which the Python wheel carries, compiles in two of these clients,
|
|
58
|
+
the S3 client (`aws_s3`, item 1) and the Cloud Storage client (`gcp_storage`,
|
|
59
|
+
item 2), so the attribution above also covers their binary form there.
|
|
60
|
+
|
|
61
|
+
Third-party code inside the native files
|
|
62
|
+
----------------------------------------
|
|
63
|
+
|
|
64
|
+
Four of the native owner libraries that libkomira links, and that the Linux
|
|
65
|
+
wheel carries, hold third-party code compiled in, and libkomira itself holds
|
|
66
|
+
lz4 (docs/design/wheel_licence_audit.md lists every native file of the wheel). The other native files are komira's own
|
|
67
|
+
code, except the three Mojo runtime libraries the wheel carries,
|
|
68
|
+
which are Modular's (the last section). Redistributed here in binary form, with the notices their licenses
|
|
69
|
+
require.
|
|
70
|
+
|
|
71
|
+
1. snappy 1.3.1, statically linked into `libkomira_compression_native.so.1`.
|
|
72
|
+
BSD-3-Clause. Pinned in third_party/snappy/BUCK.
|
|
73
|
+
|
|
74
|
+
Copyright 2011, Google Inc.
|
|
75
|
+
All rights reserved.
|
|
76
|
+
|
|
77
|
+
Redistribution and use in source and binary forms, with or without
|
|
78
|
+
modification, are permitted provided that the following conditions are
|
|
79
|
+
met:
|
|
80
|
+
|
|
81
|
+
* Redistributions of source code must retain the above copyright
|
|
82
|
+
notice, this list of conditions and the following disclaimer.
|
|
83
|
+
* Redistributions in binary form must reproduce the above
|
|
84
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
85
|
+
in the documentation and/or other materials provided with the
|
|
86
|
+
distribution.
|
|
87
|
+
* Neither the name of Google Inc. nor the names of its
|
|
88
|
+
contributors may be used to endorse or promote products derived from
|
|
89
|
+
this software without specific prior written permission.
|
|
90
|
+
|
|
91
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
92
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
93
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
94
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
95
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
96
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
97
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
98
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
99
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
100
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
101
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
102
|
+
|
|
103
|
+
The archive's COPYING is extracted unmodified as
|
|
104
|
+
`//third_party/snappy:src[COPYING]`; it is the text above.
|
|
105
|
+
|
|
106
|
+
2. Brotli 1.1.0 (the decoder only), statically linked into
|
|
107
|
+
`libkomira_parquet_codec_native.so.1` with its symbols prefixed
|
|
108
|
+
`komira_brotli_`. MIT. Pinned in third_party/brotli/BUCK.
|
|
109
|
+
|
|
110
|
+
Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors.
|
|
111
|
+
|
|
112
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
113
|
+
a copy of this software and associated documentation files (the
|
|
114
|
+
"Software"), to deal in the Software without restriction, including
|
|
115
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
116
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
117
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
118
|
+
the following conditions:
|
|
119
|
+
|
|
120
|
+
The above copyright notice and this permission notice shall be
|
|
121
|
+
included in all copies or substantial portions of the Software.
|
|
122
|
+
|
|
123
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
124
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
125
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
126
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
127
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
128
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
129
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
130
|
+
|
|
131
|
+
The archive's LICENSE is extracted unmodified as
|
|
132
|
+
`//third_party/brotli:src[LICENSE]`; it is the text above.
|
|
133
|
+
|
|
134
|
+
3. LLVM libc++ and libc++abi, from the Zig toolchain that builds the
|
|
135
|
+
libraries, statically linked into `libkomira_compression_native.so.1`
|
|
136
|
+
(snappy is C++) with their symbols local to it. Apache License, Version
|
|
137
|
+
2.0 with LLVM Exceptions. The exception lets object code that embeds parts
|
|
138
|
+
of the software be redistributed without the conditions of sections 4(a),
|
|
139
|
+
4(b) and 4(d) of the License; it is recorded here regardless. The Apache
|
|
140
|
+
License text is in LICENSE.
|
|
141
|
+
|
|
142
|
+
4. aws-lc 1.39.0 (libcrypto), statically linked into
|
|
143
|
+
`libkomira_crypto_native.so.1` with its global symbols renamed
|
|
144
|
+
`komira_awslc_`. Apache-2.0 OR ISC for AWS-LC's own files; the OpenSSL
|
|
145
|
+
License, the original SSLeay License, ISC, MIT and BSD-3-Clause for the
|
|
146
|
+
parts it inherits, as its LICENSE states. Pinned in third_party/aws-lc/BUCK.
|
|
147
|
+
Its LICENSE, with every copyright notice, condition and disclaimer those
|
|
148
|
+
licenses require, is carried unmodified with the libraries as
|
|
149
|
+
AWS_LC_LICENSE (in the Python wheel, `.dist-info/licenses/AWS_LC_LICENSE`),
|
|
150
|
+
extracted from the pinned archive as `//third_party/aws-lc:src[LICENSE]`.
|
|
151
|
+
Its NOTICE file:
|
|
152
|
+
|
|
153
|
+
AWS-LC
|
|
154
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
155
|
+
|
|
156
|
+
5. s2n-tls 1.5.6, statically linked into `libkomira_http_core_native.so.1`
|
|
157
|
+
with its symbols prefixed `komira_s2n_`; it calls the aws-lc above, in
|
|
158
|
+
`libkomira_crypto_native.so.1`. Apache License, Version 2.0, whose text is
|
|
159
|
+
in LICENSE; its LICENSE is carried unmodified as S2N_TLS_LICENSE
|
|
160
|
+
(`//third_party/s2n-tls:src[LICENSE]`). Pinned in
|
|
161
|
+
third_party/s2n-tls/BUCK. Its NOTICE file:
|
|
162
|
+
|
|
163
|
+
s2n
|
|
164
|
+
Copyright 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
165
|
+
|
|
166
|
+
6. zstd 1.5.7, statically linked into `libkomira_compression_native.so.1`
|
|
167
|
+
with its symbols prefixed `komira_zstd_`. Dual-licensed BSD-3-Clause or
|
|
168
|
+
GPL-2.0; komira uses it under BSD-3-Clause. Pinned in third_party/zstd/BUCK.
|
|
169
|
+
|
|
170
|
+
BSD License
|
|
171
|
+
|
|
172
|
+
For Zstandard software
|
|
173
|
+
|
|
174
|
+
Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
|
|
175
|
+
|
|
176
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
177
|
+
are permitted provided that the following conditions are met:
|
|
178
|
+
|
|
179
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
180
|
+
list of conditions and the following disclaimer.
|
|
181
|
+
|
|
182
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
183
|
+
this list of conditions and the following disclaimer in the documentation
|
|
184
|
+
and/or other materials provided with the distribution.
|
|
185
|
+
|
|
186
|
+
* Neither the name Facebook, nor Meta, nor the names of its contributors may
|
|
187
|
+
be used to endorse or promote products derived from this software without
|
|
188
|
+
specific prior written permission.
|
|
189
|
+
|
|
190
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
191
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
192
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
193
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
194
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
195
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
196
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
197
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
198
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
199
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
200
|
+
|
|
201
|
+
The archive's LICENSE is extracted unmodified as
|
|
202
|
+
`//third_party/zstd:src[LICENSE]`; it is the text above.
|
|
203
|
+
|
|
204
|
+
7. lz4 1.10.0 (the library: the block, high-compression, frame and xxHash
|
|
205
|
+
sources of lib/), statically linked into libkomira itself with its symbols
|
|
206
|
+
prefixed `komira_lz4_`. BSD-2-Clause. Pinned in third_party/lz4/BUCK.
|
|
207
|
+
|
|
208
|
+
LZ4 Library
|
|
209
|
+
Copyright (c) 2011-2020, Yann Collet
|
|
210
|
+
All rights reserved.
|
|
211
|
+
|
|
212
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
213
|
+
are permitted provided that the following conditions are met:
|
|
214
|
+
|
|
215
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
216
|
+
list of conditions and the following disclaimer.
|
|
217
|
+
|
|
218
|
+
* Redistributions in binary form must reproduce the above copyright notice, this
|
|
219
|
+
list of conditions and the following disclaimer in the documentation and/or
|
|
220
|
+
other materials provided with the distribution.
|
|
221
|
+
|
|
222
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
223
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
224
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
225
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
226
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
227
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
228
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
229
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
230
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
231
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
232
|
+
|
|
233
|
+
The archive's lib/LICENSE is extracted unmodified as
|
|
234
|
+
`//third_party/lz4:src[lib/LICENSE]`; it is the text above.
|
|
235
|
+
|
|
236
|
+
None of the other libraries the wheel's files need at run time is carried: not
|
|
237
|
+
the C++ runtime the Mojo runtime libraries need (libstdc++.so.6, libgcc_s.so.1),
|
|
238
|
+
not the system's glibc (`libc.so.6`, `libpthread.so.0`), and not the codec
|
|
239
|
+
libraries libz, libbz2 and liblzma, which komira opens by name from the host
|
|
240
|
+
when a file uses that codec. The macOS arm64 wheel carries no owner library:
|
|
241
|
+
its libkomira.dylib links the C archives of its closure (the libraries above
|
|
242
|
+
among them) statically, so whatever of that third-party
|
|
243
|
+
code it calls is inside libkomira.dylib, under the same notices.
|
|
244
|
+
|
|
245
|
+
The Mojo runtime: Modular's libraries, carried in the wheel
|
|
246
|
+
-----------------------------------------------------------
|
|
247
|
+
|
|
248
|
+
komira's libraries, the shared library libkomira among them, are compiled
|
|
249
|
+
by Modular's Mojo compiler and need the Mojo runtime libraries when they are
|
|
250
|
+
loaded (libKGENCompilerRTShared, libAsyncRTRuntimeGlobals and
|
|
251
|
+
libMSupportGlobals; .so on Linux, .dylib on macOS). These libraries are
|
|
252
|
+
Modular's, are not part of this repository, and are not covered by its
|
|
253
|
+
Apache License grant.
|
|
254
|
+
|
|
255
|
+
The Python wheel `komira` carries these three files, unmodified, at
|
|
256
|
+
`komira/_lib/lib/`: libKGENCompilerRTShared.so, libAsyncRTRuntimeGlobals.so
|
|
257
|
+
and libMSupportGlobals.so (.dylib in the macOS arm64 wheel), taken from the
|
|
258
|
+
Mojo compiler package that compiled
|
|
259
|
+
libkomira (Modular's conda package `mojo-compiler` 1.1.0, pinned by sha256 in
|
|
260
|
+
tools/build/platforms/table.bzl). It carries no other file of Modular's and
|
|
261
|
+
requires no distribution of Modular's.
|
|
262
|
+
|
|
263
|
+
The licence those files are distributed under is the one their package
|
|
264
|
+
states. That package's metadata declares `LicenseRef-Modular-Proprietary`,
|
|
265
|
+
and its licence file, `info/licenses/LICENSE`, is the Modular Community
|
|
266
|
+
License Terms; its `info/licenses/Third-Party-Notices` lists the third-party
|
|
267
|
+
components of Modular's software. Neither file, nor the three libraries,
|
|
268
|
+
states the Apache License: Modular's statement that Mojo is licensed under
|
|
269
|
+
the Apache License v2.0 with LLVM Exceptions is made for the source code it
|
|
270
|
+
publishes, and the package of these binary files does not repeat it. The
|
|
271
|
+
wheel carries both files, unmodified, as `.dist-info/licenses/MODULAR_LICENSE`
|
|
272
|
+
and `.dist-info/licenses/MODULAR_THIRD_PARTY_NOTICES`, and its
|
|
273
|
+
License-Expression is `Apache-2.0 AND LicenseRef-Modular-Proprietary`: komira's
|
|
274
|
+
own files under the first, the three Mojo runtime libraries under the second.
|
|
275
|
+
docs/design/mojo_runtime_pypi_vs_conda.md records where each statement was
|
|
276
|
+
read.
|
|
277
|
+
|
|
278
|
+
komira's conda packages carry none of these libraries. Each declares a
|
|
279
|
+
dependency on Modular's `mojo-compiler` conda package at the compiler version
|
|
280
|
+
the libraries were built with, and the user's package installer fetches that
|
|
281
|
+
package from Modular's channel under the licence that package declares. A
|
|
282
|
+
conda package carries only LICENSE.
|
|
283
|
+
|
|
284
|
+
`mojo_bundle` outputs (tools/build/package), such as the base image under
|
|
285
|
+
packaging/images, also carry the Mojo runtime libraries in their `lib/`.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type Data, DataType, Field, RecordBatch, Schema, Table } from 'apache-arrow';
|
|
2
|
+
export interface SchemaDescription {
|
|
3
|
+
format: string;
|
|
4
|
+
name: string | null;
|
|
5
|
+
flags: number;
|
|
6
|
+
metadata: [string, string][] | null;
|
|
7
|
+
children: SchemaDescription[];
|
|
8
|
+
dictionary: SchemaDescription | null;
|
|
9
|
+
}
|
|
10
|
+
export interface ArrayDescription {
|
|
11
|
+
length: number;
|
|
12
|
+
nullCount: number;
|
|
13
|
+
offset: number;
|
|
14
|
+
buffers: (ArrayBuffer | null)[];
|
|
15
|
+
children: ArrayDescription[];
|
|
16
|
+
dictionary: ArrayDescription | null;
|
|
17
|
+
}
|
|
18
|
+
export interface ArrowAddon {
|
|
19
|
+
importArrowStream(capsule: unknown): Promise<object>;
|
|
20
|
+
arrowSchema(result: object): SchemaDescription;
|
|
21
|
+
arrowNextBatch(result: object): ArrayDescription | null;
|
|
22
|
+
arrowClose(result: object): void;
|
|
23
|
+
}
|
|
24
|
+
interface Ids {
|
|
25
|
+
next: number;
|
|
26
|
+
}
|
|
27
|
+
export declare function typeOf(s: SchemaDescription, path: string, ids: Ids): DataType;
|
|
28
|
+
export declare function fieldOf(s: SchemaDescription, path: string, ids: Ids): Field;
|
|
29
|
+
export declare function schemaOf(s: SchemaDescription): Schema;
|
|
30
|
+
export declare function dataOf(type: DataType, a: ArrayDescription): Data;
|
|
31
|
+
export declare function openBatches(addon: ArrowAddon, result: object): {
|
|
32
|
+
schema: Schema;
|
|
33
|
+
batches: Generator<RecordBatch, void, undefined>;
|
|
34
|
+
};
|
|
35
|
+
export declare function tableOf(addon: ArrowAddon, result: object): Table;
|
|
36
|
+
export declare function readArrowStream(addon: ArrowAddon, capsule: unknown): Promise<Table>;
|
|
37
|
+
export {};
|