tamarind-cli 0.1.3__tar.gz → 0.2.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.
- tamarind_cli-0.2.0/.github/workflows/ci.yml +67 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/.github/workflows/publish.yml +1 -1
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/.gitignore +1 -0
- tamarind_cli-0.2.0/LICENSE +201 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/PKG-INFO +54 -9
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/README.md +51 -7
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/docs/architecture.md +12 -9
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/pyproject.toml +2 -2
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/cli/commands/auth.py +4 -8
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/cli/commands/catalog.py +48 -1
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/cli/commands/files.py +60 -8
- tamarind_cli-0.2.0/src/tamarind/cli/commands/jobs.py +728 -0
- tamarind_cli-0.2.0/src/tamarind/cli/guidance.py +51 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/cli/inputs.py +22 -0
- tamarind_cli-0.2.0/src/tamarind/cli/main.py +223 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/cli/output.py +62 -1
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/errors.py +22 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/http.py +29 -3
- tamarind_cli-0.2.0/src/tamarind/jobs.py +188 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/rest.py +19 -7
- tamarind_cli-0.2.0/tests/test_agent_contract.py +962 -0
- tamarind_cli-0.2.0/tests/test_bugbash.py +326 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/tests/test_cli_commands.py +201 -0
- tamarind_cli-0.2.0/tests/test_jobs.py +190 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/tests/test_rest.py +78 -3
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/uv.lock +1 -1
- tamarind_cli-0.1.3/src/tamarind/cli/commands/jobs.py +0 -372
- tamarind_cli-0.1.3/src/tamarind/cli/main.py +0 -122
- tamarind_cli-0.1.3/src/tamarind/jobs.py +0 -106
- tamarind_cli-0.1.3/tests/test_jobs.py +0 -78
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/install.sh +0 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/__init__.py +0 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/catalog.py +0 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/cli/__init__.py +0 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/cli/commands/__init__.py +0 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/src/tamarind/config.py +0 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/tests/test_config.py +0 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/tests/test_file_filters.py +0 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/tests/test_inputs.py +0 -0
- {tamarind_cli-0.1.3 → tamarind_cli-0.2.0}/tests/test_output.py +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
package:
|
|
13
|
+
name: Build release artifacts
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
timeout-minutes: 10
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: astral-sh/setup-uv@v5
|
|
19
|
+
- name: Build source and wheel distributions
|
|
20
|
+
run: uv build
|
|
21
|
+
- name: Reject local caches in the source distribution
|
|
22
|
+
run: >-
|
|
23
|
+
python -c "import glob, tarfile;
|
|
24
|
+
names = tarfile.open(glob.glob('dist/*.tar.gz')[0]).getnames();
|
|
25
|
+
assert not any('/.uv-cache/' in name or '/.venv/' in name for name in names)"
|
|
26
|
+
- name: Smoke-check the built wheel
|
|
27
|
+
run: uv run --isolated --no-project --with dist/*.whl tamarind --version
|
|
28
|
+
|
|
29
|
+
test:
|
|
30
|
+
name: Python ${{ matrix.python-version }}
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
timeout-minutes: 10
|
|
33
|
+
strategy:
|
|
34
|
+
fail-fast: false
|
|
35
|
+
matrix:
|
|
36
|
+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
37
|
+
steps:
|
|
38
|
+
- uses: actions/checkout@v4
|
|
39
|
+
- uses: astral-sh/setup-uv@v5
|
|
40
|
+
with:
|
|
41
|
+
enable-cache: true
|
|
42
|
+
python-version: ${{ matrix.python-version }}
|
|
43
|
+
- name: Install project and development dependencies
|
|
44
|
+
run: uv sync --extra dev
|
|
45
|
+
- name: Test
|
|
46
|
+
run: uv run pytest
|
|
47
|
+
- name: Lint
|
|
48
|
+
run: uv run ruff check .
|
|
49
|
+
|
|
50
|
+
cross-platform:
|
|
51
|
+
name: ${{ matrix.os }}
|
|
52
|
+
runs-on: ${{ matrix.os }}
|
|
53
|
+
timeout-minutes: 10
|
|
54
|
+
strategy:
|
|
55
|
+
fail-fast: false
|
|
56
|
+
matrix:
|
|
57
|
+
os: [macos-latest, windows-latest]
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@v4
|
|
60
|
+
- uses: astral-sh/setup-uv@v5
|
|
61
|
+
with:
|
|
62
|
+
enable-cache: true
|
|
63
|
+
python-version: "3.12"
|
|
64
|
+
- name: Install project and development dependencies
|
|
65
|
+
run: uv sync --extra dev
|
|
66
|
+
- name: Test
|
|
67
|
+
run: uv run pytest
|
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
- name: Build sdist + wheel
|
|
23
23
|
run: uv build
|
|
24
24
|
- name: Smoke-check the build
|
|
25
|
-
run: uv run --with dist/*.whl tamarind --version
|
|
25
|
+
run: uv run --isolated --no-project --with dist/*.whl tamarind --version
|
|
26
26
|
- uses: actions/upload-artifact@v4
|
|
27
27
|
with:
|
|
28
28
|
name: dist
|
|
@@ -0,0 +1,201 @@
|
|
|
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,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Tamarind Bio
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tamarind-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Command-line interface for the Tamarind Bio platform — submit, monitor, and download protein/molecule jobs from your terminal or an AI agent.
|
|
5
5
|
Project-URL: Homepage, https://tamarind.bio
|
|
6
6
|
Project-URL: Documentation, https://app.tamarind.bio/api-docs
|
|
7
7
|
Project-URL: Source, https://github.com/Tamarind-Bio/tamarind-cli
|
|
8
8
|
Author: Tamarind Bio
|
|
9
|
-
License:
|
|
9
|
+
License: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
10
11
|
Keywords: agents,alphafold,bioinformatics,boltz,cli,protein
|
|
11
12
|
Requires-Python: >=3.10
|
|
12
13
|
Requires-Dist: httpx>=0.27
|
|
@@ -20,6 +21,9 @@ Description-Content-Type: text/markdown
|
|
|
20
21
|
|
|
21
22
|
# Tamarind CLI
|
|
22
23
|
|
|
24
|
+
[](LICENSE)
|
|
25
|
+
[](https://www.python.org/downloads/)
|
|
26
|
+
|
|
23
27
|
Command-line interface for the [Tamarind Bio](https://tamarind.bio) platform.
|
|
24
28
|
Discover tools, submit and monitor protein / nucleic-acid / small-molecule jobs,
|
|
25
29
|
and download results — from your terminal, a script, CI, or an AI coding agent
|
|
@@ -35,7 +39,8 @@ server](https://mcp.tamarind.bio) uses, so the two stay in lockstep. See
|
|
|
35
39
|
uv tool install tamarind-cli # or: pipx install tamarind-cli
|
|
36
40
|
```
|
|
37
41
|
|
|
38
|
-
Or with the bootstrap installer (
|
|
42
|
+
Or with the bootstrap installer (uses `uv`, `pipx`, or Python/pip already on
|
|
43
|
+
your `PATH`):
|
|
39
44
|
|
|
40
45
|
```bash
|
|
41
46
|
curl -fsSL https://app.tamarind.bio/cli/install.sh | sh
|
|
@@ -72,11 +77,12 @@ tamarind tools --search boltz
|
|
|
72
77
|
|
|
73
78
|
# 2. Inspect its parameters and grab a runnable example
|
|
74
79
|
tamarind schema boltz
|
|
75
|
-
tamarind schema boltz --example > job.yaml
|
|
80
|
+
tamarind schema boltz --example > job.yaml # most tools ship an example; some don't
|
|
76
81
|
|
|
77
82
|
# 3. Validate, then submit
|
|
78
83
|
tamarind validate boltz --input job.yaml
|
|
79
|
-
tamarind submit
|
|
84
|
+
tamarind submit boltz --input job.yaml --name my-run \
|
|
85
|
+
--wait --timeout 3600 --download ./out
|
|
80
86
|
|
|
81
87
|
# 4. Monitor / fetch
|
|
82
88
|
tamarind jobs
|
|
@@ -95,13 +101,40 @@ tamarind submit boltz \
|
|
|
95
101
|
|
|
96
102
|
## Output for agents
|
|
97
103
|
|
|
98
|
-
Every command emits JSON when stdout is not a TTY, or with `--json`.
|
|
99
|
-
are
|
|
104
|
+
Every command emits JSON when stdout is not a TTY, or with `--json`. Result
|
|
105
|
+
documents are written to stdout. Typed command, transport, and usage errors are
|
|
106
|
+
written to stderr as
|
|
107
|
+
`{"error":{"type":...,"message":...,"exitCode":...,"detail":...}}`; `detail`
|
|
108
|
+
is omitted when unavailable. A domain verdict can deliberately combine a
|
|
109
|
+
nonzero exit with a result document: invalid `validate` output remains on
|
|
110
|
+
stdout with exit 5, and a terminal unsuccessful job remains on stdout with exit
|
|
111
|
+
9 so callers can inspect its status. Exit codes are stable: `0` ok, `1`
|
|
112
|
+
generic failure, `2` usage, `3` auth, `4` not-found, `5` validation, `6`
|
|
113
|
+
rate-limit, `7` timeout (a bounded wait elapsed while the remote job may still
|
|
114
|
+
run), `8` budget/quota exhaustion, and `9` remote job failure.
|
|
115
|
+
|
|
116
|
+
For agent workflows, always put a deadline on blocking commands. `submit --wait`
|
|
117
|
+
and `results --wait` accept `--timeout`; the standalone `wait` command remains
|
|
118
|
+
the easiest way to reattach to a durable job name.
|
|
119
|
+
|
|
120
|
+
Starting in 0.2, `results` requires `--download DIR` by default and never prints
|
|
121
|
+
a presigned URL implicitly. This intentional safety boundary is why the release
|
|
122
|
+
uses a new pre-1.0 minor version. The explicit `--show-url` escape hatch returns
|
|
123
|
+
a credential-bearing, short-lived URL; do not use it in agent, CI, or shared logs.
|
|
124
|
+
|
|
125
|
+
Not every tool ships a runnable example — `schema <tool> --example` exits non-zero
|
|
126
|
+
(with a clear message) when one isn't available, so a `> job.yaml` redirect never
|
|
127
|
+
silently produces an empty file. Destructive commands (`delete`, `files delete`)
|
|
128
|
+
require `--yes`/`-y` when run non-interactively (piped or `--json`), so an agent
|
|
129
|
+
never removes data without an explicit confirmation.
|
|
100
130
|
|
|
101
131
|
```bash
|
|
102
|
-
tamarind
|
|
132
|
+
tamarind --json jobs | jq '.jobs[] | select(.JobStatus=="Running")'
|
|
103
133
|
```
|
|
104
134
|
|
|
135
|
+
`--json`, `--profile`, and the endpoint/auth overrides are global options, so
|
|
136
|
+
place them before the command name.
|
|
137
|
+
|
|
105
138
|
## Commands
|
|
106
139
|
|
|
107
140
|
| Group | Commands |
|
|
@@ -109,7 +142,7 @@ tamarind jobs --json | jq '.jobs[] | select(.JobStatus=="Running")'
|
|
|
109
142
|
| Discover | `tools`, `modalities`, `functions`, `schema` |
|
|
110
143
|
| Submit | `validate`, `submit`, `batch` |
|
|
111
144
|
| Monitor | `jobs`, `status`, `wait`, `results`, `logs` |
|
|
112
|
-
| Files | `files list`, `files upload`, `files delete`, `files folders` |
|
|
145
|
+
| Files | `files list`, `files stats`, `files upload`, `files delete`, `files folders` |
|
|
113
146
|
| Lifecycle | `cancel`, `delete` |
|
|
114
147
|
| Auth | `auth login`, `auth status`, `auth logout` |
|
|
115
148
|
|
|
@@ -131,3 +164,15 @@ profile to point at staging:
|
|
|
131
164
|
tamarind --profile staging --api-base https://staging.tamarind.bio/api/ auth login
|
|
132
165
|
TAMARIND_PROFILE=staging tamarind tools
|
|
133
166
|
```
|
|
167
|
+
|
|
168
|
+
## Links
|
|
169
|
+
|
|
170
|
+
- [CLI docs](https://app.tamarind.bio/api-docs/cli) — the hosted quickstart and command reference
|
|
171
|
+
- [MCP server](https://app.tamarind.bio/api-docs/mcp-server) — the hosted option for claude.ai, ChatGPT, and other MCP clients
|
|
172
|
+
- [API key](https://app.tamarind.bio/api-docs/api-key) — get your key and review rate limits
|
|
173
|
+
|
|
174
|
+
Questions or need help? Contact us at [info@tamarind.bio](mailto:info@tamarind.bio).
|
|
175
|
+
|
|
176
|
+
## License
|
|
177
|
+
|
|
178
|
+
Licensed under the [Apache License 2.0](LICENSE).
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Tamarind CLI
|
|
2
2
|
|
|
3
|
+
[](LICENSE)
|
|
4
|
+
[](https://www.python.org/downloads/)
|
|
5
|
+
|
|
3
6
|
Command-line interface for the [Tamarind Bio](https://tamarind.bio) platform.
|
|
4
7
|
Discover tools, submit and monitor protein / nucleic-acid / small-molecule jobs,
|
|
5
8
|
and download results — from your terminal, a script, CI, or an AI coding agent
|
|
@@ -15,7 +18,8 @@ server](https://mcp.tamarind.bio) uses, so the two stay in lockstep. See
|
|
|
15
18
|
uv tool install tamarind-cli # or: pipx install tamarind-cli
|
|
16
19
|
```
|
|
17
20
|
|
|
18
|
-
Or with the bootstrap installer (
|
|
21
|
+
Or with the bootstrap installer (uses `uv`, `pipx`, or Python/pip already on
|
|
22
|
+
your `PATH`):
|
|
19
23
|
|
|
20
24
|
```bash
|
|
21
25
|
curl -fsSL https://app.tamarind.bio/cli/install.sh | sh
|
|
@@ -52,11 +56,12 @@ tamarind tools --search boltz
|
|
|
52
56
|
|
|
53
57
|
# 2. Inspect its parameters and grab a runnable example
|
|
54
58
|
tamarind schema boltz
|
|
55
|
-
tamarind schema boltz --example > job.yaml
|
|
59
|
+
tamarind schema boltz --example > job.yaml # most tools ship an example; some don't
|
|
56
60
|
|
|
57
61
|
# 3. Validate, then submit
|
|
58
62
|
tamarind validate boltz --input job.yaml
|
|
59
|
-
tamarind submit
|
|
63
|
+
tamarind submit boltz --input job.yaml --name my-run \
|
|
64
|
+
--wait --timeout 3600 --download ./out
|
|
60
65
|
|
|
61
66
|
# 4. Monitor / fetch
|
|
62
67
|
tamarind jobs
|
|
@@ -75,13 +80,40 @@ tamarind submit boltz \
|
|
|
75
80
|
|
|
76
81
|
## Output for agents
|
|
77
82
|
|
|
78
|
-
Every command emits JSON when stdout is not a TTY, or with `--json`.
|
|
79
|
-
are
|
|
83
|
+
Every command emits JSON when stdout is not a TTY, or with `--json`. Result
|
|
84
|
+
documents are written to stdout. Typed command, transport, and usage errors are
|
|
85
|
+
written to stderr as
|
|
86
|
+
`{"error":{"type":...,"message":...,"exitCode":...,"detail":...}}`; `detail`
|
|
87
|
+
is omitted when unavailable. A domain verdict can deliberately combine a
|
|
88
|
+
nonzero exit with a result document: invalid `validate` output remains on
|
|
89
|
+
stdout with exit 5, and a terminal unsuccessful job remains on stdout with exit
|
|
90
|
+
9 so callers can inspect its status. Exit codes are stable: `0` ok, `1`
|
|
91
|
+
generic failure, `2` usage, `3` auth, `4` not-found, `5` validation, `6`
|
|
92
|
+
rate-limit, `7` timeout (a bounded wait elapsed while the remote job may still
|
|
93
|
+
run), `8` budget/quota exhaustion, and `9` remote job failure.
|
|
94
|
+
|
|
95
|
+
For agent workflows, always put a deadline on blocking commands. `submit --wait`
|
|
96
|
+
and `results --wait` accept `--timeout`; the standalone `wait` command remains
|
|
97
|
+
the easiest way to reattach to a durable job name.
|
|
98
|
+
|
|
99
|
+
Starting in 0.2, `results` requires `--download DIR` by default and never prints
|
|
100
|
+
a presigned URL implicitly. This intentional safety boundary is why the release
|
|
101
|
+
uses a new pre-1.0 minor version. The explicit `--show-url` escape hatch returns
|
|
102
|
+
a credential-bearing, short-lived URL; do not use it in agent, CI, or shared logs.
|
|
103
|
+
|
|
104
|
+
Not every tool ships a runnable example — `schema <tool> --example` exits non-zero
|
|
105
|
+
(with a clear message) when one isn't available, so a `> job.yaml` redirect never
|
|
106
|
+
silently produces an empty file. Destructive commands (`delete`, `files delete`)
|
|
107
|
+
require `--yes`/`-y` when run non-interactively (piped or `--json`), so an agent
|
|
108
|
+
never removes data without an explicit confirmation.
|
|
80
109
|
|
|
81
110
|
```bash
|
|
82
|
-
tamarind
|
|
111
|
+
tamarind --json jobs | jq '.jobs[] | select(.JobStatus=="Running")'
|
|
83
112
|
```
|
|
84
113
|
|
|
114
|
+
`--json`, `--profile`, and the endpoint/auth overrides are global options, so
|
|
115
|
+
place them before the command name.
|
|
116
|
+
|
|
85
117
|
## Commands
|
|
86
118
|
|
|
87
119
|
| Group | Commands |
|
|
@@ -89,7 +121,7 @@ tamarind jobs --json | jq '.jobs[] | select(.JobStatus=="Running")'
|
|
|
89
121
|
| Discover | `tools`, `modalities`, `functions`, `schema` |
|
|
90
122
|
| Submit | `validate`, `submit`, `batch` |
|
|
91
123
|
| Monitor | `jobs`, `status`, `wait`, `results`, `logs` |
|
|
92
|
-
| Files | `files list`, `files upload`, `files delete`, `files folders` |
|
|
124
|
+
| Files | `files list`, `files stats`, `files upload`, `files delete`, `files folders` |
|
|
93
125
|
| Lifecycle | `cancel`, `delete` |
|
|
94
126
|
| Auth | `auth login`, `auth status`, `auth logout` |
|
|
95
127
|
|
|
@@ -111,3 +143,15 @@ profile to point at staging:
|
|
|
111
143
|
tamarind --profile staging --api-base https://staging.tamarind.bio/api/ auth login
|
|
112
144
|
TAMARIND_PROFILE=staging tamarind tools
|
|
113
145
|
```
|
|
146
|
+
|
|
147
|
+
## Links
|
|
148
|
+
|
|
149
|
+
- [CLI docs](https://app.tamarind.bio/api-docs/cli) — the hosted quickstart and command reference
|
|
150
|
+
- [MCP server](https://app.tamarind.bio/api-docs/mcp-server) — the hosted option for claude.ai, ChatGPT, and other MCP clients
|
|
151
|
+
- [API key](https://app.tamarind.bio/api-docs/api-key) — get your key and review rate limits
|
|
152
|
+
|
|
153
|
+
Questions or need help? Contact us at [info@tamarind.bio](mailto:info@tamarind.bio).
|
|
154
|
+
|
|
155
|
+
## License
|
|
156
|
+
|
|
157
|
+
Licensed under the [Apache License 2.0](LICENSE).
|
|
@@ -10,11 +10,15 @@ the CLI and the MCP from drifting as the platform evolves.
|
|
|
10
10
|
### 1. Job/file REST surface — source of truth: the OpenAPI spec
|
|
11
11
|
|
|
12
12
|
`submit`, `validate`, `batch`, `jobs`, `status`/`wait`, `results`, `files`,
|
|
13
|
-
`cancel`, `delete` map
|
|
14
|
-
|
|
15
|
-
[`rest.py`](../src/tamarind/rest.py) is a
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
`cancel`, and `delete` map onto operations in `openapi-mcp.yaml` — the same
|
|
14
|
+
server contract used to generate the MCP surface. The CLI's
|
|
15
|
+
[`rest.py`](../src/tamarind/rest.py) is intentionally a small mapping of those
|
|
16
|
+
operations.
|
|
17
|
+
|
|
18
|
+
The CLI mapping is still client code and can drift. Unit tests cover request and
|
|
19
|
+
response shapes, and authenticated no-spend smoke tests should exercise auth,
|
|
20
|
+
catalog lookup, schema lookup, and validation before a release. Changes to the
|
|
21
|
+
server contract should update the CLI tests in the same change or release train.
|
|
18
22
|
|
|
19
23
|
These calls go directly to the job API (`https://app.tamarind.bio/api/`) with
|
|
20
24
|
the `x-api-key` header.
|
|
@@ -37,10 +41,9 @@ detail that can change without any client change and without drift.
|
|
|
37
41
|
|
|
38
42
|
A from-scratch client in another language would re-encode the request shapes and
|
|
39
43
|
the catalog logic — two copies that drift the moment the platform changes.
|
|
40
|
-
Keeping the CLI
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
remember.
|
|
44
|
+
Keeping the CLI thin and anchored to the same OpenAPI contract (and,
|
|
45
|
+
server-side, the same catalog module) reduces drift and makes it testable. It
|
|
46
|
+
does not eliminate the need for compatibility tests and coordinated releases.
|
|
44
47
|
|
|
45
48
|
## Configuration indirection
|
|
46
49
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "tamarind-cli"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.2.0"
|
|
4
4
|
description = "Command-line interface for the Tamarind Bio platform — submit, monitor, and download protein/molecule jobs from your terminal or an AI agent."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
7
|
-
license = { text = "
|
|
7
|
+
license = { text = "Apache-2.0" }
|
|
8
8
|
authors = [{ name = "Tamarind Bio" }]
|
|
9
9
|
keywords = ["bioinformatics", "protein", "alphafold", "boltz", "cli", "agents"]
|
|
10
10
|
dependencies = [
|
|
@@ -7,7 +7,7 @@ from typing import Optional
|
|
|
7
7
|
import typer
|
|
8
8
|
|
|
9
9
|
from ... import rest
|
|
10
|
-
from ...config import
|
|
10
|
+
from ...config import save_profile
|
|
11
11
|
from ...errors import AuthError
|
|
12
12
|
from ...http import HTTPClient
|
|
13
13
|
from .. import output
|
|
@@ -56,23 +56,19 @@ def login(
|
|
|
56
56
|
|
|
57
57
|
@app.command()
|
|
58
58
|
def status(ctx: typer.Context) -> None:
|
|
59
|
-
"""Show the active profile
|
|
59
|
+
"""Show the active profile and whether its key works."""
|
|
60
60
|
state = ctx.obj
|
|
61
61
|
cfg = state.config()
|
|
62
62
|
verified = cfg.has_key and _check_key(cfg.api_base, cfg.api_key)
|
|
63
63
|
result = {
|
|
64
64
|
"profile": cfg.profile,
|
|
65
|
-
"apiKey": mask_key(cfg.api_key),
|
|
66
65
|
"hasKey": cfg.has_key,
|
|
67
66
|
"verified": verified,
|
|
68
|
-
"apiBase": cfg.api_base,
|
|
69
|
-
"catalogBase": cfg.catalog_base,
|
|
70
67
|
}
|
|
71
68
|
human = (
|
|
72
69
|
f"profile: {cfg.profile}\n"
|
|
73
|
-
f"api key: {
|
|
74
|
-
f"
|
|
75
|
-
f"catalog api: {cfg.catalog_base}"
|
|
70
|
+
f"api key: {'configured' if cfg.has_key else 'not configured'} "
|
|
71
|
+
f"({'verified' if verified else 'not verified'})"
|
|
76
72
|
)
|
|
77
73
|
output.emit(result, state.output, human=human)
|
|
78
74
|
|