pethost 0.2.0__tar.gz → 0.2.2__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.
- {pethost-0.2.0 → pethost-0.2.2}/PKG-INFO +1 -1
- {pethost-0.2.0 → pethost-0.2.2}/pethost/_async_client.py +14 -7
- {pethost-0.2.0 → pethost-0.2.2}/pethost/_client.py +14 -7
- {pethost-0.2.0 → pethost-0.2.2}/pethost/_version.py +1 -1
- {pethost-0.2.0 → pethost-0.2.2}/pethost/_wire/v1/panel_connect.py +56 -28
- {pethost-0.2.0 → pethost-0.2.2}/pyproject.toml +1 -1
- {pethost-0.2.0 → pethost-0.2.2}/.gitignore +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/LICENSE +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/README.md +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/pethost/__init__.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/pethost/_convert.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/pethost/_errors.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/pethost/_runtime.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/pethost/_types.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/pethost/_wire/__init__.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/pethost/_wire/v1/__init__.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/pethost/_wire/v1/panel_pb.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/pethost/py.typed +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/__init__.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/api.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/fake.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/harness.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/samples.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/test_clients.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/test_declarations.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/test_errors.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/test_json.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/test_messages.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/test_runtime.py +0 -0
- {pethost-0.2.0 → pethost-0.2.2}/tests/test_streams.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pethost
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: The Python SDK for Pethost, hosting for Docker Compose projects: deploy, read logs and requests, run commands and move files through its API.
|
|
5
5
|
Project-URL: Homepage, https://pethost.dev
|
|
6
6
|
Project-URL: Documentation, https://pethost.dev/docs/api/
|
|
@@ -418,17 +418,24 @@ class AsyncPethost:
|
|
|
418
418
|
|
|
419
419
|
The file runs as written, or is refused: the machine corrects nothing in it, in any version.
|
|
420
420
|
Refused, each violation saying what to write instead:
|
|
421
|
-
-
|
|
422
|
-
volume or network: remove them.
|
|
423
|
-
- a writable bind mount (`.:/app
|
|
424
|
-
volume (`data:/data`, with `data:` under `volumes:`).
|
|
421
|
+
- a volume's `name`; `driver` (but Docker's default, `local` or `bridge`), `driver_opts`,
|
|
422
|
+
`external` or `ipam` of a volume or network: remove them.
|
|
423
|
+
- a writable bind mount of the whole project (`.:/app`): add `:ro`.
|
|
425
424
|
- a volume with no name (`- /data`): name it. Below a bind mount it is allowed, as scratch
|
|
426
425
|
space (`/app/node_modules`).
|
|
427
426
|
- `env_file` naming a file the files lack: write it, empty if it sets nothing, or give the
|
|
428
427
|
entry `required: false`.
|
|
429
|
-
- `privileged`, `cap_add`, `security_opt
|
|
430
|
-
path outside the directory; more than one replica;
|
|
431
|
-
git URL as a build context.
|
|
428
|
+
- `privileged`, `cap_add`, `security_opt` (but `no-new-privileges`), `devices`, host
|
|
429
|
+
namespaces, the Docker socket, a path outside the directory; more than one replica;
|
|
430
|
+
`include` or `extends` from a URL; a git URL as a build context.
|
|
431
|
+
Not refused, and read the machine's way: a `container_name` and a network's `name` name
|
|
432
|
+
nothing on the machine, so two projects may write the same (the project's services still
|
|
433
|
+
reach the container by it); a service with `profiles` runs only while `COMPOSE_PROFILES`
|
|
434
|
+
in /.env names one of them, and is no service of the project until then; a bind mount of a
|
|
435
|
+
folder without `:ro` (`./data:/data`) mounts the project's volume named after the path
|
|
436
|
+
(`data`), which deploys keep and backups hold, with none of the version's files in it, so
|
|
437
|
+
project files take `:ro`, and data is plainer in a named volume (`data:/data`, with `data:`
|
|
438
|
+
under `volumes:`); a bind mount of a file without `:ro` mounts it read-only.
|
|
432
439
|
An image's VOLUME that no mount covers fails the deploy (UNCOVERED_IMAGE_VOLUME): mount a
|
|
433
440
|
named volume or a tmpfs there.
|
|
434
441
|
|
|
@@ -414,17 +414,24 @@ class Pethost:
|
|
|
414
414
|
|
|
415
415
|
The file runs as written, or is refused: the machine corrects nothing in it, in any version.
|
|
416
416
|
Refused, each violation saying what to write instead:
|
|
417
|
-
-
|
|
418
|
-
volume or network: remove them.
|
|
419
|
-
- a writable bind mount (`.:/app
|
|
420
|
-
volume (`data:/data`, with `data:` under `volumes:`).
|
|
417
|
+
- a volume's `name`; `driver` (but Docker's default, `local` or `bridge`), `driver_opts`,
|
|
418
|
+
`external` or `ipam` of a volume or network: remove them.
|
|
419
|
+
- a writable bind mount of the whole project (`.:/app`): add `:ro`.
|
|
421
420
|
- a volume with no name (`- /data`): name it. Below a bind mount it is allowed, as scratch
|
|
422
421
|
space (`/app/node_modules`).
|
|
423
422
|
- `env_file` naming a file the files lack: write it, empty if it sets nothing, or give the
|
|
424
423
|
entry `required: false`.
|
|
425
|
-
- `privileged`, `cap_add`, `security_opt
|
|
426
|
-
path outside the directory; more than one replica;
|
|
427
|
-
git URL as a build context.
|
|
424
|
+
- `privileged`, `cap_add`, `security_opt` (but `no-new-privileges`), `devices`, host
|
|
425
|
+
namespaces, the Docker socket, a path outside the directory; more than one replica;
|
|
426
|
+
`include` or `extends` from a URL; a git URL as a build context.
|
|
427
|
+
Not refused, and read the machine's way: a `container_name` and a network's `name` name
|
|
428
|
+
nothing on the machine, so two projects may write the same (the project's services still
|
|
429
|
+
reach the container by it); a service with `profiles` runs only while `COMPOSE_PROFILES`
|
|
430
|
+
in /.env names one of them, and is no service of the project until then; a bind mount of a
|
|
431
|
+
folder without `:ro` (`./data:/data`) mounts the project's volume named after the path
|
|
432
|
+
(`data`), which deploys keep and backups hold, with none of the version's files in it, so
|
|
433
|
+
project files take `:ro`, and data is plainer in a named volume (`data:/data`, with `data:`
|
|
434
|
+
under `volumes:`); a bind mount of a file without `:ro` mounts it read-only.
|
|
428
435
|
An image's VOLUME that no mount covers fails the deploy (UNCOVERED_IMAGE_VOLUME): mount a
|
|
429
436
|
named volume or a tmpfs there.
|
|
430
437
|
|
|
@@ -103,17 +103,24 @@ class PanelService(Protocol):
|
|
|
103
103
|
|
|
104
104
|
The file runs as written, or is refused: the machine corrects nothing in it, in any version.
|
|
105
105
|
Refused, each violation saying what to write instead:
|
|
106
|
-
-
|
|
107
|
-
volume or network: remove them.
|
|
108
|
-
- a writable bind mount (`.:/app
|
|
109
|
-
volume (`data:/data`, with `data:` under `volumes:`).
|
|
106
|
+
- a volume's `name`; `driver` (but Docker's default, `local` or `bridge`), `driver_opts`,
|
|
107
|
+
`external` or `ipam` of a volume or network: remove them.
|
|
108
|
+
- a writable bind mount of the whole project (`.:/app`): add `:ro`.
|
|
110
109
|
- a volume with no name (`- /data`): name it. Below a bind mount it is allowed, as scratch
|
|
111
110
|
space (`/app/node_modules`).
|
|
112
111
|
- `env_file` naming a file the files lack: write it, empty if it sets nothing, or give the
|
|
113
112
|
entry `required: false`.
|
|
114
|
-
- `privileged`, `cap_add`, `security_opt
|
|
115
|
-
path outside the directory; more than one replica;
|
|
116
|
-
git URL as a build context.
|
|
113
|
+
- `privileged`, `cap_add`, `security_opt` (but `no-new-privileges`), `devices`, host
|
|
114
|
+
namespaces, the Docker socket, a path outside the directory; more than one replica;
|
|
115
|
+
`include` or `extends` from a URL; a git URL as a build context.
|
|
116
|
+
Not refused, and read the machine's way: a `container_name` and a network's `name` name
|
|
117
|
+
nothing on the machine, so two projects may write the same (the project's services still
|
|
118
|
+
reach the container by it); a service with `profiles` runs only while `COMPOSE_PROFILES`
|
|
119
|
+
in /.env names one of them, and is no service of the project until then; a bind mount of a
|
|
120
|
+
folder without `:ro` (`./data:/data`) mounts the project's volume named after the path
|
|
121
|
+
(`data`), which deploys keep and backups hold, with none of the version's files in it, so
|
|
122
|
+
project files take `:ro`, and data is plainer in a named volume (`data:/data`, with `data:`
|
|
123
|
+
under `volumes:`); a bind mount of a file without `:ro` mounts it read-only.
|
|
117
124
|
An image's VOLUME that no mount covers fails the deploy (UNCOVERED_IMAGE_VOLUME): mount a
|
|
118
125
|
named volume or a tmpfs there.
|
|
119
126
|
|
|
@@ -628,17 +635,24 @@ class PanelServiceClient(ConnectClient):
|
|
|
628
635
|
|
|
629
636
|
The file runs as written, or is refused: the machine corrects nothing in it, in any version.
|
|
630
637
|
Refused, each violation saying what to write instead:
|
|
631
|
-
-
|
|
632
|
-
volume or network: remove them.
|
|
633
|
-
- a writable bind mount (`.:/app
|
|
634
|
-
volume (`data:/data`, with `data:` under `volumes:`).
|
|
638
|
+
- a volume's `name`; `driver` (but Docker's default, `local` or `bridge`), `driver_opts`,
|
|
639
|
+
`external` or `ipam` of a volume or network: remove them.
|
|
640
|
+
- a writable bind mount of the whole project (`.:/app`): add `:ro`.
|
|
635
641
|
- a volume with no name (`- /data`): name it. Below a bind mount it is allowed, as scratch
|
|
636
642
|
space (`/app/node_modules`).
|
|
637
643
|
- `env_file` naming a file the files lack: write it, empty if it sets nothing, or give the
|
|
638
644
|
entry `required: false`.
|
|
639
|
-
- `privileged`, `cap_add`, `security_opt
|
|
640
|
-
path outside the directory; more than one replica;
|
|
641
|
-
git URL as a build context.
|
|
645
|
+
- `privileged`, `cap_add`, `security_opt` (but `no-new-privileges`), `devices`, host
|
|
646
|
+
namespaces, the Docker socket, a path outside the directory; more than one replica;
|
|
647
|
+
`include` or `extends` from a URL; a git URL as a build context.
|
|
648
|
+
Not refused, and read the machine's way: a `container_name` and a network's `name` name
|
|
649
|
+
nothing on the machine, so two projects may write the same (the project's services still
|
|
650
|
+
reach the container by it); a service with `profiles` runs only while `COMPOSE_PROFILES`
|
|
651
|
+
in /.env names one of them, and is no service of the project until then; a bind mount of a
|
|
652
|
+
folder without `:ro` (`./data:/data`) mounts the project's volume named after the path
|
|
653
|
+
(`data`), which deploys keep and backups hold, with none of the version's files in it, so
|
|
654
|
+
project files take `:ro`, and data is plainer in a named volume (`data:/data`, with `data:`
|
|
655
|
+
under `volumes:`); a bind mount of a file without `:ro` mounts it read-only.
|
|
642
656
|
An image's VOLUME that no mount covers fails the deploy (UNCOVERED_IMAGE_VOLUME): mount a
|
|
643
657
|
named volume or a tmpfs there.
|
|
644
658
|
|
|
@@ -1142,17 +1156,24 @@ class PanelServiceSync(Protocol):
|
|
|
1142
1156
|
|
|
1143
1157
|
The file runs as written, or is refused: the machine corrects nothing in it, in any version.
|
|
1144
1158
|
Refused, each violation saying what to write instead:
|
|
1145
|
-
-
|
|
1146
|
-
volume or network: remove them.
|
|
1147
|
-
- a writable bind mount (`.:/app
|
|
1148
|
-
volume (`data:/data`, with `data:` under `volumes:`).
|
|
1159
|
+
- a volume's `name`; `driver` (but Docker's default, `local` or `bridge`), `driver_opts`,
|
|
1160
|
+
`external` or `ipam` of a volume or network: remove them.
|
|
1161
|
+
- a writable bind mount of the whole project (`.:/app`): add `:ro`.
|
|
1149
1162
|
- a volume with no name (`- /data`): name it. Below a bind mount it is allowed, as scratch
|
|
1150
1163
|
space (`/app/node_modules`).
|
|
1151
1164
|
- `env_file` naming a file the files lack: write it, empty if it sets nothing, or give the
|
|
1152
1165
|
entry `required: false`.
|
|
1153
|
-
- `privileged`, `cap_add`, `security_opt
|
|
1154
|
-
path outside the directory; more than one replica;
|
|
1155
|
-
git URL as a build context.
|
|
1166
|
+
- `privileged`, `cap_add`, `security_opt` (but `no-new-privileges`), `devices`, host
|
|
1167
|
+
namespaces, the Docker socket, a path outside the directory; more than one replica;
|
|
1168
|
+
`include` or `extends` from a URL; a git URL as a build context.
|
|
1169
|
+
Not refused, and read the machine's way: a `container_name` and a network's `name` name
|
|
1170
|
+
nothing on the machine, so two projects may write the same (the project's services still
|
|
1171
|
+
reach the container by it); a service with `profiles` runs only while `COMPOSE_PROFILES`
|
|
1172
|
+
in /.env names one of them, and is no service of the project until then; a bind mount of a
|
|
1173
|
+
folder without `:ro` (`./data:/data`) mounts the project's volume named after the path
|
|
1174
|
+
(`data`), which deploys keep and backups hold, with none of the version's files in it, so
|
|
1175
|
+
project files take `:ro`, and data is plainer in a named volume (`data:/data`, with `data:`
|
|
1176
|
+
under `volumes:`); a bind mount of a file without `:ro` mounts it read-only.
|
|
1156
1177
|
An image's VOLUME that no mount covers fails the deploy (UNCOVERED_IMAGE_VOLUME): mount a
|
|
1157
1178
|
named volume or a tmpfs there.
|
|
1158
1179
|
|
|
@@ -1662,17 +1683,24 @@ class PanelServiceClientSync(ConnectClientSync):
|
|
|
1662
1683
|
|
|
1663
1684
|
The file runs as written, or is refused: the machine corrects nothing in it, in any version.
|
|
1664
1685
|
Refused, each violation saying what to write instead:
|
|
1665
|
-
-
|
|
1666
|
-
volume or network: remove them.
|
|
1667
|
-
- a writable bind mount (`.:/app
|
|
1668
|
-
volume (`data:/data`, with `data:` under `volumes:`).
|
|
1686
|
+
- a volume's `name`; `driver` (but Docker's default, `local` or `bridge`), `driver_opts`,
|
|
1687
|
+
`external` or `ipam` of a volume or network: remove them.
|
|
1688
|
+
- a writable bind mount of the whole project (`.:/app`): add `:ro`.
|
|
1669
1689
|
- a volume with no name (`- /data`): name it. Below a bind mount it is allowed, as scratch
|
|
1670
1690
|
space (`/app/node_modules`).
|
|
1671
1691
|
- `env_file` naming a file the files lack: write it, empty if it sets nothing, or give the
|
|
1672
1692
|
entry `required: false`.
|
|
1673
|
-
- `privileged`, `cap_add`, `security_opt
|
|
1674
|
-
path outside the directory; more than one replica;
|
|
1675
|
-
git URL as a build context.
|
|
1693
|
+
- `privileged`, `cap_add`, `security_opt` (but `no-new-privileges`), `devices`, host
|
|
1694
|
+
namespaces, the Docker socket, a path outside the directory; more than one replica;
|
|
1695
|
+
`include` or `extends` from a URL; a git URL as a build context.
|
|
1696
|
+
Not refused, and read the machine's way: a `container_name` and a network's `name` name
|
|
1697
|
+
nothing on the machine, so two projects may write the same (the project's services still
|
|
1698
|
+
reach the container by it); a service with `profiles` runs only while `COMPOSE_PROFILES`
|
|
1699
|
+
in /.env names one of them, and is no service of the project until then; a bind mount of a
|
|
1700
|
+
folder without `:ro` (`./data:/data`) mounts the project's volume named after the path
|
|
1701
|
+
(`data`), which deploys keep and backups hold, with none of the version's files in it, so
|
|
1702
|
+
project files take `:ro`, and data is plainer in a named volume (`data:/data`, with `data:`
|
|
1703
|
+
under `volumes:`); a bind mount of a file without `:ro` mounts it read-only.
|
|
1676
1704
|
An image's VOLUME that no mount covers fails the deploy (UNCOVERED_IMAGE_VOLUME): mount a
|
|
1677
1705
|
named volume or a tmpfs there.
|
|
1678
1706
|
|
|
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "pethost"
|
|
9
|
-
version = "0.2.
|
|
9
|
+
version = "0.2.2"
|
|
10
10
|
description = "The Python SDK for Pethost, hosting for Docker Compose projects: deploy, read logs and requests, run commands and move files through its API."
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
requires-python = ">=3.10"
|
|
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
|