netrias_client 0.0.2__tar.gz → 0.0.3__tar.gz

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.
Files changed (19) hide show
  1. {netrias_client-0.0.2 → netrias_client-0.0.3}/PKG-INFO +3 -3
  2. {netrias_client-0.0.2 → netrias_client-0.0.3}/README.md +2 -2
  3. {netrias_client-0.0.2 → netrias_client-0.0.3}/pyproject.toml +1 -1
  4. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/__init__.py +1 -1
  5. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_client.py +14 -0
  6. {netrias_client-0.0.2 → netrias_client-0.0.3}/.gitignore +0 -0
  7. {netrias_client-0.0.2 → netrias_client-0.0.3}/LICENSE +0 -0
  8. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_adapter.py +0 -0
  9. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_config.py +0 -0
  10. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_core.py +0 -0
  11. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_discovery.py +0 -0
  12. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_errors.py +0 -0
  13. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_gateway_bypass.py +0 -0
  14. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_http.py +0 -0
  15. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_io.py +0 -0
  16. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_logging.py +0 -0
  17. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_models.py +0 -0
  18. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_validators.py +0 -0
  19. {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/scripts.py +0 -0
@@ -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.
@@ -46,7 +46,7 @@ async def main() -> None:
46
46
  client = NetriasClient()
47
47
  client.configure(api_key=_resolve_api_key())
48
48
 
49
- manifest = client.discover_cde_mapping(
49
+ manifest = await client.discover_cde_mapping_async(
50
50
  source_csv=CSV_PATH,
51
51
  target_schema="ccdi",
52
52
  )
@@ -94,7 +94,7 @@ no extra print statements are required.
94
94
  Configure only the options you need; unspecified values fall back to sensible defaults.
95
95
 
96
96
  ## Usage Notes
97
- - `discover_cde_mapping(...)` samples CSV values and returns a manifest-ready payload; use the async variant if you’re already in an event loop.
97
+ - `discover_cde_mapping_async(...)` samples CSV values and returns a manifest-ready payload; call `discover_cde_mapping(...)` only from non-async code paths.
98
98
  - 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.
99
99
  - The package exposes `__version__` so callers can assert the installed release.
100
100
  - Optional extras (`netrias_client[aws]`) add boto3 helpers for the temporary gateway bypass.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "netrias_client"
7
- version = "0.0.2"
7
+ version = "0.0.3"
8
8
  description = "Python client for the Netrias harmonization API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -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"
@@ -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,
File without changes