datamasque-python 1.3.0__py3-none-any.whl → 1.3.1__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.
- datamasque/client/__init__.py +2 -0
- datamasque/client/models/discovery.py +9 -0
- {datamasque_python-1.3.0.dist-info → datamasque_python-1.3.1.dist-info}/METADATA +1 -1
- {datamasque_python-1.3.0.dist-info → datamasque_python-1.3.1.dist-info}/RECORD +6 -6
- {datamasque_python-1.3.0.dist-info → datamasque_python-1.3.1.dist-info}/WHEEL +0 -0
- {datamasque_python-1.3.0.dist-info → datamasque_python-1.3.1.dist-info}/licenses/LICENSE +0 -0
datamasque/client/__init__.py
CHANGED
|
@@ -73,6 +73,7 @@ from datamasque.client.models.discovery import (
|
|
|
73
73
|
ForeignKeyRef,
|
|
74
74
|
InDataDiscoveryConfig,
|
|
75
75
|
InDataDiscoveryRule,
|
|
76
|
+
LengthUnit,
|
|
76
77
|
ReferencingForeignKey,
|
|
77
78
|
RulesetGenerationRequest,
|
|
78
79
|
RulesetGenerationWithRGConfigRequest,
|
|
@@ -239,6 +240,7 @@ __all__ = [
|
|
|
239
240
|
"InvalidRulesetError",
|
|
240
241
|
"JsonPath",
|
|
241
242
|
"LengthEntry",
|
|
243
|
+
"LengthUnit",
|
|
242
244
|
"LengthsStatistics",
|
|
243
245
|
"LicenseInfo",
|
|
244
246
|
"Locator",
|
|
@@ -367,6 +367,13 @@ class ReferencingForeignKey(BaseModel):
|
|
|
367
367
|
referencing_column: str # Dotted path: "schema.table.column".
|
|
368
368
|
|
|
369
369
|
|
|
370
|
+
class LengthUnit(Enum):
|
|
371
|
+
"""The unit a column's declared width (`max_length`) is counted in."""
|
|
372
|
+
|
|
373
|
+
chars = "chars"
|
|
374
|
+
bytes = "bytes"
|
|
375
|
+
|
|
376
|
+
|
|
370
377
|
class SchemaDiscoveryColumn(BaseModel):
|
|
371
378
|
"""Column-level data in a schema discovery result."""
|
|
372
379
|
|
|
@@ -374,6 +381,8 @@ class SchemaDiscoveryColumn(BaseModel):
|
|
|
374
381
|
|
|
375
382
|
data_type: Optional[str] = None
|
|
376
383
|
max_length: Optional[int] = None
|
|
384
|
+
# None when the server does not report a unit (older runs count chars).
|
|
385
|
+
max_length_unit: Optional[LengthUnit] = None
|
|
377
386
|
foreign_keys: list[ForeignKeyRef]
|
|
378
387
|
discovery_matches: list[DiscoveryMatch]
|
|
379
388
|
numeric_precision: Optional[int] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: datamasque-python
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: Official Python client for the DataMasque data-masking API.
|
|
5
5
|
Project-URL: Homepage, https://datamasque.com/
|
|
6
6
|
Project-URL: Documentation, https://datamasque-python.readthedocs.io/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
datamasque/client/__init__.py,sha256=
|
|
1
|
+
datamasque/client/__init__.py,sha256=as2_y3uIF2JR8Dsv3stXyuTKt0e5SGZbyVdLibdlpn4,8803
|
|
2
2
|
datamasque/client/base.py,sha256=cXU4dluL9e1N1F2pV48iIvebv6OHt7Kh4Ka2y9vkOPo,14296
|
|
3
3
|
datamasque/client/connections.py,sha256=EFinx8fJRme0mTxuWY3d29UnmUFbsQhMaUQT0Ma2PK4,2885
|
|
4
4
|
datamasque/client/discovery.py,sha256=xidiAj5LdVSGQy6pjta_2Z_aJmuPPohblyNDfua_Mxk,28859
|
|
@@ -21,7 +21,7 @@ datamasque/client/users.py,sha256=VCUo2CJyOw4-aO_3mp_w_0BcSoa6-h1HcReMcAMyumw,37
|
|
|
21
21
|
datamasque/client/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
datamasque/client/models/connection.py,sha256=W5WtzrrEfrZi7rUBMGcIZ7P6HRQ8PAC3btlD-07n4cY,20201
|
|
23
23
|
datamasque/client/models/data_selection.py,sha256=9hRpkQQIQlKGFYDYQCrreggsv96dh6DelppCpCE4S2U,2725
|
|
24
|
-
datamasque/client/models/discovery.py,sha256=
|
|
24
|
+
datamasque/client/models/discovery.py,sha256=BvAK9zj0jwUc1O4DSluMcjeoYhF4HKOkJmO4uAhzet4,18222
|
|
25
25
|
datamasque/client/models/discovery_config.py,sha256=8sqs9x_X0H_hR1fJDEFmOdJyGRDwgbdb3eddEAe98WE,2420
|
|
26
26
|
datamasque/client/models/discovery_config_library.py,sha256=m0wI51Q4aHysLNHyNTWH3KrDLV_rxtoLNeKQsF9RYFk,1436
|
|
27
27
|
datamasque/client/models/dm_instance.py,sha256=6h0WNlI1qt6jkrYFapIvuSJFkhRCcwbpx0PLG5NsrGw,2219
|
|
@@ -38,7 +38,7 @@ datamasque/client/models/safe_data_preview.py,sha256=BiI9d13KdQrTin2JfbjiRiODjns
|
|
|
38
38
|
datamasque/client/models/status.py,sha256=DXcucL_jRsOQ0vaV0t8CJt6crvCIOLBn07KuwpwW-4A,3247
|
|
39
39
|
datamasque/client/models/table_reference.py,sha256=55fKdHjC2TQnUmbp0XiWqfeFGXqcq4wXjbWgMaN3p3c,3835
|
|
40
40
|
datamasque/client/models/user.py,sha256=UGAUzgJkf78m24_zFXXoA99zdut48BXkX_ivV8yq1Vc,2043
|
|
41
|
-
datamasque_python-1.3.
|
|
42
|
-
datamasque_python-1.3.
|
|
43
|
-
datamasque_python-1.3.
|
|
44
|
-
datamasque_python-1.3.
|
|
41
|
+
datamasque_python-1.3.1.dist-info/METADATA,sha256=jL9nWa444wMp81T95Dh97R1qegGQy-XmnPkRJpWN930,4497
|
|
42
|
+
datamasque_python-1.3.1.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
43
|
+
datamasque_python-1.3.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
44
|
+
datamasque_python-1.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|