dataclass-native 1.0.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.
- dataclass_native/__init__.py +60 -0
- dataclass_native/__main__.py +5 -0
- dataclass_native/_arrow.py +822 -0
- dataclass_native/_json.py +783 -0
- dataclass_native/_mode.py +57 -0
- dataclass_native/_msgpack.py +207 -0
- dataclass_native/_native.py +234 -0
- dataclass_native/_runtime.py +607 -0
- dataclass_native/_version.py +24 -0
- dataclass_native/_wire.py +901 -0
- dataclass_native/arrays.py +13 -0
- dataclass_native/backends/__init__.py +0 -0
- dataclass_native/backends/bindings.py +74 -0
- dataclass_native/backends/cpp.py +574 -0
- dataclass_native/backends/templates/bindings.cpp.j2 +58 -0
- dataclass_native/backends/templates/extensions.cmake.j2 +12 -0
- dataclass_native/backends/templates/header.hpp.j2 +75 -0
- dataclass_native/cli.py +125 -0
- dataclass_native/cmake/dataclass_native-config.cmake +67 -0
- dataclass_native/include/dataclass_native/arrow.hpp +2022 -0
- dataclass_native/include/dataclass_native/json.hpp +1903 -0
- dataclass_native/include/dataclass_native/msgpack.hpp +1513 -0
- dataclass_native/include/dataclass_native/python.hpp +594 -0
- dataclass_native/include/dataclass_native/reflect.hpp +63 -0
- dataclass_native/include/dataclass_native/types.hpp +417 -0
- dataclass_native/introspect.py +811 -0
- dataclass_native/py.typed +0 -0
- dataclass_native/schema.py +553 -0
- dataclass_native/types.py +103 -0
- dataclass_native-1.0.0.dist-info/METADATA +339 -0
- dataclass_native-1.0.0.dist-info/RECORD +35 -0
- dataclass_native-1.0.0.dist-info/WHEEL +5 -0
- dataclass_native-1.0.0.dist-info/entry_points.txt +2 -0
- dataclass_native-1.0.0.dist-info/licenses/LICENSE +21 -0
- dataclass_native-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"""Python dataclasses as a data description language, stored in generated native structs"""
|
|
2
|
+
|
|
3
|
+
from ._arrow import ArrowTables, from_arrow, from_parquet, to_arrow, to_parquet
|
|
4
|
+
from ._json import from_json, to_json
|
|
5
|
+
from ._mode import ENV_VAR, Mode, mode, set_mode
|
|
6
|
+
from ._native import NativeBindingError, is_native, native, native_function
|
|
7
|
+
from ._wire import from_msgpack, to_msgpack
|
|
8
|
+
from .cli import cmake_dir, include_dir
|
|
9
|
+
from .types import (
|
|
10
|
+
DecimalPlaces,
|
|
11
|
+
DiscriminatedUnion,
|
|
12
|
+
Float32,
|
|
13
|
+
Float64,
|
|
14
|
+
Int8,
|
|
15
|
+
Int16,
|
|
16
|
+
Int32,
|
|
17
|
+
Int64,
|
|
18
|
+
NaiveDatetime,
|
|
19
|
+
Shared,
|
|
20
|
+
UInt8,
|
|
21
|
+
UInt16,
|
|
22
|
+
UInt32,
|
|
23
|
+
UInt64,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
__all__ = (
|
|
27
|
+
"ENV_VAR",
|
|
28
|
+
"ArrowTables",
|
|
29
|
+
"DecimalPlaces",
|
|
30
|
+
"DiscriminatedUnion",
|
|
31
|
+
"Float32",
|
|
32
|
+
"Float64",
|
|
33
|
+
"Int8",
|
|
34
|
+
"Int16",
|
|
35
|
+
"Int32",
|
|
36
|
+
"Int64",
|
|
37
|
+
"Mode",
|
|
38
|
+
"NaiveDatetime",
|
|
39
|
+
"NativeBindingError",
|
|
40
|
+
"Shared",
|
|
41
|
+
"UInt8",
|
|
42
|
+
"UInt16",
|
|
43
|
+
"UInt32",
|
|
44
|
+
"UInt64",
|
|
45
|
+
"cmake_dir",
|
|
46
|
+
"from_arrow",
|
|
47
|
+
"from_json",
|
|
48
|
+
"from_msgpack",
|
|
49
|
+
"from_parquet",
|
|
50
|
+
"include_dir",
|
|
51
|
+
"is_native",
|
|
52
|
+
"mode",
|
|
53
|
+
"native",
|
|
54
|
+
"native_function",
|
|
55
|
+
"set_mode",
|
|
56
|
+
"to_arrow",
|
|
57
|
+
"to_json",
|
|
58
|
+
"to_msgpack",
|
|
59
|
+
"to_parquet",
|
|
60
|
+
)
|