boxd 0.2.6.dev398__tar.gz → 0.2.6.dev400__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.
- {boxd-0.2.6.dev398/src/boxd.egg-info → boxd-0.2.6.dev400}/PKG-INFO +2 -2
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/README.md +1 -1
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/pyproject.toml +1 -1
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/_client.py +1 -1
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/_urls.py +4 -4
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400/src/boxd.egg-info}/PKG-INFO +2 -2
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/tests/test_transport.py +1 -1
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/LICENSE +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/setup.cfg +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/__init__.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/_credentials.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/_generated/__init__.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/_generated/api_pb2.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/_generated/api_pb2_grpc.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/_mappers.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/_requests.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/_streaming.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/_transport.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/_version_check.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/errors.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/models.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/resources/__init__.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/resources/account.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/resources/credentials.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/resources/disks.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/resources/domains.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/resources/machines.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/resources/orgs.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/resources/snapshots.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd/resources/vars.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd.egg-info/SOURCES.txt +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd.egg-info/dependency_links.txt +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd.egg-info/requires.txt +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/src/boxd.egg-info/top_level.txt +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/tests/test_credentials.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/tests/test_mappers.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/tests/test_namespaces.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/tests/test_requests.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/tests/test_streaming.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/tests/test_urls.py +0 -0
- {boxd-0.2.6.dev398 → boxd-0.2.6.dev400}/tests/test_version_check.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: boxd
|
|
3
|
-
Version: 0.2.6.
|
|
3
|
+
Version: 0.2.6.dev400
|
|
4
4
|
Summary: Python SDK for the boxd cloud VM platform
|
|
5
5
|
Author: Azin
|
|
6
6
|
License-Expression: MIT
|
|
@@ -77,7 +77,7 @@ Every argument is keyword-only.
|
|
|
77
77
|
|---|---|---|
|
|
78
78
|
| `api_key` | `BOXD_API_KEY` | — |
|
|
79
79
|
| `token` | `BOXD_TOKEN` | — |
|
|
80
|
-
| `base_url` | `BOXD_BASE_URL` (or the deprecated `BOXD_API_URL`) | `
|
|
80
|
+
| `base_url` | `BOXD_BASE_URL` (or the deprecated `BOXD_API_URL`) | `https://boxd.sh:9443` |
|
|
81
81
|
| `timeout` | — | 60.0 seconds |
|
|
82
82
|
| `max_retries` | — | 2 |
|
|
83
83
|
|
|
@@ -45,7 +45,7 @@ Every argument is keyword-only.
|
|
|
45
45
|
|---|---|---|
|
|
46
46
|
| `api_key` | `BOXD_API_KEY` | — |
|
|
47
47
|
| `token` | `BOXD_TOKEN` | — |
|
|
48
|
-
| `base_url` | `BOXD_BASE_URL` (or the deprecated `BOXD_API_URL`) | `
|
|
48
|
+
| `base_url` | `BOXD_BASE_URL` (or the deprecated `BOXD_API_URL`) | `https://boxd.sh:9443` |
|
|
49
49
|
| `timeout` | — | 60.0 seconds |
|
|
50
50
|
| `max_retries` | — | 2 |
|
|
51
51
|
|
|
@@ -30,7 +30,7 @@ class Boxd:
|
|
|
30
30
|
|
|
31
31
|
boxd = Boxd() # production
|
|
32
32
|
boxd = Boxd(api_key="bxd_...")
|
|
33
|
-
boxd = Boxd(base_url="
|
|
33
|
+
boxd = Boxd(base_url="https://boxd-stg.sh:9443") # any other cluster
|
|
34
34
|
|
|
35
35
|
Args:
|
|
36
36
|
api_key: A `bxd_` API key. Defaults to `BOXD_API_KEY`.
|
|
@@ -11,10 +11,10 @@ import ipaddress
|
|
|
11
11
|
import os
|
|
12
12
|
from typing import NamedTuple
|
|
13
13
|
|
|
14
|
-
# gRPC front door.
|
|
15
|
-
#
|
|
16
|
-
#
|
|
17
|
-
DEFAULT_BASE_URL = "
|
|
14
|
+
# gRPC front door, over TLS. The proxy still accepts plain HTTP/2 on the same
|
|
15
|
+
# port for older clients, so an explicit http:// base_url keeps working against
|
|
16
|
+
# any cluster (see `crates/boxd-proxy/src/api_transport.rs`).
|
|
17
|
+
DEFAULT_BASE_URL = "https://boxd.sh:9443"
|
|
18
18
|
|
|
19
19
|
EXCHANGE_PATH = "/api/v1/auth/token"
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: boxd
|
|
3
|
-
Version: 0.2.6.
|
|
3
|
+
Version: 0.2.6.dev400
|
|
4
4
|
Summary: Python SDK for the boxd cloud VM platform
|
|
5
5
|
Author: Azin
|
|
6
6
|
License-Expression: MIT
|
|
@@ -77,7 +77,7 @@ Every argument is keyword-only.
|
|
|
77
77
|
|---|---|---|
|
|
78
78
|
| `api_key` | `BOXD_API_KEY` | — |
|
|
79
79
|
| `token` | `BOXD_TOKEN` | — |
|
|
80
|
-
| `base_url` | `BOXD_BASE_URL` (or the deprecated `BOXD_API_URL`) | `
|
|
80
|
+
| `base_url` | `BOXD_BASE_URL` (or the deprecated `BOXD_API_URL`) | `https://boxd.sh:9443` |
|
|
81
81
|
| `timeout` | — | 60.0 seconds |
|
|
82
82
|
| `max_retries` | — | 2 |
|
|
83
83
|
|
|
@@ -192,7 +192,7 @@ def test_production_is_the_last_resort():
|
|
|
192
192
|
t = SyncTransport(
|
|
193
193
|
base_url=None, credentials=FakeCredentials(), timeout=1.0, max_retries=2
|
|
194
194
|
)
|
|
195
|
-
assert t.base_url == "
|
|
195
|
+
assert t.base_url == "https://boxd.sh:9443"
|
|
196
196
|
|
|
197
197
|
|
|
198
198
|
# --- error mapping ---
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|