nufi-python 1.0.0__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 (57) hide show
  1. nufi_python-1.0.0/LICENSE +21 -0
  2. nufi_python-1.0.0/PKG-INFO +228 -0
  3. nufi_python-1.0.0/README.md +206 -0
  4. nufi_python-1.0.0/pyproject.toml +49 -0
  5. nufi_python-1.0.0/setup.cfg +4 -0
  6. nufi_python-1.0.0/src/nufi/__init__.py +52 -0
  7. nufi_python-1.0.0/src/nufi/auth.py +364 -0
  8. nufi_python-1.0.0/src/nufi/cli/__init__.py +0 -0
  9. nufi_python-1.0.0/src/nufi/cli/commands/__init__.py +1 -0
  10. nufi_python-1.0.0/src/nufi/cli/commands/auth.py +113 -0
  11. nufi_python-1.0.0/src/nufi/cli/commands/common.py +198 -0
  12. nufi_python-1.0.0/src/nufi/cli/commands/compiles.py +507 -0
  13. nufi_python-1.0.0/src/nufi/cli/commands/custom_evaluation_templates.py +206 -0
  14. nufi_python-1.0.0/src/nufi/cli/commands/datasets.py +697 -0
  15. nufi_python-1.0.0/src/nufi/cli/commands/evaluations.py +854 -0
  16. nufi_python-1.0.0/src/nufi/cli/commands/leaderboards.py +763 -0
  17. nufi_python-1.0.0/src/nufi/cli/commands/models.py +1347 -0
  18. nufi_python-1.0.0/src/nufi/cli/commands/monitoring.py +350 -0
  19. nufi_python-1.0.0/src/nufi/cli/commands/profile.py +123 -0
  20. nufi_python-1.0.0/src/nufi/cli/commands/projects.py +308 -0
  21. nufi_python-1.0.0/src/nufi/cli/commands/servings.py +306 -0
  22. nufi_python-1.0.0/src/nufi/cli/main.py +66 -0
  23. nufi_python-1.0.0/src/nufi/client.py +103 -0
  24. nufi_python-1.0.0/src/nufi/config.py +281 -0
  25. nufi_python-1.0.0/src/nufi/evaluator.py +559 -0
  26. nufi_python-1.0.0/src/nufi/exceptions.py +58 -0
  27. nufi_python-1.0.0/src/nufi/http_utils.py +51 -0
  28. nufi_python-1.0.0/src/nufi/models/__init__.py +185 -0
  29. nufi_python-1.0.0/src/nufi/models/compiles.py +79 -0
  30. nufi_python-1.0.0/src/nufi/models/custom_evaluation_templates.py +111 -0
  31. nufi_python-1.0.0/src/nufi/models/datasets.py +94 -0
  32. nufi_python-1.0.0/src/nufi/models/evaluations.py +253 -0
  33. nufi_python-1.0.0/src/nufi/models/leaderboards.py +178 -0
  34. nufi_python-1.0.0/src/nufi/models/monitoring.py +179 -0
  35. nufi_python-1.0.0/src/nufi/models/pagination.py +33 -0
  36. nufi_python-1.0.0/src/nufi/models/projects.py +32 -0
  37. nufi_python-1.0.0/src/nufi/models/registry.py +138 -0
  38. nufi_python-1.0.0/src/nufi/models/servings.py +27 -0
  39. nufi_python-1.0.0/src/nufi/py.typed +1 -0
  40. nufi_python-1.0.0/src/nufi/resources/__init__.py +34 -0
  41. nufi_python-1.0.0/src/nufi/resources/base.py +190 -0
  42. nufi_python-1.0.0/src/nufi/resources/compiles.py +193 -0
  43. nufi_python-1.0.0/src/nufi/resources/custom_evaluation_templates.py +126 -0
  44. nufi_python-1.0.0/src/nufi/resources/datasets.py +786 -0
  45. nufi_python-1.0.0/src/nufi/resources/evaluations.py +428 -0
  46. nufi_python-1.0.0/src/nufi/resources/leaderboards.py +413 -0
  47. nufi_python-1.0.0/src/nufi/resources/models.py +726 -0
  48. nufi_python-1.0.0/src/nufi/resources/monitoring.py +82 -0
  49. nufi_python-1.0.0/src/nufi/resources/projects.py +114 -0
  50. nufi_python-1.0.0/src/nufi/resources/servings.py +80 -0
  51. nufi_python-1.0.0/src/nufi/transport.py +248 -0
  52. nufi_python-1.0.0/src/nufi_python.egg-info/PKG-INFO +228 -0
  53. nufi_python-1.0.0/src/nufi_python.egg-info/SOURCES.txt +55 -0
  54. nufi_python-1.0.0/src/nufi_python.egg-info/dependency_links.txt +1 -0
  55. nufi_python-1.0.0/src/nufi_python.egg-info/entry_points.txt +2 -0
  56. nufi_python-1.0.0/src/nufi_python.egg-info/requires.txt +9 -0
  57. nufi_python-1.0.0/src/nufi_python.egg-info/top_level.txt +1 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dudaji Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,228 @@
1
+ Metadata-Version: 2.4
2
+ Name: nufi-python
3
+ Version: 1.0.0
4
+ Summary: Python SDK and CLI for the NuFi platform.
5
+ Author: Dudaji Inc.
6
+ License-Expression: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Typing :: Typed
10
+ Requires-Python: >=3.11
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: httpx>=0.25.0
14
+ Requires-Dist: PyYAML>=6.0
15
+ Requires-Dist: pydantic>=2.0.0
16
+ Requires-Dist: tuspy==1.1.0
17
+ Requires-Dist: typer>=0.16.0
18
+ Requires-Dist: rich>=13.0.0
19
+ Provides-Extra: evaluator
20
+ Requires-Dist: pyarrow>=24.0.0; extra == "evaluator"
21
+ Dynamic: license-file
22
+
23
+ # NuFi Python SDK/CLI
24
+
25
+ The distribution is `nufi-python`; it installs the `nufi` Python package and `nufi`
26
+ command.
27
+
28
+ ```bash
29
+ uv build --clear
30
+ python -m pip install ./dist/nufi_python-1.0.0-py3-none-any.whl
31
+ nufi --version
32
+ ```
33
+
34
+ ```python
35
+ from nufi import NuFi
36
+ ```
37
+
38
+ For verified-wheel installation, model registration, Dataset selection, evaluation,
39
+ Leaderboard ranking, compatibility, and troubleshooting, follow the
40
+ [SDK and CLI workflow guide](../docs/sdk-cli-guide/README.md).
41
+
42
+ ## Installed quickstart
43
+
44
+ Create a profile, log in, and select the project once:
45
+
46
+ ```bash
47
+ nufi profile create dev --base-domain nufi.local
48
+ nufi profile use dev
49
+ nufi login
50
+ nufi project use team-a
51
+ ```
52
+
53
+ The CLI workflow is composable; every long-running identity can be resumed with its
54
+ dedicated `wait` command:
55
+
56
+ ```bash
57
+ nufi model version create qwen2 v1 --volume models --path /qwen2
58
+ nufi compile create qwen2 --version v1 --wait
59
+ nufi compile wait COMPILE_NAME_OR_ID
60
+ nufi dataset list
61
+ nufi evaluation run create METHOD_NAME --model qwen2 \
62
+ --model-version v1 --artifact original --wait
63
+ nufi evaluation run wait RUN_ID
64
+ nufi leaderboard create quality --method METHOD_NAME \
65
+ --rank-metric exact_match --rank-direction desc
66
+ nufi leaderboard submission create quality --model qwen2 \
67
+ --model-version v1 --artifact original --wait
68
+ nufi leaderboard submission wait quality SUBMISSION_ID
69
+ nufi leaderboard entries quality
70
+ ```
71
+
72
+ The same flow is available without local orchestration in Python:
73
+
74
+ ```python
75
+ from nufi import NuFi
76
+
77
+ with NuFi.from_profile() as client:
78
+ compile_run = client.compiles.create(model_name="qwen2", version="v1")
79
+ compiled = client.compiles.wait(compile_run.id)
80
+
81
+ evaluation_run = client.evaluations.create(
82
+ evaluation_method_id="METHOD_ID",
83
+ model_artifact_id=9,
84
+ cpu="4",
85
+ memory="8Gi",
86
+ accelerator_count=1,
87
+ )
88
+ evaluated = client.evaluations.wait(evaluation_run.id)
89
+
90
+ leaderboard = client.leaderboards.create(
91
+ "quality",
92
+ evaluation_method_id="METHOD_ID",
93
+ ranking_policy={
94
+ "primary": {
95
+ "metric": {"source": "aggregateMetrics", "name": "exact_match"},
96
+ "direction": "desc",
97
+ }
98
+ },
99
+ )
100
+ submission = client.leaderboards.submit(
101
+ leaderboard.id,
102
+ model_artifact_id=9,
103
+ )
104
+ completed = client.leaderboards.wait(leaderboard.id, submission.id)
105
+ entries = client.leaderboards.entries(leaderboard.id)
106
+ ```
107
+
108
+ ## Local Run
109
+
110
+ Install dependencies:
111
+
112
+ ```bash
113
+ uv sync
114
+ ```
115
+
116
+ Run the CLI locally:
117
+
118
+ ```bash
119
+ uv run nufi --help
120
+ uv run nufi profile
121
+ ```
122
+
123
+ ## Evaluations
124
+
125
+ Evaluation Method metadata is unconditional and v2-only. Method config is owned and
126
+ validated by the API; the SDK forwards the mapping and any caller-supplied Method type
127
+ without a client-side allowlist.
128
+
129
+ `evaluation method templates` currently exposes lm-eval templates, metrics, and
130
+ filters. It is an optional discovery command and is not needed when you already have a
131
+ Method config.
132
+
133
+ ```python
134
+ from nufi import NuFi
135
+
136
+ client = NuFi.from_profile()
137
+ project = "team-a"
138
+ config = {
139
+ "schemaVersion": "nufi.evaluation.method.v2",
140
+ "runnerType": "lm_eval",
141
+ "template": "short_answer",
142
+ "datasetMapping": {"input": "question", "reference": "answer"},
143
+ "nativeConfig": {
144
+ "output_type": "generate_until",
145
+ "doc_to_text": "{{input}}",
146
+ "doc_to_target": "{{reference}}",
147
+ "metric_list": [{"metric": "exact_match"}],
148
+ },
149
+ }
150
+
151
+ templates = client.evaluations.methods.templates(project=project)
152
+ preview = client.evaluations.methods.preview(
153
+ "DATASET_ID", "VERSION_ID", project=project, config=config
154
+ )
155
+ method = client.evaluations.methods.create(
156
+ "DATASET_ID", "VERSION_ID", "gsm8k-exact-match", project=project, config=config
157
+ )
158
+ run = client.evaluations.create(
159
+ project=project,
160
+ evaluation_method_id=method.id,
161
+ model_artifact_id=9,
162
+ cpu="1",
163
+ memory="2Gi",
164
+ accelerator_count=1,
165
+ )
166
+ result = client.evaluations.get(run.id, project=project)
167
+ client.evaluations.cancel(run.id, project=project)
168
+ client.close()
169
+ ```
170
+
171
+ The CLI accepts Dataset, Dataset Version, and Evaluation Method names or UUIDs. Run
172
+ arguments remain UUIDs because Runs have no name. Select a Model Artifact with
173
+ `--model`, `--model-version`, and `--artifact`; `--model-artifact-id` remains available
174
+ for automation. Config, default-runtime, and runner-config files may be JSON or YAML
175
+ and must have a mapping at the document root.
176
+
177
+ ```yaml
178
+ # method.yaml
179
+ schemaVersion: nufi.evaluation.method.v2
180
+ runnerType: lm_eval
181
+ template: short_answer
182
+ datasetMapping:
183
+ input: question
184
+ reference: answer
185
+ nativeConfig:
186
+ output_type: generate_until
187
+ doc_to_text: "{{input}}"
188
+ doc_to_target: "{{reference}}"
189
+ metric_list:
190
+ - metric: exact_match
191
+ ```
192
+
193
+ ```bash
194
+ uv run nufi evaluation method templates --project team-a
195
+ uv run nufi evaluation method validate gsm8k v1 --config method.yaml --project team-a
196
+ uv run nufi evaluation method create gsm8k v1 gsm8k-exact-match \
197
+ --config method.yaml --project team-a
198
+ uv run nufi evaluation method list --dataset gsm8k --version v1 --project team-a
199
+ uv run nufi evaluation method archive gsm8k-exact-match --yes --project team-a
200
+ uv run nufi evaluation method restore gsm8k-exact-match --project team-a
201
+
202
+ uv run nufi evaluation run create gsm8k-exact-match \
203
+ --model qwen2 --model-version v1 --artifact original \
204
+ --project team-a
205
+ uv run nufi evaluation run list --dataset gsm8k --version v1 --project team-a
206
+ uv run nufi evaluation run get RUN_ID --project team-a
207
+ uv run nufi evaluation run cancel RUN_ID --yes --project team-a
208
+ ```
209
+
210
+ Run creation defaults to `--cpu 4`, `--memory 8Gi`, and `--accelerator-count 1`;
211
+ pass any option to override its default.
212
+
213
+ Run detail table output shows aggregate and diagnostic summaries only. Use explicit
214
+ `--output json` to include the authorized bounded diagnostic input, output, reference,
215
+ score, and error fields returned by the API. Additive response fields are preserved;
216
+ legacy Method/Run responses missing required v2 fields are rejected.
217
+
218
+ Run tests:
219
+
220
+ ```bash
221
+ uv run pytest
222
+ ```
223
+
224
+ Build the package:
225
+
226
+ ```bash
227
+ uv build --clear
228
+ ```
@@ -0,0 +1,206 @@
1
+ # NuFi Python SDK/CLI
2
+
3
+ The distribution is `nufi-python`; it installs the `nufi` Python package and `nufi`
4
+ command.
5
+
6
+ ```bash
7
+ uv build --clear
8
+ python -m pip install ./dist/nufi_python-1.0.0-py3-none-any.whl
9
+ nufi --version
10
+ ```
11
+
12
+ ```python
13
+ from nufi import NuFi
14
+ ```
15
+
16
+ For verified-wheel installation, model registration, Dataset selection, evaluation,
17
+ Leaderboard ranking, compatibility, and troubleshooting, follow the
18
+ [SDK and CLI workflow guide](../docs/sdk-cli-guide/README.md).
19
+
20
+ ## Installed quickstart
21
+
22
+ Create a profile, log in, and select the project once:
23
+
24
+ ```bash
25
+ nufi profile create dev --base-domain nufi.local
26
+ nufi profile use dev
27
+ nufi login
28
+ nufi project use team-a
29
+ ```
30
+
31
+ The CLI workflow is composable; every long-running identity can be resumed with its
32
+ dedicated `wait` command:
33
+
34
+ ```bash
35
+ nufi model version create qwen2 v1 --volume models --path /qwen2
36
+ nufi compile create qwen2 --version v1 --wait
37
+ nufi compile wait COMPILE_NAME_OR_ID
38
+ nufi dataset list
39
+ nufi evaluation run create METHOD_NAME --model qwen2 \
40
+ --model-version v1 --artifact original --wait
41
+ nufi evaluation run wait RUN_ID
42
+ nufi leaderboard create quality --method METHOD_NAME \
43
+ --rank-metric exact_match --rank-direction desc
44
+ nufi leaderboard submission create quality --model qwen2 \
45
+ --model-version v1 --artifact original --wait
46
+ nufi leaderboard submission wait quality SUBMISSION_ID
47
+ nufi leaderboard entries quality
48
+ ```
49
+
50
+ The same flow is available without local orchestration in Python:
51
+
52
+ ```python
53
+ from nufi import NuFi
54
+
55
+ with NuFi.from_profile() as client:
56
+ compile_run = client.compiles.create(model_name="qwen2", version="v1")
57
+ compiled = client.compiles.wait(compile_run.id)
58
+
59
+ evaluation_run = client.evaluations.create(
60
+ evaluation_method_id="METHOD_ID",
61
+ model_artifact_id=9,
62
+ cpu="4",
63
+ memory="8Gi",
64
+ accelerator_count=1,
65
+ )
66
+ evaluated = client.evaluations.wait(evaluation_run.id)
67
+
68
+ leaderboard = client.leaderboards.create(
69
+ "quality",
70
+ evaluation_method_id="METHOD_ID",
71
+ ranking_policy={
72
+ "primary": {
73
+ "metric": {"source": "aggregateMetrics", "name": "exact_match"},
74
+ "direction": "desc",
75
+ }
76
+ },
77
+ )
78
+ submission = client.leaderboards.submit(
79
+ leaderboard.id,
80
+ model_artifact_id=9,
81
+ )
82
+ completed = client.leaderboards.wait(leaderboard.id, submission.id)
83
+ entries = client.leaderboards.entries(leaderboard.id)
84
+ ```
85
+
86
+ ## Local Run
87
+
88
+ Install dependencies:
89
+
90
+ ```bash
91
+ uv sync
92
+ ```
93
+
94
+ Run the CLI locally:
95
+
96
+ ```bash
97
+ uv run nufi --help
98
+ uv run nufi profile
99
+ ```
100
+
101
+ ## Evaluations
102
+
103
+ Evaluation Method metadata is unconditional and v2-only. Method config is owned and
104
+ validated by the API; the SDK forwards the mapping and any caller-supplied Method type
105
+ without a client-side allowlist.
106
+
107
+ `evaluation method templates` currently exposes lm-eval templates, metrics, and
108
+ filters. It is an optional discovery command and is not needed when you already have a
109
+ Method config.
110
+
111
+ ```python
112
+ from nufi import NuFi
113
+
114
+ client = NuFi.from_profile()
115
+ project = "team-a"
116
+ config = {
117
+ "schemaVersion": "nufi.evaluation.method.v2",
118
+ "runnerType": "lm_eval",
119
+ "template": "short_answer",
120
+ "datasetMapping": {"input": "question", "reference": "answer"},
121
+ "nativeConfig": {
122
+ "output_type": "generate_until",
123
+ "doc_to_text": "{{input}}",
124
+ "doc_to_target": "{{reference}}",
125
+ "metric_list": [{"metric": "exact_match"}],
126
+ },
127
+ }
128
+
129
+ templates = client.evaluations.methods.templates(project=project)
130
+ preview = client.evaluations.methods.preview(
131
+ "DATASET_ID", "VERSION_ID", project=project, config=config
132
+ )
133
+ method = client.evaluations.methods.create(
134
+ "DATASET_ID", "VERSION_ID", "gsm8k-exact-match", project=project, config=config
135
+ )
136
+ run = client.evaluations.create(
137
+ project=project,
138
+ evaluation_method_id=method.id,
139
+ model_artifact_id=9,
140
+ cpu="1",
141
+ memory="2Gi",
142
+ accelerator_count=1,
143
+ )
144
+ result = client.evaluations.get(run.id, project=project)
145
+ client.evaluations.cancel(run.id, project=project)
146
+ client.close()
147
+ ```
148
+
149
+ The CLI accepts Dataset, Dataset Version, and Evaluation Method names or UUIDs. Run
150
+ arguments remain UUIDs because Runs have no name. Select a Model Artifact with
151
+ `--model`, `--model-version`, and `--artifact`; `--model-artifact-id` remains available
152
+ for automation. Config, default-runtime, and runner-config files may be JSON or YAML
153
+ and must have a mapping at the document root.
154
+
155
+ ```yaml
156
+ # method.yaml
157
+ schemaVersion: nufi.evaluation.method.v2
158
+ runnerType: lm_eval
159
+ template: short_answer
160
+ datasetMapping:
161
+ input: question
162
+ reference: answer
163
+ nativeConfig:
164
+ output_type: generate_until
165
+ doc_to_text: "{{input}}"
166
+ doc_to_target: "{{reference}}"
167
+ metric_list:
168
+ - metric: exact_match
169
+ ```
170
+
171
+ ```bash
172
+ uv run nufi evaluation method templates --project team-a
173
+ uv run nufi evaluation method validate gsm8k v1 --config method.yaml --project team-a
174
+ uv run nufi evaluation method create gsm8k v1 gsm8k-exact-match \
175
+ --config method.yaml --project team-a
176
+ uv run nufi evaluation method list --dataset gsm8k --version v1 --project team-a
177
+ uv run nufi evaluation method archive gsm8k-exact-match --yes --project team-a
178
+ uv run nufi evaluation method restore gsm8k-exact-match --project team-a
179
+
180
+ uv run nufi evaluation run create gsm8k-exact-match \
181
+ --model qwen2 --model-version v1 --artifact original \
182
+ --project team-a
183
+ uv run nufi evaluation run list --dataset gsm8k --version v1 --project team-a
184
+ uv run nufi evaluation run get RUN_ID --project team-a
185
+ uv run nufi evaluation run cancel RUN_ID --yes --project team-a
186
+ ```
187
+
188
+ Run creation defaults to `--cpu 4`, `--memory 8Gi`, and `--accelerator-count 1`;
189
+ pass any option to override its default.
190
+
191
+ Run detail table output shows aggregate and diagnostic summaries only. Use explicit
192
+ `--output json` to include the authorized bounded diagnostic input, output, reference,
193
+ score, and error fields returned by the API. Additive response fields are preserved;
194
+ legacy Method/Run responses missing required v2 fields are rejected.
195
+
196
+ Run tests:
197
+
198
+ ```bash
199
+ uv run pytest
200
+ ```
201
+
202
+ Build the package:
203
+
204
+ ```bash
205
+ uv build --clear
206
+ ```
@@ -0,0 +1,49 @@
1
+ [project]
2
+ name = "nufi-python"
3
+ version = "1.0.0"
4
+ authors = [
5
+ { name = "Dudaji Inc." },
6
+ ]
7
+ description = "Python SDK and CLI for the NuFi platform."
8
+ readme = "README.md"
9
+ requires-python = ">=3.11"
10
+ license = "MIT"
11
+ classifiers = [
12
+ "Programming Language :: Python :: 3",
13
+ "Operating System :: OS Independent",
14
+ "Typing :: Typed",
15
+ ]
16
+ dependencies = [
17
+ "httpx>=0.25.0",
18
+ "PyYAML>=6.0",
19
+ "pydantic>=2.0.0",
20
+ "tuspy==1.1.0",
21
+ "typer>=0.16.0",
22
+ "rich>=13.0.0",
23
+ ]
24
+
25
+ [project.optional-dependencies]
26
+ evaluator = ["pyarrow>=24.0.0"]
27
+
28
+ [build-system]
29
+ requires = ["setuptools>=61.0"]
30
+ build-backend = "setuptools.build_meta"
31
+
32
+ [project.scripts]
33
+ nufi = "nufi.cli.main:app"
34
+
35
+ [tool.setuptools.packages.find]
36
+ where = ["src"]
37
+
38
+ [tool.setuptools.package-data]
39
+ nufi = ["py.typed"]
40
+
41
+ [dependency-groups]
42
+ dev = [
43
+ "pyarrow>=24.0.0",
44
+ "pytest>=8.3.5",
45
+ "pytest-cov>=5.0.0",
46
+ "pytest-mock",
47
+ "respx>=0.22.0",
48
+ "ruff>=0.12.4",
49
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,52 @@
1
+ from importlib.metadata import version
2
+
3
+ from nufi.client import NuFi
4
+ from nufi.models import (
5
+ ArtifactValidation,
6
+ CompileRun,
7
+ EvaluationMethod,
8
+ EvaluationMethodTemplates,
9
+ EvaluationRun,
10
+ HuggingFaceMapping,
11
+ Leaderboard,
12
+ LeaderboardEntry,
13
+ LeaderboardSubmission,
14
+ ModelArtifact,
15
+ ModelArtifactCreate,
16
+ ModelDetail,
17
+ ModelImport,
18
+ ModelVersion,
19
+ Page,
20
+ Project,
21
+ ProjectAccessToken,
22
+ ProjectAccessTokenCreateResponse,
23
+ RegisteredModel,
24
+ Serving,
25
+ )
26
+
27
+ __version__ = version("nufi-python")
28
+
29
+ __all__ = [
30
+ "__version__",
31
+ "ArtifactValidation",
32
+ "CompileRun",
33
+ "EvaluationMethod",
34
+ "EvaluationMethodTemplates",
35
+ "EvaluationRun",
36
+ "HuggingFaceMapping",
37
+ "Leaderboard",
38
+ "LeaderboardEntry",
39
+ "LeaderboardSubmission",
40
+ "ModelArtifact",
41
+ "ModelArtifactCreate",
42
+ "ModelDetail",
43
+ "ModelImport",
44
+ "ModelVersion",
45
+ "NuFi",
46
+ "Page",
47
+ "Project",
48
+ "ProjectAccessToken",
49
+ "ProjectAccessTokenCreateResponse",
50
+ "RegisteredModel",
51
+ "Serving",
52
+ ]