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.
- {netrias_client-0.0.2 → netrias_client-0.0.3}/PKG-INFO +3 -3
- {netrias_client-0.0.2 → netrias_client-0.0.3}/README.md +2 -2
- {netrias_client-0.0.2 → netrias_client-0.0.3}/pyproject.toml +1 -1
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/__init__.py +1 -1
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_client.py +14 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/.gitignore +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/LICENSE +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_adapter.py +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_config.py +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_core.py +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_discovery.py +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_errors.py +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_gateway_bypass.py +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_http.py +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_io.py +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_logging.py +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_models.py +0 -0
- {netrias_client-0.0.2 → netrias_client-0.0.3}/src/netrias_client/_validators.py +0 -0
- {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.
|
|
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.
|
|
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
|
-
- `
|
|
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.
|
|
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
|
-
- `
|
|
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.
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|