structured-data-models-client 1.0.0__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.
sdm_client/__init__.py ADDED
@@ -0,0 +1,70 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES.
2
+ # All rights reserved.
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ r"""One Python client for NVIDIA's structured-data foundation models.
6
+
7
+ Structured-data foundation models predict in context: you give the model
8
+ labelled rows and the rows you want scored, and it answers in one pass. There
9
+ is no training loop and no per-dataset artifact.
10
+
11
+ >>> from sdm_client import Request, SDMClient, KumoTabular
12
+ >>> request = Request(context=labelled, predict=to_score,
13
+ ... target='churn', task='classification')
14
+ >>> with SDMClient(url='http://localhost:8000') as client:
15
+ ... print(client.predict(request, model=KumoTabular()).to_pandas())
16
+
17
+ The model is an argument, not a method name. A request is gathered for one
18
+ model and answered by that one: `materialize(model=...)` says which, and
19
+ defaults to what the schema's shape implies.
20
+ """
21
+
22
+ from sdm_client._version import __version__
23
+ from sdm_client.base import ModelCapabilities
24
+ from sdm_client.client import FittedModel, SDMClient
25
+ from sdm_client.core.warnings import SDMWarning
26
+ from sdm_client.errors import (
27
+ MissingExtraError,
28
+ NimRequestError,
29
+ StructuredDataError,
30
+ UnknownModelError,
31
+ UnsupportedRequestError,
32
+ )
33
+ from sdm_client.models import KumoRelational, KumoTabular, Model
34
+ from sdm_client.query import PredictiveQuery
35
+ from sdm_client.request import Request, Split, Target, Task
36
+ from sdm_client.result import PredictionResult
37
+ from sdm_client.schema import (
38
+ Column,
39
+ Relationship,
40
+ Schema,
41
+ SourceTable,
42
+ Table,
43
+ )
44
+
45
+ __all__ = [
46
+ 'SDMWarning',
47
+ 'Column',
48
+ 'FittedModel',
49
+ 'KumoRelational',
50
+ 'KumoTabular',
51
+ 'MissingExtraError',
52
+ 'Model',
53
+ 'ModelCapabilities',
54
+ 'NimRequestError',
55
+ 'PredictionResult',
56
+ 'PredictiveQuery',
57
+ 'Relationship',
58
+ 'Request',
59
+ 'Schema',
60
+ 'Split',
61
+ 'SDMClient',
62
+ 'SourceTable',
63
+ 'StructuredDataError',
64
+ 'Table',
65
+ 'Target',
66
+ 'Task',
67
+ 'UnknownModelError',
68
+ 'UnsupportedRequestError',
69
+ '__version__',
70
+ ]
sdm_client/_version.py ADDED
@@ -0,0 +1,5 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES.
2
+ # All rights reserved.
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ __version__ = '1.0.0'
@@ -0,0 +1,9 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES.
2
+ # All rights reserved.
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ """Per-model adapters. One module per model."""
6
+
7
+ from sdm_client.adapters.tabular import TabularAdapter
8
+
9
+ __all__ = ['TabularAdapter']