-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
79 lines (71 loc) · 1.7 KB
/
__init__.py
File metadata and controls
79 lines (71 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"""
Seigr TDB (Seigr Tools DataBase)
=================================
Universal binary database with integrated cryptography.
Version: 0.1.0
"""
from .core.spatial_db import SeigrTDB, Node, Link
from .core.spatial_grid import SpatialHashGrid
from .core.temporal_layers import TemporalLayer, TemporalManager
from .core.memory_map import MemoryMappedStorage
from .core.sgrtdb_format import (
SGRTDBHeader,
write_header,
read_header,
write_nodes,
read_nodes,
write_links,
read_links,
write_binary_data,
read_binary_data
)
from .core.binary_encoding import (
BinaryEncoder,
encode_metadata,
decode_metadata
)
# Integrated cryptography - required dependency
# Require the seigr-toolset-crypto package to be installed and import
# Expose our crypto adapter (wraps seigr-toolset-crypto)
from .core.crypto_adapter import (
hash_password,
verify_password,
encrypt_file_data,
decrypt_file_data,
get_db_context
)
__all_crypto__ = [
'hash_password',
'verify_password',
'encrypt_file_data',
'decrypt_file_data',
'get_db_context'
]
# Optional: CUDA acceleration
try:
from .cuda import get_cuda, is_cuda_available
__all_cuda__ = ['get_cuda', 'is_cuda_available']
except ImportError:
__all_cuda__ = []
__version__ = "0.1.0"
__all__ = [
'SeigrTDB',
'Node',
'Link',
'SpatialHashGrid',
'TemporalLayer',
'TemporalManager',
'MemoryMappedStorage',
'SGRTDBHeader',
'write_header',
'read_header',
'write_nodes',
'read_nodes',
'write_links',
'read_links',
'write_binary_data',
'read_binary_data',
'BinaryEncoder',
'encode_metadata',
'decode_metadata'
] + __all_crypto__ + __all_cuda__