netrias_client 0.0.2__py3-none-any.whl → 0.0.3__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.

Potentially problematic release.


This version of netrias_client might be problematic. Click here for more details.

@@ -6,4 +6,4 @@ from ._client import NetriasClient
6
6
 
7
7
  __all__ = ["NetriasClient", "__version__"]
8
8
 
9
- __version__ = "0.0.2"
9
+ __version__ = "0.0.3"
netrias_client/_client.py CHANGED
@@ -190,6 +190,20 @@ class NetriasClient:
190
190
  logger=self._require_logger(),
191
191
  )
192
192
 
193
+ async def discover_cde_mapping_async(
194
+ self,
195
+ source_csv: Path,
196
+ target_schema: str,
197
+ sample_limit: int = 25,
198
+ ) -> ManifestPayload:
199
+ """Async compatibility alias for :meth:`discover_mapping_from_csv_async`."""
200
+
201
+ return await self.discover_mapping_from_csv_async(
202
+ source_csv=source_csv,
203
+ target_schema=target_schema,
204
+ sample_limit=sample_limit,
205
+ )
206
+
193
207
  def harmonize(
194
208
  self,
195
209
  source_path: Path,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: netrias_client
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Python client for the Netrias harmonization API
5
5
  Project-URL: Homepage, https://github.com/netrias/netrias_client
6
6
  Project-URL: Repository, https://github.com/netrias/netrias_client
@@ -99,7 +99,7 @@ async def main() -> None:
99
99
  client = NetriasClient()
100
100
  client.configure(api_key=_resolve_api_key())
101
101
 
102
- manifest = client.discover_cde_mapping(
102
+ manifest = await client.discover_cde_mapping_async(
103
103
  source_csv=CSV_PATH,
104
104
  target_schema="ccdi",
105
105
  )
@@ -147,7 +147,7 @@ no extra print statements are required.
147
147
  Configure only the options you need; unspecified values fall back to sensible defaults.
148
148
 
149
149
  ## Usage Notes
150
- - `discover_cde_mapping(...)` samples CSV values and returns a manifest-ready payload; use the async variant if you’re already in an event loop.
150
+ - `discover_cde_mapping_async(...)` samples CSV values and returns a manifest-ready payload; call `discover_cde_mapping(...)` only from non-async code paths.
151
151
  - Call `harmonize(...)` (sync) or `harmonize_async(...)` (async) with the manifest to download a harmonized CSV. The result object reports status, description, and the output path.
152
152
  - The package exposes `__version__` so callers can assert the installed release.
153
153
  - Optional extras (`netrias_client[aws]`) add boto3 helpers for the temporary gateway bypass.
@@ -1,6 +1,6 @@
1
- netrias_client/__init__.py,sha256=QpjkueW67jqpgsOf5ExSSdA7ylPWFvSCbuuoCg4wKXE,200
1
+ netrias_client/__init__.py,sha256=_4iPH1eQ3gV8puWEWPugQ4S511CJQhE5hG-qZEvSlyg,200
2
2
  netrias_client/_adapter.py,sha256=dXJqrpkaAOiZI25gZm0RzFrSFaG4VefvLiM66oI4ziU,9241
3
- netrias_client/_client.py,sha256=Si-XJZHQwFjC-PRTsL_e1Nh_U3tV5GyXlf1a95yjKNw,9703
3
+ netrias_client/_client.py,sha256=A-hHSzL9RndvppxfXC-Ak1AaQ_AtWOX5g8hIjLCeZ6w,10142
4
4
  netrias_client/_config.py,sha256=jY12kLOJ3OMn1YF7QeEq6nU2BaXCpPteoXDz7eprB8I,3098
5
5
  netrias_client/_core.py,sha256=f77gwaHfu7lRK2eCSuwumfpU0UXQasZ9D2VVkbPQ68E,18741
6
6
  netrias_client/_discovery.py,sha256=YVlA6dGBT4eSUBjyy82aM_Sm_4YK5ulZH_xqk5UJgZk,14380
@@ -12,8 +12,8 @@ netrias_client/_logging.py,sha256=5-lhBgp2hWp2K5ZTzz_ZwhJn_sxhSe_t__kdhuMTJnQ,13
12
12
  netrias_client/_models.py,sha256=w_t-rpenLFZiBzLCdRlXaKPqgCrHCjAVoeXjPYF7wIY,1736
13
13
  netrias_client/_validators.py,sha256=DvbaQ1Wkf4-W_H5A2PGiC-AxPN2tfpRFpH8vjETGIno,5894
14
14
  netrias_client/scripts.py,sha256=jAdREIRbyuSvuvZt6tbRZ9ELfOzQyW9ZQcf2j2HIlsE,11113
15
- netrias_client-0.0.2.dist-info/METADATA,sha256=pJYfxKG5GYVmlSOfjCUCHB3jgvuuXuwpDCUQa2C9TFM,6254
16
- netrias_client-0.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
- netrias_client-0.0.2.dist-info/entry_points.txt,sha256=q7Uj2UATtRzlxefJNziCJQ9RXScH8MQzzWvA86Hfytc,162
18
- netrias_client-0.0.2.dist-info/licenses/LICENSE,sha256=XzmWyunEynTK9hABeKX_9VEd1WcKSDQAM4IXIS-n8WU,1064
19
- netrias_client-0.0.2.dist-info/RECORD,,
15
+ netrias_client-0.0.3.dist-info/METADATA,sha256=qxRjnnIATXRx66BJuN7SKWs0BnO70VR72pCC4YtqevM,6277
16
+ netrias_client-0.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
+ netrias_client-0.0.3.dist-info/entry_points.txt,sha256=q7Uj2UATtRzlxefJNziCJQ9RXScH8MQzzWvA86Hfytc,162
18
+ netrias_client-0.0.3.dist-info/licenses/LICENSE,sha256=XzmWyunEynTK9hABeKX_9VEd1WcKSDQAM4IXIS-n8WU,1064
19
+ netrias_client-0.0.3.dist-info/RECORD,,