tsrkit-types 0.2.0__cp312-cp312-macosx_10_13_x86_64.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.
- tsrkit_types/__init__.py +97 -0
- tsrkit_types/_native.c +3832 -0
- tsrkit_types/_native.cpython-312-darwin.so +0 -0
- tsrkit_types/bits.py +27 -0
- tsrkit_types/bool.py +37 -0
- tsrkit_types/bytearray.py +11 -0
- tsrkit_types/bytes.py +51 -0
- tsrkit_types/bytes_common.py +134 -0
- tsrkit_types/choice.py +133 -0
- tsrkit_types/dictionary.py +95 -0
- tsrkit_types/enum.py +128 -0
- tsrkit_types/integers.py +215 -0
- tsrkit_types/itf/codable.py +86 -0
- tsrkit_types/null.py +43 -0
- tsrkit_types/option.py +48 -0
- tsrkit_types/sequences.py +269 -0
- tsrkit_types/string.py +68 -0
- tsrkit_types/struct.py +92 -0
- tsrkit_types-0.2.0.dist-info/METADATA +154 -0
- tsrkit_types-0.2.0.dist-info/RECORD +23 -0
- tsrkit_types-0.2.0.dist-info/WHEEL +6 -0
- tsrkit_types-0.2.0.dist-info/licenses/LICENSE +21 -0
- tsrkit_types-0.2.0.dist-info/top_level.txt +1 -0
tsrkit_types/__init__.py
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"""
|
|
2
|
+
TSRKit Types - Performant Python types for binary serialization and JSON encoding.
|
|
3
|
+
|
|
4
|
+
This module provides a comprehensive set of typed data structures with built-in
|
|
5
|
+
serialization capabilities, including integers, strings, containers, and more.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
# Core interfaces
|
|
9
|
+
from .itf.codable import Codable
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# Integer types
|
|
13
|
+
from .integers import Uint, U8, U16, U32, U64
|
|
14
|
+
|
|
15
|
+
# String types
|
|
16
|
+
from .string import String
|
|
17
|
+
|
|
18
|
+
# Boolean types
|
|
19
|
+
from .bool import Bool
|
|
20
|
+
|
|
21
|
+
# Null types
|
|
22
|
+
from .null import Null, NullType
|
|
23
|
+
|
|
24
|
+
# Choice and Option types
|
|
25
|
+
from .choice import Choice
|
|
26
|
+
from .option import Option
|
|
27
|
+
|
|
28
|
+
# Container types
|
|
29
|
+
from .sequences import (
|
|
30
|
+
Seq, Vector, Array,
|
|
31
|
+
TypedVector, TypedArray,
|
|
32
|
+
BoundedVector, TypedBoundedVector
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
# Dictionary types
|
|
36
|
+
from .dictionary import Dictionary
|
|
37
|
+
|
|
38
|
+
# Bytes types
|
|
39
|
+
from .bytes import Bytes, Bytes16, Bytes32, Bytes64, Bytes128, Bytes256, Bytes512, Bytes1024
|
|
40
|
+
from .bytearray import ByteArray
|
|
41
|
+
|
|
42
|
+
# Bit types
|
|
43
|
+
from .bits import Bits
|
|
44
|
+
|
|
45
|
+
# Enum types
|
|
46
|
+
from .enum import Enum
|
|
47
|
+
|
|
48
|
+
# Structure decorator
|
|
49
|
+
from .struct import structure, struct
|
|
50
|
+
|
|
51
|
+
# Export all public types
|
|
52
|
+
__all__ = [
|
|
53
|
+
# Core interfaces
|
|
54
|
+
"Codable",
|
|
55
|
+
|
|
56
|
+
# Integer types
|
|
57
|
+
"Uint", "U8", "U16", "U32", "U64",
|
|
58
|
+
|
|
59
|
+
# String types
|
|
60
|
+
"String",
|
|
61
|
+
|
|
62
|
+
# Boolean types
|
|
63
|
+
"Bool",
|
|
64
|
+
|
|
65
|
+
# Null types
|
|
66
|
+
"Null", "NullType",
|
|
67
|
+
|
|
68
|
+
# Choice and Option types
|
|
69
|
+
"Choice", "Option",
|
|
70
|
+
|
|
71
|
+
# Container types
|
|
72
|
+
"Seq", "Vector", "Array",
|
|
73
|
+
"TypedVector", "TypedArray",
|
|
74
|
+
"BoundedVector", "TypedBoundedVector",
|
|
75
|
+
|
|
76
|
+
# Dictionary types
|
|
77
|
+
"Dictionary",
|
|
78
|
+
|
|
79
|
+
# Bytes types
|
|
80
|
+
"Bytes", "Bytes16", "Bytes32", "Bytes64", "Bytes128", "Bytes256", "Bytes512", "Bytes1024",
|
|
81
|
+
"ByteArray",
|
|
82
|
+
|
|
83
|
+
# Bit types
|
|
84
|
+
"Bits",
|
|
85
|
+
|
|
86
|
+
# Enum types
|
|
87
|
+
"Enum",
|
|
88
|
+
|
|
89
|
+
# Structure decorator
|
|
90
|
+
"structure", "struct",
|
|
91
|
+
|
|
92
|
+
]
|
|
93
|
+
|
|
94
|
+
# Version information
|
|
95
|
+
__version__ = "0.2.0"
|
|
96
|
+
__author__ = "TSRKit Team"
|
|
97
|
+
__license__ = "MIT"
|