eightstatecli 0.4.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.
@@ -0,0 +1,177 @@
1
+ Metadata-Version: 2.4
2
+ Name: eightstatecli
3
+ Version: 0.4.0
4
+ Summary: Eightstate CLI — unified AI services from the command line
5
+ Project-URL: Homepage, https://github.com/eight-state/eightstate
6
+ Project-URL: Repository, https://github.com/eight-state/eightstate
7
+ Author-email: Eightstate <hello@eightstate.co>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: ai,cli,image-generation,research,transcription,web-search
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Software Development :: Libraries
17
+ Classifier: Topic :: Utilities
18
+ Requires-Python: >=3.10
19
+ Requires-Dist: httpx>=0.24.0
20
+ Requires-Dist: openai>=1.0.0
21
+ Description-Content-Type: text/markdown
22
+
23
+ # escli
24
+
25
+ ```
26
+ ┌─────────────────────────────────┐
27
+ │ escli v0.3.1 │
28
+ │ eightstate command line │
29
+ └─────────────────────────────────┘
30
+ ```
31
+
32
+ AI services from the command line. Generate images, edit photos, and more. Works for humans and agents.
33
+
34
+ ## Install
35
+
36
+ ### macOS / Linux
37
+
38
+ ```bash
39
+ curl -fsSL https://raw.githubusercontent.com/eight-state/eightstate/main/cli/install.sh | bash
40
+ ```
41
+
42
+ ### Windows
43
+
44
+ ```powershell
45
+ irm https://raw.githubusercontent.com/eight-state/eightstate/main/cli/install.ps1 | iex
46
+ ```
47
+
48
+ ### Manual install (any platform)
49
+
50
+ ```bash
51
+ # requires uv (https://docs.astral.sh/uv)
52
+ uv tool install git+https://github.com/eight-state/eightstate#subdirectory=cli
53
+
54
+ # or with pip
55
+ pip install git+https://github.com/eight-state/eightstate#subdirectory=cli
56
+ ```
57
+
58
+ ## Quickstart
59
+
60
+ ```bash
61
+ # 1. authenticate
62
+ escli auth login
63
+
64
+ # 2. generate an image
65
+ escli image gen "a sunset over the ocean" --open
66
+
67
+ # 3. list models
68
+ escli models
69
+ ```
70
+
71
+ ## Usage
72
+
73
+ ### Image Generation
74
+
75
+ ```bash
76
+ escli i g "a mountain landscape" # square, auto-named
77
+ escli i g "app mockup" -s portrait -q high --open # portrait, opens after
78
+ escli i g "logo design" -s sq -o logo.png # named output
79
+ escli i g "wallpaper" -s wide -f webp # landscape webp
80
+ escli i g "product photo" -q high -d ./output/ # to directory
81
+ ```
82
+
83
+ ### Image Editing
84
+
85
+ ```bash
86
+ escli i e "make it snow" -i summer.jpg --open
87
+ escli i e "repaint as oil painting" -i photo.jpg -q high -o painted.png
88
+ escli i e "remove the background" -i product.png
89
+ ```
90
+
91
+ ### Sizes
92
+
93
+ | Alias | Dimensions | Use case |
94
+ |-------|-----------|----------|
95
+ | `square`, `sq` | 1024x1024 | Logos, icons, social posts |
96
+ | `landscape`, `wide`, `ls` | 1536x1024 | Wallpapers, banners, headers |
97
+ | `portrait`, `tall`, `port` | 1024x1536 | Phone mockups, posters, stories |
98
+
99
+ ### Quality
100
+
101
+ | Level | Speed | Detail |
102
+ |-------|-------|--------|
103
+ | `low` | ~15s | Fast drafts |
104
+ | `medium` | ~25s | Balanced |
105
+ | `high` | ~40s | Best quality |
106
+
107
+ ### Auth Profiles
108
+
109
+ ```bash
110
+ escli auth login # interactive
111
+ escli auth login --key sk-xxx # non-interactive
112
+ escli auth login --key sk-xxx -p work # named profile
113
+ escli auth status # show current (alias: whoami)
114
+ escli auth profiles # list all (alias: ls)
115
+ escli auth switch work # switch profile (alias: use)
116
+ escli auth logout # remove current
117
+ escli auth logout --all # remove everything
118
+ ```
119
+
120
+ ## Agent / CI Usage
121
+
122
+ All commands support `--json` for structured output and `--quiet` for zero stderr noise:
123
+
124
+ ```bash
125
+ # generate with pure JSON output
126
+ escli --json --quiet i g "a logo" -s sq -o /tmp/logo.png
127
+
128
+ # returns:
129
+ # {"success": true, "path": "/abs/path/logo.png", "size_bytes": 123456,
130
+ # "elapsed_seconds": 18.4, "prompt": "a logo", "model": "gpt-image-2",
131
+ # "image_size": "1024x1024", "quality": "high"}
132
+
133
+ # auth via env var (no login needed)
134
+ ESCLI_API_KEY=sk-xxx escli --json models
135
+
136
+ # non-interactive login for CI
137
+ escli auth login --key $API_KEY --profile ci
138
+
139
+ # edit with JSON output
140
+ escli --json --quiet i e "make it blue" -i input.png -o output.png
141
+ # {"success": true, "path": "/abs/path/output.png", "input": "/abs/path/input.png", ...}
142
+ ```
143
+
144
+ **Exit codes:** `0` success, `1` error, `2` usage
145
+
146
+ **Error JSON:** `{"success": false, "error": "message"}`
147
+
148
+ ## Shortcuts
149
+
150
+ | Short | Full |
151
+ |-------|------|
152
+ | `escli i g` | `escli image generate` |
153
+ | `escli i e` | `escli image edit` |
154
+ | `escli a` | `escli auth` |
155
+ | `escli m` | `escli models` |
156
+
157
+ ## Environment Variables
158
+
159
+ | Variable | Description | Default |
160
+ |----------|-------------|---------|
161
+ | `ESCLI_API_KEY` | API key (overrides profile) | |
162
+ | `ESCLI_BASE_URL` | API endpoint | `https://ai.eightstate.co/v1` |
163
+ | `ESCLI_IMAGE_MODEL` | Default model | `gpt-image-2` |
164
+ | `ESCLI_IMAGE_QUALITY` | Default quality | `high` |
165
+ | `ESCLI_IMAGE_SIZE` | Default size | `1024x1024` |
166
+ | `ESCLI_IMAGE_FORMAT` | Default format | `png` |
167
+ | `ESCLI_OUT_DIR` | Output directory | `.` |
168
+ | `ESCLI_TIMEOUT` | Timeout seconds | `300` |
169
+ | `ESCLI_CONFIG_DIR` | Config directory | `~/.escli` |
170
+
171
+ ## Config
172
+
173
+ Credentials stored at `~/.escli/config.json` with `600` permissions (owner-only read/write).
174
+
175
+ ## License
176
+
177
+ MIT
@@ -0,0 +1,18 @@
1
+ escli/__init__.py,sha256=TMNPjxiy_WruJ-yhvUa1zlDqkjrt7qajzE-WUKQC4FM,38923
2
+ escli/__main__.py,sha256=ufE88bxvFQSSv3dJ06wkkcHvK5WG-1Xm_qxDfZgu99w,88
3
+ escli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ escli/commands/audio.py,sha256=4P06Th5LThqypmz8w4ZzB0-bda1yX0w3Ci1pISAjQ7M,16310
5
+ escli/commands/docs.py,sha256=53xUmBFChY6NOY4GcEI1yhn2AO14lBi3fbuxicdP9R0,12698
6
+ escli/commands/research.py,sha256=aGx9xhcyNouocSRJ-a8m4bWnoGlGeh7-YFq7QQFUpWU,24698
7
+ escli/commands/search.py,sha256=Ur4LwWXB9pAr1igoOgXLPMceJ5A-KPxE83Z3NhvL6dY,8762
8
+ escli/commands/social.py,sha256=G7F8t594dHn9azW8mZplabuQXtjNA4OWssPD66WQmHk,8529
9
+ escli/commands/usage.py,sha256=1VW1qQz4kYFkIqzJ4gwDkuYkuPblTd7aAJ96ltZHqiY,14704
10
+ escli/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ escli/services/credentials.py,sha256=WT5UFkpufbXe8IATLIMmYKrp7YSm8_D2qg45KzqzXZk,3435
12
+ escli/services/describe.py,sha256=Ngj53btgaKFb9PEmvS5mqihgQmSJqF05y_dcobKspfI,6610
13
+ escli/services/output.py,sha256=13dUZM9K9dA-n3R_vzWMzKhApASwZDrhytOQeHFk9m8,5280
14
+ eightstatecli-0.4.0.dist-info/METADATA,sha256=BtcS9CQDgoHqeoLSdi1VGAs57chRpd82m_W_wVIh4EY,5278
15
+ eightstatecli-0.4.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
16
+ eightstatecli-0.4.0.dist-info/entry_points.txt,sha256=LnY9rCVY3LxmAdJbpKcL2MC4Q8IKvh8P37BQAeu3Vfc,37
17
+ eightstatecli-0.4.0.dist-info/licenses/LICENSE,sha256=X6CJSLFXtYOTbyH5TGyT9DYB0Bu-i5SyrWgTZGdIn9E,1067
18
+ eightstatecli-0.4.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.29.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ escli = escli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Eightstate
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.