openapi2cli 0.1.0__py3-none-any.whl → 0.1.1__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.
- {openapi2cli-0.1.0.dist-info → openapi2cli-0.1.1.dist-info}/METADATA +45 -4
- {openapi2cli-0.1.0.dist-info → openapi2cli-0.1.1.dist-info}/RECORD +5 -5
- {openapi2cli-0.1.0.dist-info → openapi2cli-0.1.1.dist-info}/WHEEL +1 -1
- {openapi2cli-0.1.0.dist-info → openapi2cli-0.1.1.dist-info}/entry_points.txt +0 -0
- {openapi2cli-0.1.0.dist-info → openapi2cli-0.1.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openapi2cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Generate CLI tools from OpenAPI specs — built for AI agents
|
|
5
5
|
Project-URL: Homepage, https://github.com/Olafs-World/openapi2cli
|
|
6
6
|
Project-URL: Repository, https://github.com/Olafs-World/openapi2cli
|
|
@@ -31,6 +31,8 @@ Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
|
31
31
|
Requires-Dist: ruff>=0.1; extra == 'dev'
|
|
32
32
|
Description-Content-Type: text/markdown
|
|
33
33
|
|
|
34
|
+

|
|
35
|
+
|
|
34
36
|
# openapi2cli 🔧
|
|
35
37
|
|
|
36
38
|
[](https://github.com/Olafs-World/openapi2cli/actions/workflows/ci.yml)
|
|
@@ -62,6 +64,39 @@ AI agents are great at executing CLI commands. They're less great at crafting HT
|
|
|
62
64
|
|
|
63
65
|
## Installation
|
|
64
66
|
|
|
67
|
+
### One-liner
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
curl -fsSL https://raw.githubusercontent.com/Olafs-World/openapi2cli/main/install.sh | bash
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Quick run (no install)
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
uvx openapi2cli generate https://petstore3.swagger.io/api/v3/openapi.json --name petstore
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Install as CLI tool
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
uv tool install openapi2cli
|
|
83
|
+
openapi2cli generate https://httpbin.org/spec.json --name httpbin
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Add to a project
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
uv add openapi2cli
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Install as OpenClaw skill
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
clawhub install openapi2cli
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Or with pip:
|
|
99
|
+
|
|
65
100
|
```bash
|
|
66
101
|
pip install openapi2cli
|
|
67
102
|
```
|
|
@@ -231,13 +266,13 @@ git clone https://github.com/Olafs-World/openapi2cli.git
|
|
|
231
266
|
cd openapi2cli
|
|
232
267
|
|
|
233
268
|
# Install dev dependencies
|
|
234
|
-
|
|
269
|
+
uv sync --extra dev
|
|
235
270
|
|
|
236
271
|
# Run tests
|
|
237
|
-
pytest tests/ -v
|
|
272
|
+
uv run pytest tests/ -v
|
|
238
273
|
|
|
239
274
|
# Run only unit tests (no API calls)
|
|
240
|
-
pytest tests/ -v -m "not integration"
|
|
275
|
+
uv run pytest tests/ -v -m "not integration"
|
|
241
276
|
```
|
|
242
277
|
|
|
243
278
|
## How It Works
|
|
@@ -256,6 +291,12 @@ The generated CLI uses `requests` for HTTP and optionally `rich` for pretty outp
|
|
|
256
291
|
- Complex nested request bodies may need `--data` JSON flag
|
|
257
292
|
- OAuth2 flows not fully implemented (use `--token` with pre-obtained tokens)
|
|
258
293
|
|
|
294
|
+
## Links
|
|
295
|
+
|
|
296
|
+
- [PyPI](https://pypi.org/project/openapi2cli/)
|
|
297
|
+
- [GitHub](https://github.com/Olafs-World/openapi2cli)
|
|
298
|
+
- [ClawHub Skill](https://clawhub.com/skills/openapi2cli)
|
|
299
|
+
|
|
259
300
|
## License
|
|
260
301
|
|
|
261
302
|
MIT © [Olaf](https://olafs-world.vercel.app)
|
|
@@ -4,8 +4,8 @@ openapi2cli/cli.py,sha256=szav-4w2LMlogvTBfDKilPerCvrnyZCDRSlZpqHSZMg,3660
|
|
|
4
4
|
openapi2cli/generator.py,sha256=IhVSCHEh6KfNRmaeK8_xU8ZhExU7I0Ok0RJj-6XcnBI,13476
|
|
5
5
|
openapi2cli/parser.py,sha256=02q24MUBKss-1CDJ0vvI5qwDlio3FBpV7PbtOpa_Qo4,10155
|
|
6
6
|
openapi2cli/runtime.py,sha256=5Vo6pt-KShC2MjX63BvfJ-e4TW670owbDvMVvbrf2Zk,4877
|
|
7
|
-
openapi2cli-0.1.
|
|
8
|
-
openapi2cli-0.1.
|
|
9
|
-
openapi2cli-0.1.
|
|
10
|
-
openapi2cli-0.1.
|
|
11
|
-
openapi2cli-0.1.
|
|
7
|
+
openapi2cli-0.1.1.dist-info/METADATA,sha256=08EbHbOpIeBwI-eIAPWP1JqbJRWSo1-Jmpp6yoEyVwY,7581
|
|
8
|
+
openapi2cli-0.1.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
9
|
+
openapi2cli-0.1.1.dist-info/entry_points.txt,sha256=PYoT4cTlCmdI6m1-yOM58pA2rRpkt667UKBaq386tEk,53
|
|
10
|
+
openapi2cli-0.1.1.dist-info/licenses/LICENSE,sha256=R6wp-QnWz5hcOS9xs_DAAzChQm-ir9s5IQyVsVRXzz4,1061
|
|
11
|
+
openapi2cli-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|