awkward-cpp 39__cp312-cp312-macosx_10_13_universal2.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 awkward-cpp might be problematic. Click here for more details.

@@ -0,0 +1,27 @@
1
+ # BSD 3-Clause License; see https://github.com/scikit-hep/awkward/blob/main/LICENSE
2
+
3
+ from __future__ import annotations
4
+
5
+ import ctypes
6
+ import platform
7
+ import sys
8
+
9
+ if sys.version_info < (3, 9):
10
+ import importlib_resources
11
+ else:
12
+ import importlib.resources as importlib_resources
13
+
14
+ import awkward_cpp._kernel_signatures
15
+
16
+ if platform.system() == "Windows":
17
+ name = "awkward-cpu-kernels.dll"
18
+ elif platform.system() == "Darwin":
19
+ name = "libawkward-cpu-kernels.dylib"
20
+ else:
21
+ name = "libawkward-cpu-kernels.so"
22
+
23
+ libpath_ref = importlib_resources.files(awkward_cpp) / "lib" / name
24
+ with importlib_resources.as_file(libpath_ref) as libpath:
25
+ lib = ctypes.cdll.LoadLibrary(str(libpath))
26
+
27
+ kernel = awkward_cpp._kernel_signatures.by_signature(lib)
Binary file
@@ -0,0 +1,191 @@
1
+ # BSD 3-Clause License; see https://github.com/scikit-hep/awkward/blob/main/LICENSE
2
+
3
+ from __future__ import annotations
4
+
5
+ import ctypes
6
+ import platform
7
+ import sys
8
+
9
+ if sys.version_info < (3, 9):
10
+ import importlib_resources
11
+ else:
12
+ import importlib.resources as importlib_resources
13
+
14
+ if platform.system() == "Windows":
15
+ name = "awkward.dll"
16
+ elif platform.system() == "Darwin":
17
+ name = "libawkward.dylib"
18
+ else:
19
+ name = "libawkward.so"
20
+
21
+ libpath_ref = importlib_resources.files(__package__) / "lib" / name
22
+ with importlib_resources.as_file(libpath_ref) as libpath:
23
+ lib = ctypes.cdll.LoadLibrary(str(libpath))
24
+
25
+ # bool awkward_ArrayBuilder_length(void* arraybuilder,
26
+ # int64_t* result);
27
+ ArrayBuilder_length = lib.awkward_ArrayBuilder_length
28
+ ArrayBuilder_length.name = "ArrayBuilder.length"
29
+ ArrayBuilder_length.argtypes = [ctypes.c_voidp, ctypes.POINTER(ctypes.c_int64)]
30
+ ArrayBuilder_length.restype = ctypes.c_uint8
31
+
32
+ # bool awkward_ArrayBuilder_clear(void* arraybuilder);
33
+ ArrayBuilder_clear = lib.awkward_ArrayBuilder_clear
34
+ ArrayBuilder_clear.name = "ArrayBuilder.clear"
35
+ ArrayBuilder_clear.argtypes = [ctypes.c_voidp]
36
+ ArrayBuilder_clear.restype = ctypes.c_uint8
37
+
38
+ # bool awkward_ArrayBuilder_null(void* arraybuilder);
39
+ ArrayBuilder_null = lib.awkward_ArrayBuilder_null
40
+ ArrayBuilder_null.name = "ArrayBuilder.null"
41
+ ArrayBuilder_null.argtypes = [ctypes.c_voidp]
42
+ ArrayBuilder_null.restype = ctypes.c_uint8
43
+
44
+ # bool awkward_ArrayBuilder_boolean(void* arraybuilder,
45
+ # bool x);
46
+ ArrayBuilder_boolean = lib.awkward_ArrayBuilder_boolean
47
+ ArrayBuilder_boolean.name = "ArrayBuilder.boolean"
48
+ ArrayBuilder_boolean.argtypes = [ctypes.c_voidp, ctypes.c_uint8]
49
+ ArrayBuilder_boolean.restype = ctypes.c_uint8
50
+
51
+ # bool awkward_ArrayBuilder_integer(void* arraybuilder,
52
+ # int64_t x);
53
+ ArrayBuilder_integer = lib.awkward_ArrayBuilder_integer
54
+ ArrayBuilder_integer.name = "ArrayBuilder.integer"
55
+ ArrayBuilder_integer.argtypes = [ctypes.c_voidp, ctypes.c_int64]
56
+ ArrayBuilder_integer.restype = ctypes.c_uint8
57
+
58
+ # bool awkward_ArrayBuilder_real(void* arraybuilder,
59
+ # double x);
60
+ ArrayBuilder_real = lib.awkward_ArrayBuilder_real
61
+ ArrayBuilder_real.name = "ArrayBuilder.real"
62
+ ArrayBuilder_real.argtypes = [ctypes.c_voidp, ctypes.c_double]
63
+ ArrayBuilder_real.restype = ctypes.c_uint8
64
+
65
+ # bool awkward_ArrayBuilder_complex(void* arraybuilder,
66
+ # double real,
67
+ # double imag);
68
+ ArrayBuilder_complex = lib.awkward_ArrayBuilder_complex
69
+ ArrayBuilder_complex.name = "ArrayBuilder.complex"
70
+ ArrayBuilder_complex.argtypes = [ctypes.c_voidp, ctypes.c_double, ctypes.c_double]
71
+ ArrayBuilder_complex.restype = ctypes.c_uint8
72
+
73
+ # bool awkward_ArrayBuilder_datetime(void* arraybuilder,
74
+ # int64_t x,
75
+ # const char* unit);
76
+ ArrayBuilder_datetime = lib.awkward_ArrayBuilder_datetime
77
+ ArrayBuilder_datetime.name = "ArrayBuilder.datetime"
78
+ ArrayBuilder_datetime.argtypes = [ctypes.c_voidp, ctypes.c_int64, ctypes.c_voidp]
79
+ ArrayBuilder_datetime.restype = ctypes.c_uint8
80
+
81
+ # bool awkward_ArrayBuilder_timedelta(void* arraybuilder,
82
+ # int64_t x,
83
+ # const char* unit);
84
+ ArrayBuilder_timedelta = lib.awkward_ArrayBuilder_timedelta
85
+ ArrayBuilder_timedelta.name = "ArrayBuilder.timedelta"
86
+ ArrayBuilder_timedelta.argtypes = [ctypes.c_voidp, ctypes.c_int64, ctypes.c_voidp]
87
+ ArrayBuilder_timedelta.restype = ctypes.c_uint8
88
+
89
+ # bool awkward_ArrayBuilder_bytestring(void* arraybuilder,
90
+ # const char* unit);
91
+ ArrayBuilder_bytestring = lib.awkward_ArrayBuilder_bytestring
92
+ ArrayBuilder_bytestring.name = "ArrayBuilder.bytestring"
93
+ ArrayBuilder_bytestring.argtypes = [ctypes.c_voidp, ctypes.c_voidp]
94
+ ArrayBuilder_bytestring.restype = ctypes.c_uint8
95
+
96
+ # bool awkward_ArrayBuilder_bytestring_length(void* arraybuilder,
97
+ # const char* unit);
98
+ ArrayBuilder_bytestring_length = lib.awkward_ArrayBuilder_bytestring_length
99
+ ArrayBuilder_bytestring_length.name = "ArrayBuilder.bytestring_length"
100
+ ArrayBuilder_bytestring_length.argtypes = [
101
+ ctypes.c_voidp,
102
+ ctypes.c_voidp,
103
+ ctypes.c_int64,
104
+ ]
105
+ ArrayBuilder_bytestring_length.restype = ctypes.c_uint8
106
+
107
+ # bool awkward_ArrayBuilder_string(void* arraybuilder,
108
+ # const char* unit);
109
+ ArrayBuilder_string = lib.awkward_ArrayBuilder_string
110
+ ArrayBuilder_string.name = "ArrayBuilder.string"
111
+ ArrayBuilder_string.argtypes = [ctypes.c_voidp, ctypes.c_voidp]
112
+ ArrayBuilder_string.restype = ctypes.c_uint8
113
+
114
+ # bool awkward_ArrayBuilder_string_length(void* arraybuilder,
115
+ # const char* unit);
116
+ ArrayBuilder_string_length = lib.awkward_ArrayBuilder_string_length
117
+ ArrayBuilder_string_length.name = "ArrayBuilder.string_length"
118
+ ArrayBuilder_string_length.argtypes = [ctypes.c_voidp, ctypes.c_voidp, ctypes.c_int64]
119
+ ArrayBuilder_string_length.restype = ctypes.c_uint8
120
+
121
+ # bool awkward_ArrayBuilder_beginlist(void* arraybuilder);
122
+ ArrayBuilder_beginlist = lib.awkward_ArrayBuilder_beginlist
123
+ ArrayBuilder_beginlist.name = "ArrayBuilder.beginlist"
124
+ ArrayBuilder_beginlist.argtypes = [ctypes.c_voidp]
125
+ ArrayBuilder_beginlist.restype = ctypes.c_uint8
126
+
127
+ # bool awkward_ArrayBuilder_endlist(void* arraybuilder);
128
+ ArrayBuilder_endlist = lib.awkward_ArrayBuilder_endlist
129
+ ArrayBuilder_endlist.name = "ArrayBuilder.endlist"
130
+ ArrayBuilder_endlist.argtypes = [ctypes.c_voidp]
131
+ ArrayBuilder_endlist.restype = ctypes.c_uint8
132
+
133
+ # uint8_t awkward_ArrayBuilder_begintuple(void* arraybuilder,
134
+ # int64_t numfields);
135
+ ArrayBuilder_begintuple = lib.awkward_ArrayBuilder_begintuple
136
+ ArrayBuilder_begintuple.name = "ArrayBuilder.begintuple"
137
+ ArrayBuilder_begintuple.argtypes = [ctypes.c_voidp, ctypes.c_int64]
138
+ ArrayBuilder_begintuple.restype = ctypes.c_uint8
139
+
140
+ # uint8_t awkward_ArrayBuilder_index(void* arraybuilder,
141
+ # int64_t index);
142
+ ArrayBuilder_index = lib.awkward_ArrayBuilder_index
143
+ ArrayBuilder_index.name = "ArrayBuilder.index"
144
+ ArrayBuilder_index.argtypes = [ctypes.c_voidp, ctypes.c_int64]
145
+ ArrayBuilder_index.restype = ctypes.c_uint8
146
+
147
+ # uint8_t awkward_ArrayBuilder_endtuple(void* arraybuilder);
148
+ ArrayBuilder_endtuple = lib.awkward_ArrayBuilder_endtuple
149
+ ArrayBuilder_endtuple.name = "ArrayBuilder.endtuple"
150
+ ArrayBuilder_endtuple.argtypes = [ctypes.c_voidp]
151
+ ArrayBuilder_endtuple.restype = ctypes.c_uint8
152
+
153
+ # uint8_t awkward_ArrayBuilder_beginrecord(void* arraybuilder);
154
+ ArrayBuilder_beginrecord = lib.awkward_ArrayBuilder_beginrecord
155
+ ArrayBuilder_beginrecord.name = "ArrayBuilder.beginrecord"
156
+ ArrayBuilder_beginrecord.argtypes = [ctypes.c_voidp]
157
+ ArrayBuilder_beginrecord.restype = ctypes.c_uint8
158
+
159
+ # uint8_t awkward_ArrayBuilder_beginrecord_fast(void* arraybuilder,
160
+ # const char* name);
161
+ ArrayBuilder_beginrecord_fast = lib.awkward_ArrayBuilder_beginrecord_fast
162
+ ArrayBuilder_beginrecord_fast.name = "ArrayBuilder.beginrecord_fast"
163
+ ArrayBuilder_beginrecord_fast.argtypes = [ctypes.c_voidp, ctypes.c_voidp]
164
+ ArrayBuilder_beginrecord_fast.restype = ctypes.c_uint8
165
+
166
+ # uint8_t awkward_ArrayBuilder_beginrecord_check(void* arraybuilder,
167
+ # const char* name);
168
+ ArrayBuilder_beginrecord_check = lib.awkward_ArrayBuilder_beginrecord_check
169
+ ArrayBuilder_beginrecord_check.name = "ArrayBuilder.beginrecord_check"
170
+ ArrayBuilder_beginrecord_check.argtypes = [ctypes.c_voidp, ctypes.c_voidp]
171
+ ArrayBuilder_beginrecord_check.restype = ctypes.c_uint8
172
+
173
+ # uint8_t awkward_ArrayBuilder_field_fast(void* arraybuilder,
174
+ # const char* key);
175
+ ArrayBuilder_field_fast = lib.awkward_ArrayBuilder_field_fast
176
+ ArrayBuilder_field_fast.name = "ArrayBuilder.field_fast"
177
+ ArrayBuilder_field_fast.argtypes = [ctypes.c_voidp, ctypes.c_voidp]
178
+ ArrayBuilder_field_fast.restype = ctypes.c_uint8
179
+
180
+ # uint8_t awkward_ArrayBuilder_field_check(void* arraybuilder,
181
+ # const char* key);
182
+ ArrayBuilder_field_check = lib.awkward_ArrayBuilder_field_check
183
+ ArrayBuilder_field_check.name = "ArrayBuilder.field_check"
184
+ ArrayBuilder_field_check.argtypes = [ctypes.c_voidp, ctypes.c_voidp]
185
+ ArrayBuilder_field_check.restype = ctypes.c_uint8
186
+
187
+ # uint8_t awkward_ArrayBuilder_endrecord(void* arraybuilder);
188
+ ArrayBuilder_endrecord = lib.awkward_ArrayBuilder_endrecord
189
+ ArrayBuilder_endrecord.name = "ArrayBuilder.endrecord"
190
+ ArrayBuilder_endrecord.argtypes = [ctypes.c_voidp]
191
+ ArrayBuilder_endrecord.restype = ctypes.c_uint8
@@ -0,0 +1,45 @@
1
+ Metadata-Version: 2.1
2
+ Name: awkward_cpp
3
+ Version: 39
4
+ Summary: CPU kernels and compiled extensions for Awkward Array
5
+ Author-Email: Jim Pivarski <pivarski@princeton.edu>
6
+ Maintainer-Email: Scikit-HEP <scikit-hep-admins@googlegroups.com>
7
+ License: BSD-3-Clause
8
+ Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Intended Audience :: Information Technology
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: License :: OSI Approved :: BSD License
13
+ Classifier: Operating System :: MacOS :: MacOS X
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Operating System :: Unix
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Topic :: Scientific/Engineering
26
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
27
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
28
+ Classifier: Topic :: Scientific/Engineering :: Physics
29
+ Classifier: Topic :: Software Development
30
+ Classifier: Topic :: Utilities
31
+ Project-URL: Homepage, https://github.com/scikit-hep/awkward-1.0
32
+ Project-URL: Documentation, https://awkward-array.org
33
+ Project-URL: Source code, https://github.com/scikit-hep/awkward-1.0
34
+ Project-URL: Bug tracker, https://github.com/scikit-hep/awkward-1.0/issues
35
+ Project-URL: Discussions, https://github.com/scikit-hep/awkward-1.0/discussions
36
+ Project-URL: Chat, https://gitter.im/Scikit-HEP/awkward-array
37
+ Project-URL: Releases, https://github.com/scikit-hep/awkward-1.0/releases
38
+ Requires-Python: >=3.8
39
+ Requires-Dist: numpy>=1.18.0
40
+ Requires-Dist: importlib_resources; python_version < "3.9"
41
+ Description-Content-Type: text/markdown
42
+
43
+ # `awkward-cpp`
44
+
45
+ `awkward-cpp` provides precompiled routines for the `awkward` package. It is not useful on its own, only as a dependency for `awkward `.
@@ -0,0 +1,11 @@
1
+ awkward_cpp/cpu_kernels.py,sha256=LmFjbEAKsyhV0Fxd57viFXA9Xs2oje5CfgAnoern2Jw,753
2
+ awkward_cpp/libawkward.py,sha256=G-B183PlScol-edd5zqcMmVfYyV4Q2XHCJElv1Oo_tU,8699
3
+ awkward_cpp/__init__.py,sha256=malu6jtLO0A1MbePF1n7_OHQ7TWYMMRJA9gcjpFsEAs,196
4
+ awkward_cpp/_kernel_signatures.py,sha256=lekHVcpEiIh5GZ8ud8neWngaIkyjEGpRtbQUzIhApic,118587
5
+ awkward_cpp/lib/_ext.cpython-312-darwin.so,sha256=BlD0fPp9sUdh7orCKNAs83agRVRGi93jQAoKvQX07_4,919616
6
+ awkward_cpp/lib/libawkward.dylib,sha256=W5hGEymTA5RiyhvNG71n1YMyOOqHiXiWet5u4rn9aNc,1936656
7
+ awkward_cpp/lib/libawkward-cpu-kernels.dylib,sha256=bHWibe0rYf3I-PY2p77ZtG8pDnsDOmXRuwETiwBLTUc,1319200
8
+ awkward_cpp-39.dist-info/RECORD,,
9
+ awkward_cpp-39.dist-info/WHEEL,sha256=uB0L5z8R7ih1O0cvhuYeHVn9UbiIy9ipf7QHsBqE-ds,120
10
+ awkward_cpp-39.dist-info/METADATA,sha256=kB8tbyNSCtAZ_RC4_28lEkF8OHDFOdB5pJOtNZaNp1U,2181
11
+ awkward_cpp-39.dist-info/licenses/LICENSE,sha256=8F5OAD_PpZAb4NOYgFqGU6oelSEEM-AOiaTFUoSRtOY,1520
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: scikit-build-core 0.10.7
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-macosx_10_13_universal2
5
+
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2019, Jim Pivarski
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.