cipherion 0.1.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.
- cipherion/__init__.py +100 -0
- cipherion/client/__init__.py +0 -0
- cipherion/client/cipherion_client.py +685 -0
- cipherion/errors/__init__.py +0 -0
- cipherion/errors/cipherion_error.py +154 -0
- cipherion/types/__init__.py +0 -0
- cipherion/types/api.py +216 -0
- cipherion/types/client.py +82 -0
- cipherion/utils/__init__.py +0 -0
- cipherion/utils/http.py +239 -0
- cipherion/utils/logger.py +350 -0
- cipherion/utils/migration.py +241 -0
- cipherion/utils/validation.py +37 -0
- cipherion-0.1.0.dist-info/METADATA +419 -0
- cipherion-0.1.0.dist-info/RECORD +17 -0
- cipherion-0.1.0.dist-info/WHEEL +4 -0
- cipherion-0.1.0.dist-info/licenses/LICENSE +21 -0
cipherion/__init__.py
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"""
|
|
2
|
+
__init__.py - Python 3 port of src/index.ts.
|
|
3
|
+
|
|
4
|
+
Exposes the full public API of the Cipherion SDK from a single import point.
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
from cipherion import CipherionClient
|
|
8
|
+
from cipherion import CipherionError
|
|
9
|
+
from cipherion import CipherionConfig, MigrationOptions, ...
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from .client.cipherion_client import CipherionClient
|
|
13
|
+
from .errors.cipherion_error import CipherionError
|
|
14
|
+
|
|
15
|
+
# api equivalents of export * from './types/api'
|
|
16
|
+
from .types.api import (
|
|
17
|
+
BaseResponse,
|
|
18
|
+
EncryptData,
|
|
19
|
+
EncryptResponse,
|
|
20
|
+
DecryptData,
|
|
21
|
+
DecryptResponse,
|
|
22
|
+
EncryptionMetadata,
|
|
23
|
+
DecryptionMetadata,
|
|
24
|
+
DeepEncryptMeta,
|
|
25
|
+
DeepEncryptData,
|
|
26
|
+
DeepEncryptResponse,
|
|
27
|
+
DeepDecryptMeta,
|
|
28
|
+
DeepDecryptData,
|
|
29
|
+
DeepDecryptResponse,
|
|
30
|
+
ErrorDetail,
|
|
31
|
+
ErrorResponse,
|
|
32
|
+
DeepEncryptOptions,
|
|
33
|
+
DeepDecryptOptions,
|
|
34
|
+
EncryptRequest,
|
|
35
|
+
DecryptRequest,
|
|
36
|
+
DeepEncryptRequest,
|
|
37
|
+
DeepDecryptRequest,
|
|
38
|
+
DetectedEntity,
|
|
39
|
+
AnonymizeRequest,
|
|
40
|
+
AnonymizeStatistics,
|
|
41
|
+
AnonymizeData,
|
|
42
|
+
AnonymizeResponse,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
# client_types equivalents of export * from './types/client'
|
|
46
|
+
from .types.client import (
|
|
47
|
+
LogLevel,
|
|
48
|
+
CipherionConfig,
|
|
49
|
+
ExclusionOptions,
|
|
50
|
+
MigrationOptions,
|
|
51
|
+
MigrationProgress,
|
|
52
|
+
FailedMigrationItem,
|
|
53
|
+
MigrationResult,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
# Mirrors: export default CipherionClient
|
|
57
|
+
default = CipherionClient
|
|
58
|
+
|
|
59
|
+
__all__ = [
|
|
60
|
+
# Core
|
|
61
|
+
"CipherionClient",
|
|
62
|
+
"CipherionError",
|
|
63
|
+
# API types
|
|
64
|
+
"BaseResponse",
|
|
65
|
+
"EncryptData",
|
|
66
|
+
"EncryptResponse",
|
|
67
|
+
"DecryptData",
|
|
68
|
+
"DecryptResponse",
|
|
69
|
+
"EncryptionMetadata",
|
|
70
|
+
"DecryptionMetadata",
|
|
71
|
+
"DeepEncryptMeta",
|
|
72
|
+
"DeepEncryptData",
|
|
73
|
+
"DeepEncryptResponse",
|
|
74
|
+
"DeepDecryptMeta",
|
|
75
|
+
"DeepDecryptData",
|
|
76
|
+
"DeepDecryptResponse",
|
|
77
|
+
"ErrorDetail",
|
|
78
|
+
"ErrorResponse",
|
|
79
|
+
"DeepEncryptOptions",
|
|
80
|
+
"DeepDecryptOptions",
|
|
81
|
+
"EncryptRequest",
|
|
82
|
+
"DecryptRequest",
|
|
83
|
+
"DeepEncryptRequest",
|
|
84
|
+
"DeepDecryptRequest",
|
|
85
|
+
"DetectedEntity",
|
|
86
|
+
"AnonymizeRequest",
|
|
87
|
+
"AnonymizeStatistics",
|
|
88
|
+
"AnonymizeData",
|
|
89
|
+
"AnonymizeResponse",
|
|
90
|
+
# Client types
|
|
91
|
+
"LogLevel",
|
|
92
|
+
"CipherionConfig",
|
|
93
|
+
"ExclusionOptions",
|
|
94
|
+
"MigrationOptions",
|
|
95
|
+
"MigrationProgress",
|
|
96
|
+
"FailedMigrationItem",
|
|
97
|
+
"MigrationResult",
|
|
98
|
+
# Default export equivalent
|
|
99
|
+
"default",
|
|
100
|
+
]
|
|
File without changes
|