datamasque-python 1.2.0__py3-none-any.whl → 1.2.2__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.
@@ -23,6 +23,7 @@ from datamasque.client.exceptions import (
23
23
  InvalidDiscoveryConfigError,
24
24
  InvalidLibraryError,
25
25
  InvalidRulesetError,
26
+ RGConfigNotFoundError,
26
27
  RunNotCancellableError,
27
28
  )
28
29
  from datamasque.client.ifm import DataMasqueIfmClient
@@ -67,11 +68,13 @@ from datamasque.client.models.discovery import (
67
68
  FileFilter,
68
69
  FileFilterMatchAgainst,
69
70
  FileRulesetGenerationRequest,
71
+ FileRulesetGenerationWithRGConfigRequest,
70
72
  ForeignKeyRef,
71
73
  InDataDiscoveryConfig,
72
74
  InDataDiscoveryRule,
73
75
  ReferencingForeignKey,
74
76
  RulesetGenerationRequest,
77
+ RulesetGenerationWithRGConfigRequest,
75
78
  SchemaDiscoveryColumn,
76
79
  SchemaDiscoveryFromConfigRequest,
77
80
  SchemaDiscoveryPage,
@@ -105,6 +108,7 @@ from datamasque.client.models.ifm import (
105
108
  RulesetPlanUpdateRequest,
106
109
  )
107
110
  from datamasque.client.models.license import LicenseInfo, SwitchableLicenseMetadata
111
+ from datamasque.client.models.rg_config import RGConfig, RGConfigId
108
112
  from datamasque.client.models.ruleset import Ruleset, RulesetId, RulesetType
109
113
  from datamasque.client.models.ruleset_library import RulesetLibrary, RulesetLibraryId
110
114
  from datamasque.client.models.runs import (
@@ -214,6 +218,7 @@ __all__ = [
214
218
  "FileId",
215
219
  "FileOrContent",
216
220
  "FileRulesetGenerationRequest",
221
+ "FileRulesetGenerationWithRGConfigRequest",
217
222
  "FirstCharsStatistics",
218
223
  "ForeignKeyRef",
219
224
  "GitSnapshot",
@@ -252,9 +257,13 @@ __all__ = [
252
257
  "PatternComposition",
253
258
  "PatternEntry",
254
259
  "PatternsStatistics",
260
+ "RGConfig",
261
+ "RGConfigId",
262
+ "RGConfigNotFoundError",
255
263
  "ReferencingForeignKey",
256
264
  "Ruleset",
257
265
  "RulesetGenerationRequest",
266
+ "RulesetGenerationWithRGConfigRequest",
258
267
  "RulesetId",
259
268
  "RulesetLibrary",
260
269
  "RulesetLibraryId",
@@ -13,6 +13,7 @@ from datamasque.client.exceptions import (
13
13
  DiscoveryConfigNotFoundError,
14
14
  FailedToStartError,
15
15
  InvalidDiscoveryConfigError,
16
+ RGConfigNotFoundError,
16
17
  )
17
18
  from datamasque.client.models.connection import ConnectionId
18
19
  from datamasque.client.models.data_selection import (
@@ -25,12 +26,15 @@ from datamasque.client.models.discovery import (
25
26
  FileDataDiscoveryRequest,
26
27
  FileDiscoveryResult,
27
28
  FileRulesetGenerationRequest,
29
+ FileRulesetGenerationWithRGConfigRequest,
28
30
  RulesetGenerationRequest,
31
+ RulesetGenerationWithRGConfigRequest,
29
32
  SchemaDiscoveryFromConfigRequest,
30
33
  SchemaDiscoveryPage,
31
34
  SchemaDiscoveryRequest,
32
35
  SchemaDiscoveryResult,
33
36
  )
37
+ from datamasque.client.models.rg_config import RGConfig, RGConfigId, unwrap_rg_config_id
34
38
  from datamasque.client.models.ruleset import Ruleset
35
39
  from datamasque.client.models.runs import RunId
36
40
  from datamasque.client.models.status import AsyncRulesetGenerationTaskStatus
@@ -41,21 +45,12 @@ logger = logging.getLogger(__name__)
41
45
  class DiscoveryClient(BaseClient):
42
46
  """Schema-discovery and ruleset-generation API methods. Mixed into `DataMasqueClient`."""
43
47
 
44
- def start_async_ruleset_generation(self, connection_id: ConnectionId, selected_data: SelectedData) -> None:
45
- """
46
- Starts async ruleset generation using the most recent discovery results on the given connection.
47
-
48
- If the connection is a database connection, `selected_data` should be of type `SelectedColumns`.
49
- If the connection is a file connection, `selected_data` should be of type `SelectedFileData`.
50
-
51
- Generation runs asynchronously on the server.
52
- Poll `get_async_ruleset_generation_task_status` until it returns
53
- `AsyncRulesetGenerationTaskStatus.finished`,
54
- then call `get_generated_rulesets` to retrieve the resulting `Ruleset`.
55
- """
48
+ @staticmethod
49
+ def _selected_data_payload(selected_data: SelectedData) -> dict:
50
+ """Build the async-generation request-body fields for a column or file selection, validating its shape."""
56
51
 
57
52
  if not selected_data:
58
- raise ValueError("`selected_data` is a required argument to `start_async_ruleset_generation`.")
53
+ raise ValueError("`selected_data` is a required argument to async ruleset generation.")
59
54
 
60
55
  data: dict = {}
61
56
  if isinstance(selected_data, SelectedColumns):
@@ -75,12 +70,56 @@ class DiscoveryClient(BaseClient):
75
70
  data["selected_data"] = [s.model_dump() for s in selected_data.user_selections]
76
71
  else:
77
72
  raise TypeError(
78
- f"The argument `selected_data` to `start_async_ruleset_generation` was of an invalid type, "
73
+ f"The `selected_data` argument to async ruleset generation was of an invalid type, "
79
74
  f"expected `SelectedColumns` or `SelectedFileData`, got {type(selected_data)}."
80
75
  )
81
76
 
77
+ return data
78
+
79
+ def start_async_ruleset_generation(self, connection_id: ConnectionId, selected_data: SelectedData) -> None:
80
+ """
81
+ Starts async ruleset generation using the most recent discovery results on the given connection.
82
+
83
+ Masks are assigned from the server's default RG config;
84
+ use `start_async_ruleset_generation_with_rg_config` to generate with a saved RG config.
85
+
86
+ If the connection is a database connection, `selected_data` should be of type `SelectedColumns`.
87
+ If the connection is a file connection, `selected_data` should be of type `SelectedFileData`.
88
+
89
+ Generation runs asynchronously on the server.
90
+ Poll `get_async_ruleset_generation_task_status` until it returns `AsyncRulesetGenerationTaskStatus.finished`,
91
+ then call `get_generated_rulesets` to retrieve the resulting `Ruleset`.
92
+ """
93
+
94
+ data = self._selected_data_payload(selected_data)
82
95
  self.make_request(method="POST", path=f"/api/async-generate-ruleset/{connection_id}/", data=data)
83
96
 
97
+ def start_async_ruleset_generation_with_rg_config(
98
+ self,
99
+ connection_id: ConnectionId,
100
+ selected_data: SelectedData,
101
+ rg_config: Optional[Union[RGConfigId, RGConfig]],
102
+ ) -> None:
103
+ """
104
+ Starts async ruleset generation with a selected RG config mapping discovered labels to masks.
105
+
106
+ Like `start_async_ruleset_generation`,
107
+ but posts to the v2 endpoint with a required `rg_config`:
108
+ a saved RG config (`RGConfigId` or `RGConfig`),
109
+ or `None` for the server's default RG config.
110
+
111
+ Raises `RGConfigNotFoundError` if the selected RG config does not exist on the server.
112
+
113
+ Generation runs asynchronously on the server.
114
+ Poll `get_async_ruleset_generation_task_status` until it returns `AsyncRulesetGenerationTaskStatus.finished`,
115
+ then call `get_generated_rulesets` to retrieve the resulting `Ruleset`.
116
+ """
117
+
118
+ data = self._selected_data_payload(selected_data)
119
+ # The server requires `rg_config` to be present; an explicit null selects the default RG config.
120
+ data["rg_config"] = unwrap_rg_config_id(rg_config)
121
+ self._post_with_rg_config(f"/api/async-generate-ruleset/v2/{connection_id}/", data)
122
+
84
123
  def start_async_ruleset_generation_from_csv(
85
124
  self,
86
125
  connection_id: ConnectionId,
@@ -103,11 +142,57 @@ class DiscoveryClient(BaseClient):
103
142
  otherwise it is uploaded as CSV.
104
143
 
105
144
  Generation runs asynchronously on the server.
106
- Poll `get_async_ruleset_generation_task_status` until it returns
107
- `AsyncRulesetGenerationTaskStatus.finished`,
145
+ Poll `get_async_ruleset_generation_task_status` until it returns `AsyncRulesetGenerationTaskStatus.finished`,
108
146
  then call `get_generated_rulesets` to retrieve the resulting `Ruleset` objects.
109
147
  """
110
148
 
149
+ self.make_request(
150
+ method="POST",
151
+ path=f"/api/async-generate-ruleset/{connection_id}/from-csv/",
152
+ data={"target_size_bytes": target_size_bytes} if target_size_bytes is not None else None,
153
+ files=self._csv_upload_files(csv_content),
154
+ )
155
+
156
+ def start_async_ruleset_generation_from_csv_with_rg_config(
157
+ self,
158
+ connection_id: ConnectionId,
159
+ csv_content: Union[str, bytes, TextIOBase, BufferedIOBase],
160
+ rg_config: Optional[Union[RGConfigId, RGConfig]],
161
+ target_size_bytes: Optional[int] = None,
162
+ ) -> None:
163
+ """
164
+ Generate ruleset(s) from a schema discovery CSV report with a selected RG config.
165
+
166
+ Like `start_async_ruleset_generation_from_csv`,
167
+ but posts to the v2 endpoint with a required `rg_config`:
168
+ a saved RG config (`RGConfigId` or `RGConfig`),
169
+ or `None` for the server's default RG config.
170
+
171
+ Raises `RGConfigNotFoundError` if the selected RG config does not exist on the server.
172
+
173
+ Generation runs asynchronously on the server.
174
+ Poll `get_async_ruleset_generation_task_status` until it returns `AsyncRulesetGenerationTaskStatus.finished`,
175
+ then call `get_generated_rulesets` to retrieve the resulting `Ruleset` objects.
176
+ """
177
+
178
+ rg_config_id = unwrap_rg_config_id(rg_config)
179
+ # The upload is a multipart form, whose fields cannot carry a JSON null;
180
+ # the server reads an empty string as null for this nullable field,
181
+ # selecting the default RG config.
182
+ data: dict = {"rg_config": rg_config_id if rg_config_id is not None else ""}
183
+ if target_size_bytes is not None:
184
+ data["target_size_bytes"] = target_size_bytes
185
+
186
+ self._post_with_rg_config(
187
+ f"/api/async-generate-ruleset/v2/{connection_id}/from-csv/",
188
+ data,
189
+ files=self._csv_upload_files(csv_content),
190
+ )
191
+
192
+ @staticmethod
193
+ def _csv_upload_files(csv_content: Union[str, bytes, TextIOBase, BufferedIOBase]) -> list[UploadFile]:
194
+ """Normalise CSV-or-zip report content into the `csv_or_zip_file` multipart upload."""
195
+
111
196
  content: BufferedIOBase
112
197
  if isinstance(csv_content, str):
113
198
  content = BytesIO(csv_content.encode())
@@ -125,7 +210,7 @@ class DiscoveryClient(BaseClient):
125
210
  filename = "ruleset.zip" if is_zip else "ruleset.csv"
126
211
  content_type = "application/zip" if is_zip else "text/csv"
127
212
 
128
- files = [
213
+ return [
129
214
  UploadFile(
130
215
  field_name="csv_or_zip_file",
131
216
  filename=filename,
@@ -134,13 +219,6 @@ class DiscoveryClient(BaseClient):
134
219
  ),
135
220
  ]
136
221
 
137
- self.make_request(
138
- method="POST",
139
- path=f"/api/async-generate-ruleset/{connection_id}/from-csv/",
140
- data={"target_size_bytes": target_size_bytes} if target_size_bytes is not None else None,
141
- files=files,
142
- )
143
-
144
222
  def get_async_ruleset_generation_task_status(self, connection_id: ConnectionId) -> AsyncRulesetGenerationTaskStatus:
145
223
  """Queries the status of an async ruleset generation task."""
146
224
 
@@ -381,7 +459,7 @@ class DiscoveryClient(BaseClient):
381
459
  if not (errors := run_data.get(cls.DISCOVERY_CONFIG_ERROR_FIELD)):
382
460
  return
383
461
 
384
- detail = cls._format_discovery_config_error(errors)
462
+ detail = cls._format_config_error(errors)
385
463
  if cls.MISSING_DISCOVERY_CONFIG_SIGNATURE in detail:
386
464
  raise DiscoveryConfigNotFoundError(
387
465
  f"{run_kind} run failed to start: the referenced discovery config could not be found: {detail}",
@@ -394,14 +472,61 @@ class DiscoveryClient(BaseClient):
394
472
  )
395
473
 
396
474
  @staticmethod
397
- def _format_discovery_config_error(errors: object) -> str:
398
- """Render the first server error, handling both string and `{message, ...}` dict items."""
475
+ def _format_config_error(errors: object) -> str:
476
+ """Render the first server error for a config field, handling both string and `{message, ...}` dict items."""
399
477
  first = errors[0] if isinstance(errors, list) and errors else errors
400
478
  if isinstance(first, dict) and "message" in first:
401
479
  return str(first["message"])
402
480
 
403
481
  return str(first)
404
482
 
483
+ # Server key for an error that names the selected RG config.
484
+ RG_CONFIG_ERROR_FIELD = "rg_config"
485
+
486
+ # The phrase the server uses when the config id cannot be resolved
487
+ # (the config does not exist, or has been archived).
488
+ MISSING_RG_CONFIG_SIGNATURE = "object does not exist"
489
+
490
+ def _post_with_rg_config(
491
+ self,
492
+ path: str,
493
+ data: dict,
494
+ files: Optional[list[UploadFile]] = None,
495
+ ) -> Response:
496
+ """Post a generation request carrying an `rg_config`, classifying a rejected config on failure."""
497
+
498
+ response = self.make_request("POST", path, data=data, files=files, require_status_check=False)
499
+ self._maybe_raise_rg_config_not_found(response)
500
+ self._raise_for_status(response, request_data=data)
501
+ return response
502
+
503
+ @classmethod
504
+ def _maybe_raise_rg_config_not_found(cls, response: Response) -> None:
505
+ """Raise `RGConfigNotFoundError` if the server's error body says the selected RG config does not exist."""
506
+
507
+ if response.ok:
508
+ return
509
+
510
+ try:
511
+ body = response.json()
512
+ except ValueError:
513
+ return
514
+
515
+ if not isinstance(body, dict):
516
+ return
517
+
518
+ if not (errors := body.get(cls.RG_CONFIG_ERROR_FIELD)):
519
+ return
520
+
521
+ detail = cls._format_config_error(errors)
522
+ if cls.MISSING_RG_CONFIG_SIGNATURE not in detail:
523
+ return
524
+
525
+ raise RGConfigNotFoundError(
526
+ f"The referenced RG config could not be found: {detail}",
527
+ response=response,
528
+ )
529
+
405
530
  def iter_schema_discovery_results(self, run_id: RunId) -> Iterator[SchemaDiscoveryResult]:
406
531
  """Lazily iterate all schema discovery results for a run via the paginated v2 endpoint."""
407
532
 
@@ -433,6 +558,9 @@ class DiscoveryClient(BaseClient):
433
558
  """
434
559
  Generates database-masking ruleset YAML from the most recent discovery run on the given connection.
435
560
 
561
+ Masks are assigned from the server's default RG config;
562
+ use `generate_ruleset_with_rg_config` to generate with a saved RG config.
563
+
436
564
  `generation_request` is a `RulesetGenerationRequest`.
437
565
  """
438
566
 
@@ -440,10 +568,26 @@ class DiscoveryClient(BaseClient):
440
568
  response = self.make_request("POST", "/api/generate-ruleset/v2/", data=data)
441
569
  return response.content.decode("utf-8")
442
570
 
571
+ def generate_ruleset_with_rg_config(self, generation_request: RulesetGenerationWithRGConfigRequest) -> str:
572
+ """
573
+ Generates database-masking ruleset YAML with a selected RG config mapping discovered labels to masks.
574
+
575
+ `generation_request` is a `RulesetGenerationWithRGConfigRequest`;
576
+ its required `rg_config` selects the saved RG config to use
577
+ (`None` for the server's default RG config).
578
+
579
+ Raises `RGConfigNotFoundError` if the selected RG config does not exist on the server.
580
+ """
581
+
582
+ return self._generate_ruleset_with_rg_config(generation_request, "/api/generate-ruleset/v3/")
583
+
443
584
  def generate_file_ruleset(self, generation_request: FileRulesetGenerationRequest) -> str:
444
585
  """
445
586
  Generates file-masking ruleset YAML from the most recent file-data-discovery run on the given connection.
446
587
 
588
+ Masks are assigned from the server's default RG config;
589
+ use `generate_file_ruleset_with_rg_config` to generate with a saved RG config.
590
+
447
591
  `generation_request` is a `FileRulesetGenerationRequest`.
448
592
  """
449
593
 
@@ -451,6 +595,33 @@ class DiscoveryClient(BaseClient):
451
595
  response = self.make_request("POST", "/api/generate-file-ruleset/", data=data)
452
596
  return response.content.decode("utf-8")
453
597
 
598
+ def generate_file_ruleset_with_rg_config(self, generation_request: FileRulesetGenerationWithRGConfigRequest) -> str:
599
+ """
600
+ Generates file-masking ruleset YAML with a selected RG config mapping discovered labels to masks.
601
+
602
+ `generation_request` is a `FileRulesetGenerationWithRGConfigRequest`;
603
+ its required `rg_config` selects the saved RG config to use
604
+ (`None` for the server's default RG config).
605
+
606
+ Raises `RGConfigNotFoundError` if the selected RG config does not exist on the server.
607
+ """
608
+
609
+ return self._generate_ruleset_with_rg_config(generation_request, "/api/generate-file-ruleset/v2/")
610
+
611
+ def _generate_ruleset_with_rg_config(
612
+ self,
613
+ generation_request: Union[RulesetGenerationWithRGConfigRequest, FileRulesetGenerationWithRGConfigRequest],
614
+ path: str,
615
+ ) -> str:
616
+ """Post a with-RG-config generation request and return the generated ruleset YAML."""
617
+
618
+ data = generation_request.model_dump(exclude_none=True, mode="json")
619
+ # The server requires `rg_config` to be present; a null selects its default RG config,
620
+ # so send it explicitly rather than letting `exclude_none` drop a None.
621
+ data.setdefault("rg_config", None)
622
+ response = self._post_with_rg_config(path, data)
623
+ return response.content.decode("utf-8")
624
+
454
625
  def get_file_data_discovery_report(self, run_id: RunId) -> list[FileDiscoveryResult]:
455
626
  """Returns the file-data-discovery results for the specified run."""
456
627
 
@@ -76,15 +76,19 @@ class DiscoveryConfigLibraryClient(BaseClient):
76
76
  Creates a new discovery config library on the server.
77
77
 
78
78
  Sets the library's server-assigned fields
79
- (`id`, `is_valid`, `validation_error`, `created`, `modified`) and returns the library.
79
+ (`id`, `is_valid`, `validation_error`, `usage_count`, `created`, `modified`) and returns the library.
80
80
  """
81
81
 
82
+ if not library.yaml:
83
+ raise ValueError("Cannot create a discovery config library without YAML content (yaml is empty)")
84
+
82
85
  data = library.model_dump(exclude_none=True, by_alias=True, mode="json")
83
86
  response = self.make_request("POST", "/api/discovery/config-libraries/", data=data)
84
87
  created = DiscoveryConfigLibrary.model_validate(response.json())
85
88
  library.id = created.id
86
89
  library.is_valid = created.is_valid
87
90
  library.validation_error = created.validation_error
91
+ library.usage_count = created.usage_count
88
92
  library.created = created.created
89
93
  library.modified = created.modified
90
94
  logger.info('Creation of discovery config library "%s" successful', library.name)
@@ -101,9 +105,9 @@ class DiscoveryConfigLibraryClient(BaseClient):
101
105
  if library.id is None:
102
106
  raise ValueError("Cannot update a discovery config library that has not been created yet (id is None)")
103
107
 
104
- if library.yaml is None:
108
+ if not library.yaml:
105
109
  raise ValueError(
106
- "Cannot update a discovery config library without YAML content (yaml is None); "
110
+ "Cannot update a discovery config library without YAML content (yaml is empty or unset); "
107
111
  "list results omit YAML, so fetch the full library with `get_discovery_config_library` first"
108
112
  )
109
113
 
@@ -112,6 +116,7 @@ class DiscoveryConfigLibraryClient(BaseClient):
112
116
  updated = DiscoveryConfigLibrary.model_validate(response.json())
113
117
  library.is_valid = updated.is_valid
114
118
  library.validation_error = updated.validation_error
119
+ library.usage_count = updated.usage_count
115
120
  library.modified = updated.modified
116
121
  logger.debug('Update of discovery config library "%s" successful', library.name)
117
122
  return library
@@ -75,15 +75,20 @@ class DiscoveryConfigClient(BaseClient):
75
75
  Creates a new discovery config on the server.
76
76
 
77
77
  Sets the config's server-assigned fields
78
- (`id`, `is_valid`, `validation_error`, `created`, `modified`) and returns the config.
78
+ (`id`, `is_valid`, `validation_error`, `validation_error_details`, `created`, `modified`)
79
+ and returns the config.
79
80
  """
80
81
 
82
+ if not config.yaml:
83
+ raise ValueError("Cannot create a discovery config without YAML content (yaml is empty)")
84
+
81
85
  data = config.model_dump(exclude_none=True, by_alias=True, mode="json")
82
86
  response = self.make_request("POST", "/api/discovery/configs/", data=data)
83
87
  created = DiscoveryConfig.model_validate(response.json())
84
88
  config.id = created.id
85
89
  config.is_valid = created.is_valid
86
90
  config.validation_error = created.validation_error
91
+ config.validation_error_details = created.validation_error_details
87
92
  config.created = created.created
88
93
  config.modified = created.modified
89
94
  logger.info('Creation of discovery config "%s" successful', config.name)
@@ -94,17 +99,24 @@ class DiscoveryConfigClient(BaseClient):
94
99
  Performs a full update of the discovery config.
95
100
 
96
101
  The config must have its `id` set
97
- (i.e., it must have been previously created or retrieved from the server).
102
+ and its `yaml` content present.
98
103
  """
99
104
 
100
105
  if config.id is None:
101
106
  raise ValueError("Cannot update a discovery config that has not been created yet (id is None)")
102
107
 
108
+ if not config.yaml:
109
+ raise ValueError(
110
+ "Cannot update a discovery config without YAML content (yaml is empty or unset); "
111
+ "list results omit YAML, so fetch the full config with `get_discovery_config` first"
112
+ )
113
+
103
114
  data = config.model_dump(exclude_none=True, by_alias=True, mode="json")
104
115
  response = self.make_request("PUT", f"/api/discovery/configs/{config.id}/", data=data)
105
116
  updated = DiscoveryConfig.model_validate(response.json())
106
117
  config.is_valid = updated.is_valid
107
118
  config.validation_error = updated.validation_error
119
+ config.validation_error_details = updated.validation_error_details
108
120
  config.modified = updated.modified
109
121
  logger.debug('Update of discovery config "%s" successful', config.name)
110
122
  return config
@@ -5,6 +5,7 @@ from datamasque.client.discovery_config_libraries import DiscoveryConfigLibraryC
5
5
  from datamasque.client.discovery_configs import DiscoveryConfigClient
6
6
  from datamasque.client.files import FileClient
7
7
  from datamasque.client.license import LicenseClient
8
+ from datamasque.client.rg_configs import RGConfigClient
8
9
  from datamasque.client.ruleset_libraries import RulesetLibraryClient
9
10
  from datamasque.client.rulesets import RulesetClient
10
11
  from datamasque.client.runs import RunClient
@@ -26,6 +27,7 @@ class DataMasqueClient(
26
27
  DiscoveryConfigClient,
27
28
  DiscoveryConfigLibraryClient,
28
29
  TableReferenceClient,
30
+ RGConfigClient,
29
31
  UserClient,
30
32
  SettingsClient,
31
33
  ):
@@ -58,6 +58,14 @@ class DiscoveryConfigNotFoundError(FailedToStartError):
58
58
  """
59
59
 
60
60
 
61
+ class RGConfigNotFoundError(DataMasqueApiError):
62
+ """
63
+ Raised when ruleset generation references an RG config that cannot be found.
64
+
65
+ The config does not exist, or has been deleted.
66
+ """
67
+
68
+
61
69
  class DataMasqueTransportError(DataMasqueException):
62
70
  """
63
71
  Raised when a request to the DataMasque server fails before any response is received.
@@ -9,6 +9,7 @@ from datamasque.client.models.connection import ConnectionConfig, ConnectionId,
9
9
  from datamasque.client.models.data_selection import HashColumnsTableConfig, Locator, UserSelection
10
10
  from datamasque.client.models.discovery_config import DiscoveryConfig, DiscoveryConfigId, unwrap_discovery_config_id
11
11
  from datamasque.client.models.pagination import Page
12
+ from datamasque.client.models.rg_config import RGConfig, RGConfigId, unwrap_rg_config_id
12
13
  from datamasque.client.models.runs import RunConnectionRef
13
14
  from datamasque.client.models.safe_data_preview import (
14
15
  SafeDataPreview,
@@ -106,12 +107,13 @@ class SchemaDiscoveryFromConfigRequest(BaseModel):
106
107
 
107
108
  class RulesetGenerationRequest(BaseModel):
108
109
  """
109
- Request body for `POST /api/generate-ruleset/v2/`.
110
+ Request body for `POST /api/generate-ruleset/v2/` (generation with the default RG config).
110
111
 
111
112
  `connection` accepts either a `ConnectionId` or a full `ConnectionConfig` returned by an earlier client call.
112
113
  `selected_columns` is the same nested `schema -> table -> [column, ...]` mapping
113
114
  used by `SelectedColumns.columns`,
114
115
  and `hash_columns` follows the `HashColumnsTableConfig` shape.
116
+ This request does not accept an `rg_config`.
115
117
  """
116
118
 
117
119
  model_config = ConfigDict(extra="forbid")
@@ -125,6 +127,45 @@ class RulesetGenerationRequest(BaseModel):
125
127
  def _unwrap_connection(cls, value: Any) -> Any:
126
128
  return unwrap_connection_id(value)
127
129
 
130
+ @model_validator(mode="before")
131
+ @classmethod
132
+ def _reject_rg_config(cls, data: Any) -> Any:
133
+ if isinstance(data, dict) and "rg_config" in data:
134
+ raise ValueError(
135
+ "`rg_config` is not accepted by `RulesetGenerationRequest`; "
136
+ "use `generate_ruleset_with_rg_config` with a `RulesetGenerationWithRGConfigRequest` "
137
+ "to generate with a selected RG config."
138
+ )
139
+ return data
140
+
141
+
142
+ class RulesetGenerationWithRGConfigRequest(BaseModel):
143
+ """
144
+ Request body for `POST /api/generate-ruleset/v3/` (generation with a selected RG config).
145
+
146
+ `connection` accepts either a `ConnectionId` or a full `ConnectionConfig` returned by an earlier client call.
147
+ `selected_columns` and `hash_columns` follow the same shapes as `RulesetGenerationRequest`.
148
+ `rg_config` is required: pass an `RGConfigId`, a full `RGConfig`,
149
+ or `None` to generate with the server's default RG config.
150
+ """
151
+
152
+ model_config = ConfigDict(extra="forbid")
153
+
154
+ connection: Union[ConnectionId, ConnectionConfig]
155
+ selected_columns: dict[str, dict[str, list[str]]]
156
+ rg_config: Optional[Union[RGConfigId, RGConfig]]
157
+ hash_columns: Optional[dict[str, dict[str, HashColumnsTableConfig]]] = None
158
+
159
+ @field_validator("connection", mode="before")
160
+ @classmethod
161
+ def _unwrap_connection(cls, value: Any) -> Any:
162
+ return unwrap_connection_id(value)
163
+
164
+ @field_validator("rg_config", mode="before")
165
+ @classmethod
166
+ def _unwrap_rg_config(cls, value: Any) -> Any:
167
+ return unwrap_rg_config_id(value)
168
+
128
169
 
129
170
  class FileFilterMatchAgainst(Enum):
130
171
  """Which part of a file's path an `include`/`skip` filter is matched against."""
@@ -236,9 +277,10 @@ class FileDataDiscoveryFromConfigRequest(BaseModel):
236
277
 
237
278
  class FileRulesetGenerationRequest(BaseModel):
238
279
  """
239
- Request body for `POST /api/generate-file-ruleset/`.
280
+ Request body for `POST /api/generate-file-ruleset/` (generation with the default RG config).
240
281
 
241
282
  `connection` accepts either a `ConnectionId` or a full `ConnectionConfig` returned by an earlier client call.
283
+ This request does not accept an `rg_config`.
242
284
  """
243
285
 
244
286
  model_config = ConfigDict(extra="forbid")
@@ -251,6 +293,43 @@ class FileRulesetGenerationRequest(BaseModel):
251
293
  def _unwrap_connection(cls, value: Any) -> Any:
252
294
  return unwrap_connection_id(value)
253
295
 
296
+ @model_validator(mode="before")
297
+ @classmethod
298
+ def _reject_rg_config(cls, data: Any) -> Any:
299
+ if isinstance(data, dict) and "rg_config" in data:
300
+ raise ValueError(
301
+ "`rg_config` is not accepted by `FileRulesetGenerationRequest`; "
302
+ "use `generate_file_ruleset_with_rg_config` with a `FileRulesetGenerationWithRGConfigRequest` "
303
+ "to generate with a selected RG config."
304
+ )
305
+ return data
306
+
307
+
308
+ class FileRulesetGenerationWithRGConfigRequest(BaseModel):
309
+ """
310
+ Request body for `POST /api/generate-file-ruleset/v2/` (generation with a selected RG config).
311
+
312
+ `connection` accepts either a `ConnectionId` or a full `ConnectionConfig` returned by an earlier client call.
313
+ `rg_config` is required: pass an `RGConfigId`, a full `RGConfig`,
314
+ or `None` to generate with the server's default RG config.
315
+ """
316
+
317
+ model_config = ConfigDict(extra="forbid")
318
+
319
+ connection: Union[ConnectionId, ConnectionConfig]
320
+ selected_data: list[UserSelection]
321
+ rg_config: Optional[Union[RGConfigId, RGConfig]]
322
+
323
+ @field_validator("connection", mode="before")
324
+ @classmethod
325
+ def _unwrap_connection(cls, value: Any) -> Any:
326
+ return unwrap_connection_id(value)
327
+
328
+ @field_validator("rg_config", mode="before")
329
+ @classmethod
330
+ def _unwrap_rg_config(cls, value: Any) -> Any:
331
+ return unwrap_rg_config_id(value)
332
+
254
333
 
255
334
  class DiscoveryMatch(BaseModel):
256
335
  """A single match found by schema or file discovery."""
@@ -2,9 +2,9 @@ import enum
2
2
  from datetime import datetime
3
3
  from typing import Any, NewType, Optional
4
4
 
5
- from pydantic import BaseModel, ConfigDict, Field
5
+ from pydantic import AliasChoices, AliasPath, BaseModel, ConfigDict, Field
6
6
 
7
- from datamasque.client.models.status import ValidationStatus
7
+ from datamasque.client.models.status import ValidationErrorDetails, ValidationStatus
8
8
 
9
9
  DiscoveryConfigId = NewType("DiscoveryConfigId", str)
10
10
 
@@ -49,5 +49,14 @@ class DiscoveryConfig(BaseModel):
49
49
  """Validation status; may be `in_progress` briefly after creating a large config."""
50
50
  validation_error: Optional[str] = Field(default=None, exclude=True)
51
51
  """Human-readable validation error, or `None` when valid."""
52
+ # Deliberately not `validation_errors`:
53
+ # this is a different shape to `Ruleset.validation_errors`,
54
+ # and would sit one character from `validation_error` above.
55
+ validation_error_details: list[ValidationErrorDetails] = Field(
56
+ default_factory=list,
57
+ exclude=True,
58
+ validation_alias=AliasChoices(AliasPath("errors", "config_yaml"), "validation_error_details"),
59
+ )
60
+ """Structured, positional validation errors."""
52
61
  created: Optional[datetime] = Field(default=None, exclude=True)
53
62
  modified: Optional[datetime] = Field(default=None, exclude=True)
@@ -27,5 +27,7 @@ class DiscoveryConfigLibrary(BaseModel):
27
27
  """Validation status; libraries are validated synchronously on create/update."""
28
28
  validation_error: Optional[str] = Field(default=None, exclude=True)
29
29
  """Human-readable validation error, or `None` when valid."""
30
+ usage_count: Optional[int] = Field(default=None, exclude=True)
31
+ """Number of active discovery configs that import this library."""
30
32
  created: Optional[datetime] = Field(default=None, exclude=True)
31
33
  modified: Optional[datetime] = Field(default=None, exclude=True)
@@ -0,0 +1,49 @@
1
+ from datetime import datetime
2
+ from typing import Any, NewType, Optional
3
+
4
+ from pydantic import BaseModel, ConfigDict, Field
5
+
6
+ from datamasque.client.models.status import ValidationErrorDetails, ValidationStatus
7
+
8
+ RGConfigId = NewType("RGConfigId", str)
9
+
10
+
11
+ def unwrap_rg_config_id(value: Any) -> Any:
12
+ """
13
+ Coerce an `RGConfig` to its `id`; pass other values through unchanged.
14
+
15
+ Used by request-model validators and the generate methods
16
+ that accept either an `RGConfigId` or a full `RGConfig` for user convenience.
17
+ Raises `ValueError` if the config has no `id`
18
+ (i.e. the caller hasn't yet created it on the server).
19
+ """
20
+
21
+ if isinstance(value, RGConfig):
22
+ if value.id is None:
23
+ raise ValueError("RG config has not been created yet (id is None)")
24
+ return value.id
25
+
26
+ return value
27
+
28
+
29
+ class RGConfig(BaseModel):
30
+ """
31
+ Represents a named, persisted YAML ruleset-generation (RG) configuration.
32
+
33
+ An RG config maps discovered labels to masks;
34
+ ruleset generation applies it to a discovery run's results.
35
+ Unlike discovery configs, RG configs are untyped —
36
+ the same config serves both database and file ruleset generation.
37
+ """
38
+
39
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
40
+
41
+ name: str
42
+ yaml: Optional[str] = Field(default=None, alias="config_yaml")
43
+
44
+ # Server-populated read-only fields, excluded from request bodies.
45
+ id: Optional[RGConfigId] = Field(default=None, exclude=True)
46
+ is_valid: Optional[ValidationStatus] = Field(default=None, exclude=True)
47
+ validation_errors: list[ValidationErrorDetails] = Field(default_factory=list, exclude=True)
48
+ created: Optional[datetime] = Field(default=None, exclude=True)
49
+ modified: Optional[datetime] = Field(default=None, exclude=True)
@@ -0,0 +1,155 @@
1
+ import logging
2
+ from typing import Iterator, Optional
3
+
4
+ from datamasque.client.base import BaseClient
5
+ from datamasque.client.exceptions import DataMasqueApiError
6
+ from datamasque.client.models.pagination import Page
7
+ from datamasque.client.models.rg_config import RGConfig, RGConfigId
8
+
9
+ logger = logging.getLogger(__name__)
10
+
11
+
12
+ class RGConfigClient(BaseClient):
13
+ """Ruleset-generation (RG) config CRUD API methods. Mixed into `DataMasqueClient`."""
14
+
15
+ def iter_rg_configs(self) -> Iterator[RGConfig]:
16
+ """Lazily iterate all RG configs via the paginated endpoint."""
17
+
18
+ return self._iter_paginated("/api/ruleset-generation-configs/", model=RGConfig)
19
+
20
+ def list_rg_configs(self) -> list[RGConfig]:
21
+ """
22
+ Lists all RG configs.
23
+
24
+ Note: the YAML content is not included in the list response for performance.
25
+ Use `get_rg_config` to retrieve the full config with its YAML body.
26
+ """
27
+
28
+ return list(self.iter_rg_configs())
29
+
30
+ def get_rg_config(self, config_id: RGConfigId) -> RGConfig:
31
+ """Retrieves a single RG config by ID."""
32
+
33
+ response = self.make_request("GET", f"/api/ruleset-generation-configs/{config_id}/")
34
+ return RGConfig.model_validate(response.json())
35
+
36
+ def _get_rg_config_id_by_name(self, name: str) -> Optional[RGConfigId]:
37
+ """Return the id of the config matching the name via a single list request, or `None`."""
38
+
39
+ response = self.make_request(
40
+ "GET",
41
+ "/api/ruleset-generation-configs/",
42
+ params={"name_exact": name, "limit": 1},
43
+ )
44
+ page = Page[RGConfig].model_validate(response.json())
45
+ if not page.results:
46
+ return None
47
+
48
+ config_id = page.results[0].id
49
+ if config_id is None:
50
+ raise DataMasqueApiError(
51
+ "Server returned an RG config list entry without an `id`.",
52
+ response=response,
53
+ )
54
+
55
+ return config_id
56
+
57
+ def get_rg_config_by_name(self, name: str) -> Optional[RGConfig]:
58
+ """
59
+ Looks for an RG config matching the given name (case-sensitive, exact match).
60
+
61
+ RG configs are untyped and their names are unique, so the name alone identifies a single config.
62
+ Returns it if found, otherwise `None`.
63
+ """
64
+
65
+ config_id = self._get_rg_config_id_by_name(name)
66
+ if config_id is None:
67
+ return None
68
+
69
+ return self.get_rg_config(config_id)
70
+
71
+ def create_rg_config(self, config: RGConfig) -> RGConfig:
72
+ """
73
+ Creates a new RG config on the server.
74
+
75
+ Sets the config's server-assigned fields
76
+ (`id`, `is_valid`, `validation_errors`, `created`, `modified`) and returns the config.
77
+ """
78
+
79
+ data = config.model_dump(exclude_none=True, by_alias=True, mode="json")
80
+ response = self.make_request("POST", "/api/ruleset-generation-configs/", data=data)
81
+ created = RGConfig.model_validate(response.json())
82
+ config.id = created.id
83
+ config.is_valid = created.is_valid
84
+ config.validation_errors = created.validation_errors
85
+ config.created = created.created
86
+ config.modified = created.modified
87
+ logger.info('Creation of RG config "%s" successful', config.name)
88
+ return config
89
+
90
+ def update_rg_config(self, config: RGConfig) -> RGConfig:
91
+ """
92
+ Performs a full update of the RG config.
93
+
94
+ The config must have its `id` set
95
+ (i.e., it must have been previously created or retrieved from the server)
96
+ and its `yaml` content present.
97
+ """
98
+
99
+ if config.id is None:
100
+ raise ValueError("Cannot update an RG config that has not been created yet (id is None)")
101
+
102
+ if config.yaml is None:
103
+ raise ValueError(
104
+ "Cannot update an RG config without YAML content (yaml is None); "
105
+ "list results omit YAML, so fetch the full config with `get_rg_config` first"
106
+ )
107
+
108
+ data = config.model_dump(exclude_none=True, by_alias=True, mode="json")
109
+ response = self.make_request("PUT", f"/api/ruleset-generation-configs/{config.id}/", data=data)
110
+ updated = RGConfig.model_validate(response.json())
111
+ config.is_valid = updated.is_valid
112
+ config.validation_errors = updated.validation_errors
113
+ config.modified = updated.modified
114
+ logger.debug('Update of RG config "%s" successful', config.name)
115
+ return config
116
+
117
+ def create_or_update_rg_config(self, config: RGConfig) -> RGConfig:
118
+ """
119
+ Creates the config if it doesn't exist, or updates it if one with the same name already exists.
120
+
121
+ Sets the config's `id` property.
122
+ """
123
+
124
+ existing_id = self._get_rg_config_id_by_name(config.name)
125
+ if existing_id is not None:
126
+ config.id = existing_id
127
+ return self.update_rg_config(config)
128
+
129
+ return self.create_rg_config(config)
130
+
131
+ def delete_rg_config_by_id_if_exists(self, config_id: RGConfigId) -> None:
132
+ """
133
+ Deletes the RG config with the given ID.
134
+
135
+ No-op if the config does not exist.
136
+ """
137
+
138
+ self._delete_if_exists(f"/api/ruleset-generation-configs/{config_id}/")
139
+
140
+ def delete_rg_config_by_name_if_exists(self, name: str) -> None:
141
+ """
142
+ Deletes the RG config with the given name.
143
+
144
+ No-op if no such config exists.
145
+ """
146
+
147
+ config_id = self._get_rg_config_id_by_name(name)
148
+ if config_id is not None:
149
+ self.delete_rg_config_by_id_if_exists(config_id)
150
+
151
+ def get_default_rg_config_yaml(self) -> str:
152
+ """Returns the server's built-in default RG configuration as a YAML string."""
153
+
154
+ response = self.make_request("GET", "/api/ruleset-generation-configs/defaults/")
155
+ return response.content.decode("utf-8")
@@ -119,8 +119,9 @@ class RulesetLibraryClient(BaseClient):
119
119
 
120
120
  No-op if the library does not exist.
121
121
 
122
- If the library is imported by any rulesets,
122
+ If the library is imported by any rulesets or RG configs,
123
123
  the server will return 409 Conflict unless `force=True` is passed.
124
+ Forcing the deletion marks those dependents' validation state as invalid.
124
125
  """
125
126
 
126
127
  params = {"force": "true"} if force else None
@@ -152,6 +153,8 @@ class RulesetLibraryClient(BaseClient):
152
153
  """
153
154
  Lists rulesets that import the given library.
154
155
 
156
+ Only rulesets are listed; RG configs that import the library are not included.
157
+
155
158
  Note: The YAML content is not included in the response for performance.
156
159
  Each returned Ruleset will have an empty string for `yaml`.
157
160
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datamasque-python
3
- Version: 1.2.0
3
+ Version: 1.2.2
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,16 +1,17 @@
1
- datamasque/client/__init__.py,sha256=Tq3xY-x3yQj5E05q5YJFxXzpYYEu_eOiKSGmX-IINHI,8323
1
+ datamasque/client/__init__.py,sha256=2PVF5FrXkPAv51EMxSvfpYelJpbOg_Tlx-Wo7p2-0jo,8661
2
2
  datamasque/client/base.py,sha256=cXU4dluL9e1N1F2pV48iIvebv6OHt7Kh4Ka2y9vkOPo,14296
3
3
  datamasque/client/connections.py,sha256=EFinx8fJRme0mTxuWY3d29UnmUFbsQhMaUQT0Ma2PK4,2885
4
- datamasque/client/discovery.py,sha256=MTDiif6YWkv64hHXZ8YJxtRhoeKIvQVfjNYvjCIZCXE,21261
5
- datamasque/client/discovery_config_libraries.py,sha256=bwuBTCnJUSnOyTz_I-_D6uS3wcRJh3ZRtfv2AOyMnmY,7024
6
- datamasque/client/discovery_configs.py,sha256=G-W-X_KizjjQLa-Rb6ixLjlkxbkCe4WGCOfYZrGtxIk,6420
7
- datamasque/client/dmclient.py,sha256=w8aloPHL8YGKfESUzn62G9XrVovDoGlqrktX_KuDL7U,1864
8
- datamasque/client/exceptions.py,sha256=YpM_vhnl31_02KQmx-NPP2AxR3gKYcmcxyb_35G9HVw,3755
4
+ datamasque/client/discovery.py,sha256=xidiAj5LdVSGQy6pjta_2Z_aJmuPPohblyNDfua_Mxk,28859
5
+ datamasque/client/discovery_config_libraries.py,sha256=K6kFi7kL4SGIPKNIg1TBMIwHUeyfXI3Lyg5sknMMCD4,7285
6
+ datamasque/client/discovery_configs.py,sha256=-iSDi7g8PAYXJ8aGCusGOVtE1UWD4D_pNxf68IdRei4,6967
7
+ datamasque/client/dmclient.py,sha256=0W6s26gUl9EZRL1kdk0R_7hgZSAOesY3H5wd-tN-QIE,1940
8
+ datamasque/client/exceptions.py,sha256=3JI_LU8K3P2BCJDjGewzj3yg6oMd_7KuQ-zwSLR8Bfs,3956
9
9
  datamasque/client/files.py,sha256=vc2tZgT8RdwuCObIQ7H-Qjb80H1PBFqD0nG5Y1tOA_o,3503
10
10
  datamasque/client/ifm.py,sha256=uIMxpLIPvDiDO1m4bxezixNIUFIFY0MXWRMQNvTbpTA,11858
11
11
  datamasque/client/license.py,sha256=pluYaSU168OC6_laB9bM9H3Vuuxs8wa9gujCJvtoJCk,1392
12
12
  datamasque/client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- datamasque/client/ruleset_libraries.py,sha256=s--iZKB8EAC7bNYrU3ZI0olSWU-mXJoyUBOgJPfQ0xQ,7091
13
+ datamasque/client/rg_configs.py,sha256=jcrbw-oMhj6o3Wsf8xy3peVo7DzeQ8EhhAsfcEwC3lc,5816
14
+ datamasque/client/ruleset_libraries.py,sha256=dQthTFS5N9vFYN_qK1ZSnHnJGLmhwzKNQrKonItK85w,7275
14
15
  datamasque/client/rulesets.py,sha256=gzxn9mR7PhCySRUUB1cyl4aLmEfuDKj8BvQUq8OgLH8,2563
15
16
  datamasque/client/runs.py,sha256=l_JpYgelqsDKW_O6LtsHC60IMXHG9ak_RwVnuvJKE1I,7703
16
17
  datamasque/client/settings.py,sha256=Ui8AyR2XdoW8MZ9FIrGn2jm8DLzUGWIL8i2DOTvu7hc,2898
@@ -20,15 +21,16 @@ datamasque/client/users.py,sha256=VCUo2CJyOw4-aO_3mp_w_0BcSoa6-h1HcReMcAMyumw,37
20
21
  datamasque/client/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
22
  datamasque/client/models/connection.py,sha256=loLy4RCiIfY9kvBFspSqJSRhHqhcJxm_mQzXwMRS4VU,17529
22
23
  datamasque/client/models/data_selection.py,sha256=406yyUZ5NmLBSql2lYM1gsTWY5GWmnutmF-DjznAoLc,1904
23
- datamasque/client/models/discovery.py,sha256=w3DXPux15BDMVs5urTpU2DM8pnWUzS3LFzCr6ctymxk,13517
24
- datamasque/client/models/discovery_config.py,sha256=1CHMgSxMXuarPGfRcz9wX7jeZLn1SDw0UEe-L5naE54,1917
25
- datamasque/client/models/discovery_config_library.py,sha256=NW4bhrlpps_SyJcX07W-dfQ_i9C0OH3O0b9TQcXPl1w,1298
24
+ datamasque/client/models/discovery.py,sha256=Ejtrmja_wjHRxCWZel5Q5nZz4M20F2zdtBsdhWI1BnA,16791
25
+ datamasque/client/models/discovery_config.py,sha256=8sqs9x_X0H_hR1fJDEFmOdJyGRDwgbdb3eddEAe98WE,2420
26
+ datamasque/client/models/discovery_config_library.py,sha256=m0wI51Q4aHysLNHyNTWH3KrDLV_rxtoLNeKQsF9RYFk,1436
26
27
  datamasque/client/models/dm_instance.py,sha256=6h0WNlI1qt6jkrYFapIvuSJFkhRCcwbpx0PLG5NsrGw,2219
27
28
  datamasque/client/models/files.py,sha256=7hG3Q1-XYb1PF88l3ppsmBp2tjNtvQvv-RNTrOa7Nts,2784
28
29
  datamasque/client/models/git.py,sha256=F0KdMFe2vMyL-9tp3SGKGeOlbD1gbcjQn0jpOzNzybc,1782
29
30
  datamasque/client/models/ifm.py,sha256=j0Ef2BZYTk6MNZO6HS6mW0qWs1_wWD9PlUP_Y6WyBQI,5563
30
31
  datamasque/client/models/license.py,sha256=OqIn4Sx3ATBStgt5KNiCOBChTTFYLBsyGj7inAl8oB4,2113
31
32
  datamasque/client/models/pagination.py,sha256=egg9aO2cf6KUDwDANPu5RxpJbdRKdwUdCQAtusnuf1c,651
33
+ datamasque/client/models/rg_config.py,sha256=g6g0qMTeR6OcM4Ji8fHrDOnOM5fsz1UYxntn_mv_k88,1792
32
34
  datamasque/client/models/ruleset.py,sha256=FDnvewJQvbeH73LpZiwYg3BG9Ya4yhmKKGmO1BKZQPk,1549
33
35
  datamasque/client/models/ruleset_library.py,sha256=Pw6Udr7pMgPt1AcG2ZhUXOPBS7tTvpw13UZNLILhZbQ,1003
34
36
  datamasque/client/models/runs.py,sha256=UtPMGCJFLFP1f2nyVGAbl3A5_wAONrRNJ63y43Hbpi0,6213
@@ -36,7 +38,7 @@ datamasque/client/models/safe_data_preview.py,sha256=BiI9d13KdQrTin2JfbjiRiODjns
36
38
  datamasque/client/models/status.py,sha256=WiSMEy_YxdcIA46ioYpAEu8OK8UNDoXpV1W7IUhhyVY,3219
37
39
  datamasque/client/models/table_reference.py,sha256=55fKdHjC2TQnUmbp0XiWqfeFGXqcq4wXjbWgMaN3p3c,3835
38
40
  datamasque/client/models/user.py,sha256=UGAUzgJkf78m24_zFXXoA99zdut48BXkX_ivV8yq1Vc,2043
39
- datamasque_python-1.2.0.dist-info/METADATA,sha256=9PUXw1BVSYhSjvPC6YaRVwSlCDrdG0GITMsRw6JA2FE,4497
40
- datamasque_python-1.2.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
41
- datamasque_python-1.2.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
42
- datamasque_python-1.2.0.dist-info/RECORD,,
41
+ datamasque_python-1.2.2.dist-info/METADATA,sha256=ir-yTNm-rFL887aT4tQN1iTe6Ll10VNBUvy2n7JTF3k,4497
42
+ datamasque_python-1.2.2.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
43
+ datamasque_python-1.2.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
44
+ datamasque_python-1.2.2.dist-info/RECORD,,