arize-ax-cli 0.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.
- arize_ax_cli-0.0.0/.gitignore +84 -0
- arize_ax_cli-0.0.0/LICENSE +69 -0
- arize_ax_cli-0.0.0/PKG-INFO +472 -0
- arize_ax_cli-0.0.0/README.md +436 -0
- arize_ax_cli-0.0.0/pyproject.toml +235 -0
- arize_ax_cli-0.0.0/src/ax/__init__.py +5 -0
- arize_ax_cli-0.0.0/src/ax/__main__.py +6 -0
- arize_ax_cli-0.0.0/src/ax/cli.py +79 -0
- arize_ax_cli-0.0.0/src/ax/commands/__init__.py +1 -0
- arize_ax_cli-0.0.0/src/ax/commands/cache.py +54 -0
- arize_ax_cli-0.0.0/src/ax/commands/config.py +359 -0
- arize_ax_cli-0.0.0/src/ax/commands/datasets.py +388 -0
- arize_ax_cli-0.0.0/src/ax/commands/projects.py +284 -0
- arize_ax_cli-0.0.0/src/ax/config/__init__.py +1 -0
- arize_ax_cli-0.0.0/src/ax/config/input_readers.py +271 -0
- arize_ax_cli-0.0.0/src/ax/config/manager.py +338 -0
- arize_ax_cli-0.0.0/src/ax/config/schema.py +240 -0
- arize_ax_cli-0.0.0/src/ax/config/setup.py +215 -0
- arize_ax_cli-0.0.0/src/ax/core/__init__.py +1 -0
- arize_ax_cli-0.0.0/src/ax/core/basemodel_utils.py +113 -0
- arize_ax_cli-0.0.0/src/ax/core/decorators.py +55 -0
- arize_ax_cli-0.0.0/src/ax/core/exceptions.py +43 -0
- arize_ax_cli-0.0.0/src/ax/core/output.py +300 -0
- arize_ax_cli-0.0.0/src/ax/utils/__init__.py +1 -0
- arize_ax_cli-0.0.0/src/ax/utils/console.py +233 -0
- arize_ax_cli-0.0.0/src/ax/utils/file_io.py +197 -0
- arize_ax_cli-0.0.0/src/ax/version.py +3 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
|
|
34
|
+
# Installer logs
|
|
35
|
+
pip-log.txt
|
|
36
|
+
pip-delete-this-directory.txt
|
|
37
|
+
|
|
38
|
+
# Unit test / coverage reports
|
|
39
|
+
htmlcov/
|
|
40
|
+
.tox/
|
|
41
|
+
.nox/
|
|
42
|
+
.coverage
|
|
43
|
+
.coverage.*
|
|
44
|
+
.cache
|
|
45
|
+
nosetests.xml
|
|
46
|
+
coverage.xml
|
|
47
|
+
*.cover
|
|
48
|
+
*.py,cover
|
|
49
|
+
.hypothesis/
|
|
50
|
+
.pytest_cache/
|
|
51
|
+
test_data/
|
|
52
|
+
|
|
53
|
+
# Virtual environments
|
|
54
|
+
venv/
|
|
55
|
+
env/
|
|
56
|
+
ENV/
|
|
57
|
+
env.bak/
|
|
58
|
+
venv.bak/
|
|
59
|
+
|
|
60
|
+
# IDEs
|
|
61
|
+
.vscode/
|
|
62
|
+
.idea/
|
|
63
|
+
*.swp
|
|
64
|
+
*.swo
|
|
65
|
+
*~
|
|
66
|
+
|
|
67
|
+
# mypy
|
|
68
|
+
.mypy_cache/
|
|
69
|
+
.dmypy.json
|
|
70
|
+
dmypy.json
|
|
71
|
+
|
|
72
|
+
# Pyre type checker
|
|
73
|
+
.pyre/
|
|
74
|
+
|
|
75
|
+
# pytype static type analyzer
|
|
76
|
+
.pytype/
|
|
77
|
+
|
|
78
|
+
# OS
|
|
79
|
+
.DS_Store
|
|
80
|
+
Thumbs.db
|
|
81
|
+
|
|
82
|
+
# Project specific
|
|
83
|
+
*.log
|
|
84
|
+
.env
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
10
|
+
|
|
11
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
12
|
+
|
|
13
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
14
|
+
|
|
15
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
16
|
+
|
|
17
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
18
|
+
|
|
19
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
20
|
+
|
|
21
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
22
|
+
|
|
23
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
24
|
+
|
|
25
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
26
|
+
|
|
27
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
28
|
+
|
|
29
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
30
|
+
|
|
31
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
32
|
+
|
|
33
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
34
|
+
|
|
35
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
36
|
+
|
|
37
|
+
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
38
|
+
|
|
39
|
+
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
40
|
+
|
|
41
|
+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
|
42
|
+
|
|
43
|
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
44
|
+
|
|
45
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
46
|
+
|
|
47
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
48
|
+
|
|
49
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
50
|
+
|
|
51
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
52
|
+
|
|
53
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
54
|
+
|
|
55
|
+
END OF TERMS AND CONDITIONS
|
|
56
|
+
|
|
57
|
+
Copyright 2026 Arize AI, Inc.
|
|
58
|
+
|
|
59
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
60
|
+
you may not use this file except in compliance with the License.
|
|
61
|
+
You may obtain a copy of the License at
|
|
62
|
+
|
|
63
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
64
|
+
|
|
65
|
+
Unless required by applicable law or agreed to in writing, software
|
|
66
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
67
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
68
|
+
See the License for the specific language governing permissions and
|
|
69
|
+
limitations under the License.
|
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: arize-ax-cli
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: Official Arize CLI tool for managing datasets, experiments, and more
|
|
5
|
+
Project-URL: Homepage, https://arize.com
|
|
6
|
+
Project-URL: Documentation, https://docs.arize.com/cli
|
|
7
|
+
Project-URL: Repository, https://github.com/Arize-ai/ax-cli
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/Arize-ai/ax-cli/issues
|
|
9
|
+
Author-email: Arize AI <support@arize.com>
|
|
10
|
+
License: Apache-2.0
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: arize,cli,llm,machine-learning,mlops,observability
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Requires-Python: >=3.12
|
|
21
|
+
Requires-Dist: arize<9,>=8.0.0b0
|
|
22
|
+
Requires-Dist: pydantic<3,>=2.0.0
|
|
23
|
+
Requires-Dist: questionary<3,>=2.0.0
|
|
24
|
+
Requires-Dist: rich<14,>=13.0.0
|
|
25
|
+
Requires-Dist: shellingham<2,>=1.5.0
|
|
26
|
+
Requires-Dist: tomli-w<2,>=1.0.0
|
|
27
|
+
Requires-Dist: typer<1,>=0.12.0
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: mypy==1.19.1; extra == 'dev'
|
|
30
|
+
Requires-Dist: pandas-stubs>=2.2.0; extra == 'dev'
|
|
31
|
+
Requires-Dist: pytest-cov==6.0.0; extra == 'dev'
|
|
32
|
+
Requires-Dist: pytest==8.4.2; extra == 'dev'
|
|
33
|
+
Requires-Dist: ruff==0.14.9; extra == 'dev'
|
|
34
|
+
Requires-Dist: taskipy<2,>=1.14.1; extra == 'dev'
|
|
35
|
+
Description-Content-Type: text/markdown
|
|
36
|
+
|
|
37
|
+
# Arize CLI (`ax`)
|
|
38
|
+
|
|
39
|
+
Official command-line interface for Arize AI. Manage datasets, experiments, and more from your terminal.
|
|
40
|
+
|
|
41
|
+
## Features
|
|
42
|
+
|
|
43
|
+
- **Dataset Management**: Create, list, and manage datasets with support for CSV, JSON, JSONL, and Parquet formats
|
|
44
|
+
- **Experiment Management**: Run and track experiments with your datasets
|
|
45
|
+
- **Profile Management**: Multiple configuration profiles for different environments (dev, staging, prod)
|
|
46
|
+
- **Rich Output**: Beautiful table formatting, JSON, CSV, and Parquet export options
|
|
47
|
+
- **Interactive**: Confirmation prompts, progress bars, and helpful error messages
|
|
48
|
+
- **Type-Safe**: Built with modern Python 3.12+ and Typer for excellent IDE support
|
|
49
|
+
|
|
50
|
+
## Requirements
|
|
51
|
+
|
|
52
|
+
- Python 3.12 or higher
|
|
53
|
+
- Arize API key ([get one here](https://app.arize.com/settings/api-keys))
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
pip install arize-ax-cli
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Quick Start
|
|
62
|
+
|
|
63
|
+
### 1. Initialize Configuration
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
ax config init
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
This will interactively prompt you for:
|
|
70
|
+
|
|
71
|
+
- API Key
|
|
72
|
+
- Default Space ID (optional)
|
|
73
|
+
- Region (us-central-1a, eu-west-1a, ca-central-1a, us-east-1b)
|
|
74
|
+
- Output preferences
|
|
75
|
+
|
|
76
|
+
### 2. List Datasets
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
ax datasets list
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### 3. Create a Dataset
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
ax datasets create --name "My Dataset" --file data.csv
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 4. View Help
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
ax --help
|
|
92
|
+
ax datasets --help
|
|
93
|
+
ax config --help
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Commands
|
|
97
|
+
|
|
98
|
+
### Global Options
|
|
99
|
+
|
|
100
|
+
Available on all commands:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
--api-key TEXT Override API key
|
|
104
|
+
--region TEXT Override region
|
|
105
|
+
--profile TEXT Use specific profile
|
|
106
|
+
--no-color Disable colored output
|
|
107
|
+
--verbose, -v Verbose output
|
|
108
|
+
--quiet, -q Suppress non-essential output
|
|
109
|
+
--help, -h Show help
|
|
110
|
+
--version Show version
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Command-Level Options
|
|
114
|
+
|
|
115
|
+
These options are available on specific commands and are passed after the subcommand:
|
|
116
|
+
|
|
117
|
+
#### Output Option
|
|
118
|
+
|
|
119
|
+
Available on list and export commands:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
-o, --output TEXT Output format (table, json, csv, parquet) or file path
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The `-o` option intelligently handles both formats and file paths:
|
|
126
|
+
|
|
127
|
+
- Format names (`table`, `json`, `csv`, `parquet`) output to stdout
|
|
128
|
+
- File paths (`data.json`, `output.csv`) save to file with auto-detected format
|
|
129
|
+
|
|
130
|
+
#### Space ID Option
|
|
131
|
+
|
|
132
|
+
Available on dataset commands:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
--space-id TEXT Space ID (env: ARIZE_SPACE_ID, config: defaults.space_id)
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Precedence: command flag > environment variable > config file
|
|
139
|
+
|
|
140
|
+
### Configuration Management
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
# Initialize configuration
|
|
144
|
+
ax config init
|
|
145
|
+
ax config init --profile dev
|
|
146
|
+
|
|
147
|
+
# Show configuration
|
|
148
|
+
ax config show
|
|
149
|
+
ax config show --profile prod
|
|
150
|
+
|
|
151
|
+
# Set a value
|
|
152
|
+
ax config set auth.api_key "new-key"
|
|
153
|
+
ax config set defaults.region eu-west-1a
|
|
154
|
+
|
|
155
|
+
# Get a value
|
|
156
|
+
ax config get auth.api_key
|
|
157
|
+
|
|
158
|
+
# Clear cache
|
|
159
|
+
ax config clear-cache
|
|
160
|
+
|
|
161
|
+
# Profile management
|
|
162
|
+
ax config profile list
|
|
163
|
+
ax config profile use dev
|
|
164
|
+
ax config profile show
|
|
165
|
+
ax config profile delete old-profile
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Dataset Commands
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
# List datasets
|
|
172
|
+
ax datasets list
|
|
173
|
+
ax datasets list --limit 100
|
|
174
|
+
ax datasets list --space-id my-space --limit 100
|
|
175
|
+
|
|
176
|
+
# List with different output formats (to stdout)
|
|
177
|
+
ax datasets list -o json
|
|
178
|
+
ax datasets list -o csv
|
|
179
|
+
ax datasets list -o table
|
|
180
|
+
|
|
181
|
+
# Save to file (format auto-detected from extension)
|
|
182
|
+
ax datasets list -o datasets.json
|
|
183
|
+
ax datasets list -o datasets.csv
|
|
184
|
+
ax datasets list -o datasets.parquet
|
|
185
|
+
|
|
186
|
+
# Combine options naturally
|
|
187
|
+
ax datasets list --space-id my-space -o json
|
|
188
|
+
ax datasets list --space-id my-space -o datasets.csv
|
|
189
|
+
|
|
190
|
+
# Create dataset from file
|
|
191
|
+
ax datasets create --name "Training Data" --file data.csv
|
|
192
|
+
ax datasets create --name "Test Data" --file data.json --space-id my-space
|
|
193
|
+
|
|
194
|
+
# Get dataset details
|
|
195
|
+
ax datasets get --id dataset-123
|
|
196
|
+
|
|
197
|
+
# Delete dataset (with confirmation)
|
|
198
|
+
ax datasets delete --id dataset-123
|
|
199
|
+
ax datasets delete --id dataset-123 --force
|
|
200
|
+
|
|
201
|
+
# List dataset examples
|
|
202
|
+
ax datasets examples --id dataset-123 --limit 500
|
|
203
|
+
ax datasets examples --id dataset-123 -o json
|
|
204
|
+
ax datasets examples --id dataset-123 -o examples.csv
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Experiment Commands
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
# List experiments
|
|
211
|
+
ax experiments list
|
|
212
|
+
ax experiments list --dataset-id dataset-123
|
|
213
|
+
|
|
214
|
+
# List with different output formats
|
|
215
|
+
ax experiments list -o json
|
|
216
|
+
ax experiments list -o experiments.csv
|
|
217
|
+
|
|
218
|
+
# Create experiment
|
|
219
|
+
ax experiments create --name "Experiment 1" --dataset-id dataset-123
|
|
220
|
+
|
|
221
|
+
# Get experiment details
|
|
222
|
+
ax experiments get --id exp-123
|
|
223
|
+
|
|
224
|
+
# Delete experiment
|
|
225
|
+
ax experiments delete --id exp-123
|
|
226
|
+
|
|
227
|
+
# Run experiment (coming soon)
|
|
228
|
+
ax experiments run --id exp-123 --task task.py
|
|
229
|
+
ax experiments run --id exp-123 --task task.py --async
|
|
230
|
+
|
|
231
|
+
# List experiment runs (coming soon)
|
|
232
|
+
ax experiments runs --id exp-123
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
## Configuration
|
|
236
|
+
|
|
237
|
+
### Configuration File Locations
|
|
238
|
+
|
|
239
|
+
- Default profile: `~/.arize/config.toml`
|
|
240
|
+
- Named profiles: `~/.arize/profiles/<profile-name>.toml`
|
|
241
|
+
- Active profile marker: `~/.arize/.active_profile`
|
|
242
|
+
|
|
243
|
+
### Configuration Structure
|
|
244
|
+
|
|
245
|
+
```toml
|
|
246
|
+
[profile]
|
|
247
|
+
name = "default"
|
|
248
|
+
|
|
249
|
+
[auth]
|
|
250
|
+
api_key = "your-api-key"
|
|
251
|
+
|
|
252
|
+
[defaults]
|
|
253
|
+
space_id = "default-space-id"
|
|
254
|
+
region = "us-central-1a"
|
|
255
|
+
|
|
256
|
+
[output]
|
|
257
|
+
format = "table"
|
|
258
|
+
color = true
|
|
259
|
+
|
|
260
|
+
[cache]
|
|
261
|
+
enabled = true
|
|
262
|
+
directory = "~/.arize/cache"
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Configuration Precedence
|
|
266
|
+
|
|
267
|
+
Settings are resolved in this order (highest to lowest):
|
|
268
|
+
|
|
269
|
+
1. Command-line flags (`--api-key`, `--region`, etc.)
|
|
270
|
+
2. Environment variables (`ARIZE_API_KEY`, `ARIZE_REGION`, `ARIZE_PROFILE`)
|
|
271
|
+
3. Active profile config file
|
|
272
|
+
4. Default profile config file
|
|
273
|
+
5. SDK defaults
|
|
274
|
+
|
|
275
|
+
### Environment Variables
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
export ARIZE_API_KEY="your-api-key"
|
|
279
|
+
export ARIZE_REGION="us-central-1a"
|
|
280
|
+
export ARIZE_SPACE_ID="your-space-id"
|
|
281
|
+
export ARIZE_PROFILE="dev"
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
## Examples
|
|
285
|
+
|
|
286
|
+
### Working with Multiple Profiles
|
|
287
|
+
|
|
288
|
+
```bash
|
|
289
|
+
# Create profiles for different environments
|
|
290
|
+
ax config init --profile dev
|
|
291
|
+
ax config init --profile staging
|
|
292
|
+
ax config init --profile prod
|
|
293
|
+
|
|
294
|
+
# Switch between profiles
|
|
295
|
+
ax config profile use staging
|
|
296
|
+
|
|
297
|
+
# Or use --profile flag
|
|
298
|
+
ax datasets list --profile prod
|
|
299
|
+
|
|
300
|
+
# Or use environment variable
|
|
301
|
+
export ARIZE_PROFILE=dev
|
|
302
|
+
ax datasets list
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
### Output Options
|
|
306
|
+
|
|
307
|
+
The `-o` / `--output` option accepts either a format name or a file path:
|
|
308
|
+
|
|
309
|
+
```bash
|
|
310
|
+
# Output format to stdout
|
|
311
|
+
ax datasets list -o json # JSON to stdout
|
|
312
|
+
ax datasets list -o csv # CSV to stdout
|
|
313
|
+
ax datasets list -o table # Pretty table to stdout (default)
|
|
314
|
+
ax datasets list -o parquet # Parquet to stdout (binary)
|
|
315
|
+
|
|
316
|
+
# Save to file (format auto-detected from extension)
|
|
317
|
+
ax datasets list -o datasets.json # JSON file
|
|
318
|
+
ax datasets list -o datasets.csv # CSV file
|
|
319
|
+
ax datasets list -o datasets.parquet # Parquet file
|
|
320
|
+
|
|
321
|
+
# Examples with dataset examples
|
|
322
|
+
ax datasets examples --id dataset-123 -o json
|
|
323
|
+
ax datasets examples --id dataset-123 -o examples.csv
|
|
324
|
+
ax datasets examples --id dataset-123 -o examples.parquet
|
|
325
|
+
|
|
326
|
+
# Output format can also be set in config profile
|
|
327
|
+
ax --profile json datasets list # Uses json format from profile
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
The output option respects this precedence:
|
|
331
|
+
|
|
332
|
+
1. `-o` / `--output` flag (highest priority)
|
|
333
|
+
2. Config file `output.format` setting
|
|
334
|
+
3. Default (`table`)
|
|
335
|
+
|
|
336
|
+
````bash
|
|
337
|
+
|
|
338
|
+
### Creating Datasets from Different Formats
|
|
339
|
+
|
|
340
|
+
```bash
|
|
341
|
+
# From CSV
|
|
342
|
+
ax datasets create --name "CSV Data" --file data.csv
|
|
343
|
+
|
|
344
|
+
# From JSON
|
|
345
|
+
ax datasets create --name "JSON Data" --file data.json
|
|
346
|
+
|
|
347
|
+
# From JSON Lines
|
|
348
|
+
ax datasets create --name "JSONL Data" --file data.jsonl
|
|
349
|
+
|
|
350
|
+
# From Parquet
|
|
351
|
+
ax datasets create --name "Parquet Data" --file data.parquet
|
|
352
|
+
````
|
|
353
|
+
|
|
354
|
+
### Scripting and Automation
|
|
355
|
+
|
|
356
|
+
```bash
|
|
357
|
+
#!/bin/bash
|
|
358
|
+
|
|
359
|
+
# Set environment variables
|
|
360
|
+
export ARIZE_API_KEY="your-key"
|
|
361
|
+
export ARIZE_SPACE_ID="your-space"
|
|
362
|
+
|
|
363
|
+
# Create dataset
|
|
364
|
+
DATASET_ID=$(ax datasets create --name "Auto Dataset" --file data.csv -o json | jq -r '.id')
|
|
365
|
+
|
|
366
|
+
# Create experiment
|
|
367
|
+
EXP_ID=$(ax experiments create --name "Auto Exp" --dataset-id "$DATASET_ID" -o json | jq -r '.id')
|
|
368
|
+
|
|
369
|
+
echo "Created experiment $EXP_ID for dataset $DATASET_ID"
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
## Shell Completion
|
|
373
|
+
|
|
374
|
+
Typer provides automatic shell completion. To install:
|
|
375
|
+
|
|
376
|
+
### Bash
|
|
377
|
+
|
|
378
|
+
```bash
|
|
379
|
+
ax --install-completion bash
|
|
380
|
+
source ~/.bashrc
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
### Zsh
|
|
384
|
+
|
|
385
|
+
```bash
|
|
386
|
+
ax --install-completion zsh
|
|
387
|
+
source ~/.zshrc
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### Fish
|
|
391
|
+
|
|
392
|
+
```bash
|
|
393
|
+
ax --install-completion fish
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
## Development
|
|
397
|
+
|
|
398
|
+
### Setup Development Environment
|
|
399
|
+
|
|
400
|
+
```bash
|
|
401
|
+
git clone https://github.com/Arize-ai/client_python.git
|
|
402
|
+
cd client_python/ax-cli
|
|
403
|
+
|
|
404
|
+
# Create virtual environment
|
|
405
|
+
python -m venv venv
|
|
406
|
+
source venv/bin/activate # On Windows: venv\Scripts\activate
|
|
407
|
+
|
|
408
|
+
# Install in editable mode with dev dependencies
|
|
409
|
+
pip install -e ".[dev]"
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
### Running Tests
|
|
413
|
+
|
|
414
|
+
```bash
|
|
415
|
+
pytest
|
|
416
|
+
pytest --cov=ax --cov-report=html
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
### Code Quality
|
|
420
|
+
|
|
421
|
+
```bash
|
|
422
|
+
# Format and lint
|
|
423
|
+
ruff check src/
|
|
424
|
+
ruff format src/
|
|
425
|
+
|
|
426
|
+
# Type checking
|
|
427
|
+
mypy src/
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
## Troubleshooting
|
|
431
|
+
|
|
432
|
+
### Authentication Errors
|
|
433
|
+
|
|
434
|
+
If you see "API key not found" or authentication errors:
|
|
435
|
+
|
|
436
|
+
1. Verify your API key is correct
|
|
437
|
+
2. Check configuration: `ax config show`
|
|
438
|
+
3. Try re-initializing: `ax config init --force`
|
|
439
|
+
4. Verify key at: https://app.arize.com/settings/api-keys
|
|
440
|
+
|
|
441
|
+
### Import Errors
|
|
442
|
+
|
|
443
|
+
If you get import errors after installation:
|
|
444
|
+
|
|
445
|
+
```bash
|
|
446
|
+
pip install --upgrade arize-ax-cli
|
|
447
|
+
# Or if installed from source:
|
|
448
|
+
pip install -e . --force-reinstall
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
### Configuration Issues
|
|
452
|
+
|
|
453
|
+
To reset configuration:
|
|
454
|
+
|
|
455
|
+
```bash
|
|
456
|
+
rm -rf ~/.arize
|
|
457
|
+
ax config init
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
## Support
|
|
461
|
+
|
|
462
|
+
- Documentation: https://docs.arize.com/cli
|
|
463
|
+
- GitHub Issues: https://github.com/Arize-ai/client_python/issues
|
|
464
|
+
- Community: https://arize.com/community
|
|
465
|
+
|
|
466
|
+
## License
|
|
467
|
+
|
|
468
|
+
Apache License 2.0 - see LICENSE file for details.
|
|
469
|
+
|
|
470
|
+
## Contributing
|
|
471
|
+
|
|
472
|
+
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
|