envloop-cli 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.
- el_cli/http.py +13 -2
- {envloop_cli-0.1.0.dist-info → envloop_cli-0.1.1.dist-info}/METADATA +8 -4
- {envloop_cli-0.1.0.dist-info → envloop_cli-0.1.1.dist-info}/RECORD +5 -5
- {envloop_cli-0.1.0.dist-info → envloop_cli-0.1.1.dist-info}/WHEEL +0 -0
- {envloop_cli-0.1.0.dist-info → envloop_cli-0.1.1.dist-info}/entry_points.txt +0 -0
el_cli/http.py
CHANGED
|
@@ -7,7 +7,13 @@ import os
|
|
|
7
7
|
import re
|
|
8
8
|
from urllib.error import HTTPError, URLError
|
|
9
9
|
from urllib.parse import quote, urlencode, urlsplit
|
|
10
|
-
from urllib.request import
|
|
10
|
+
from urllib.request import (
|
|
11
|
+
HTTPRedirectHandler,
|
|
12
|
+
ProxyHandler,
|
|
13
|
+
Request,
|
|
14
|
+
build_opener,
|
|
15
|
+
getproxies,
|
|
16
|
+
)
|
|
11
17
|
|
|
12
18
|
|
|
13
19
|
class RemoteError(RuntimeError):
|
|
@@ -50,7 +56,12 @@ class HttpService:
|
|
|
50
56
|
self.headers["X-Workspace-ID"] = workspace
|
|
51
57
|
self.base = base_url.rstrip("/").removesuffix("/v1")
|
|
52
58
|
self.timeout = timeout
|
|
53
|
-
|
|
59
|
+
proxies = getproxies()
|
|
60
|
+
# urllib discovers ALL_PROXY but does not apply it to HTTP(S).
|
|
61
|
+
if proxies.get("all"):
|
|
62
|
+
for scheme in ("http", "https"):
|
|
63
|
+
proxies.setdefault(scheme, proxies["all"])
|
|
64
|
+
self.opener = build_opener(ProxyHandler(proxies), NoRedirect())
|
|
54
65
|
|
|
55
66
|
def request(self, method, path, body=None):
|
|
56
67
|
request = Request(self.base + path,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: envloop-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Standalone el command-line client for EnvLoop
|
|
5
5
|
Project-URL: Repository, https://github.com/EnvLoop/envloop
|
|
6
6
|
Requires-Python: >=3.11
|
|
@@ -8,7 +8,7 @@ Description-Content-Type: text/markdown
|
|
|
8
8
|
|
|
9
9
|
# envloop-cli
|
|
10
10
|
|
|
11
|
-
Independent Python 3.11+ project providing the existing `el` CLI, version 0.1.
|
|
11
|
+
Independent Python 3.11+ project providing the existing `el` CLI, version 0.1.1.
|
|
12
12
|
It builds and installs without the envloop SDK checkout or any third-party runtime
|
|
13
13
|
dependencies. The distribution is `envloop-cli`; its private implementation package
|
|
14
14
|
is `el_cli`, so it does not overwrite the `envloop` SDK namespace.
|
|
@@ -16,12 +16,16 @@ is `el_cli`, so it does not overwrite the `envloop` SDK namespace.
|
|
|
16
16
|
After publication:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
pip install envloop-cli==0.1.
|
|
19
|
+
pip install envloop-cli==0.1.1
|
|
20
20
|
el --help
|
|
21
21
|
el train --help
|
|
22
22
|
el --api-url https://api.envloop.ai --workspace-id YOUR_WORKSPACE train job list
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
HTTP requests use system proxies by default (`HTTPS_PROXY` / `HTTP_PROXY`,
|
|
26
|
+
with `ALL_PROXY` as a fallback); lowercase equivalents and `NO_PROXY` are
|
|
27
|
+
honored. Without a configured proxy, requests connect directly.
|
|
28
|
+
|
|
25
29
|
Set `ENVLOOP_API_KEY` privately in your environment. Existing command names,
|
|
26
30
|
arguments, JSON output, error codes and `envloop/0.1` User-Agent are preserved.
|
|
27
31
|
Local Task/Profile commands still require a separately installed compatible
|
|
@@ -65,7 +69,7 @@ uv run --locked pytest -q --ignore=tests/test_jobs_http.py
|
|
|
65
69
|
uv run --locked ruff check .
|
|
66
70
|
uv build
|
|
67
71
|
python -m venv /tmp/el-cli-clean
|
|
68
|
-
/tmp/el-cli-clean/bin/python -m pip install dist/envloop_cli-0.1.
|
|
72
|
+
/tmp/el-cli-clean/bin/python -m pip install dist/envloop_cli-0.1.1-py3-none-any.whl
|
|
69
73
|
/tmp/el-cli-clean/bin/el --help
|
|
70
74
|
/tmp/el-cli-clean/bin/el train --help
|
|
71
75
|
```
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
el_cli/__init__.py,sha256=tKNGG9G2weyFSMy_qv5r-J7bjxNHfL64DgxOqgMh4Qo,46
|
|
2
2
|
el_cli/cli.py,sha256=IsYeB4AM5Wh4H7iftjuQMs4GLIXhjqaMqVqhQyfgH8Q,12014
|
|
3
3
|
el_cli/client.py,sha256=SBs-S5cmSxmwnchuXK-7_U1YtWLJ4UPF8uOU3ENo-QM,12459
|
|
4
|
-
el_cli/http.py,sha256=
|
|
4
|
+
el_cli/http.py,sha256=tPMNWRlrvCXvxymoQoUQxMggAXB3sfUnx4pXh0hu3YU,5935
|
|
5
5
|
el_cli/train.py,sha256=_cf-zdyesEw7sb7GnS63cwc6SqojhtCyfnOiMslQp3Q,2392
|
|
6
6
|
el_cli/utils/__init__.py,sha256=huB3qPQuKNr3JxfH3Ys09YWFtHiDamCHFsBa4epANgQ,25
|
|
7
7
|
el_cli/utils/logging.py,sha256=rXN0qyxhfGEq4vWXxjwfaczPPZf_7atnOkkBTgNNRPc,1017
|
|
8
|
-
envloop_cli-0.1.
|
|
9
|
-
envloop_cli-0.1.
|
|
10
|
-
envloop_cli-0.1.
|
|
11
|
-
envloop_cli-0.1.
|
|
8
|
+
envloop_cli-0.1.1.dist-info/METADATA,sha256=hJoeyYUka3JurQD39rKRZb6DRVFdpKfabjouBH4mErE,3590
|
|
9
|
+
envloop_cli-0.1.1.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
10
|
+
envloop_cli-0.1.1.dist-info/entry_points.txt,sha256=Sbu0AsML0ujuZxVXKihrgpEchXgmiCpKrgiLzTlfg3s,39
|
|
11
|
+
envloop_cli-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|