easybrowser-local-api-sdk 0.1.3__tar.gz → 0.1.4__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.
- {easybrowser_local_api_sdk-0.1.3 → easybrowser_local_api_sdk-0.1.4}/PKG-INFO +1 -1
- {easybrowser_local_api_sdk-0.1.3 → easybrowser_local_api_sdk-0.1.4}/easybrowser_local_api_sdk.egg-info/PKG-INFO +1 -1
- {easybrowser_local_api_sdk-0.1.3 → easybrowser_local_api_sdk-0.1.4}/easybrowser_sdk.py +8 -0
- {easybrowser_local_api_sdk-0.1.3 → easybrowser_local_api_sdk-0.1.4}/pyproject.toml +1 -1
- {easybrowser_local_api_sdk-0.1.3 → easybrowser_local_api_sdk-0.1.4}/README.md +0 -0
- {easybrowser_local_api_sdk-0.1.3 → easybrowser_local_api_sdk-0.1.4}/easybrowser_local_api_sdk.egg-info/SOURCES.txt +0 -0
- {easybrowser_local_api_sdk-0.1.3 → easybrowser_local_api_sdk-0.1.4}/easybrowser_local_api_sdk.egg-info/dependency_links.txt +0 -0
- {easybrowser_local_api_sdk-0.1.3 → easybrowser_local_api_sdk-0.1.4}/easybrowser_local_api_sdk.egg-info/requires.txt +0 -0
- {easybrowser_local_api_sdk-0.1.3 → easybrowser_local_api_sdk-0.1.4}/easybrowser_local_api_sdk.egg-info/top_level.txt +0 -0
- {easybrowser_local_api_sdk-0.1.3 → easybrowser_local_api_sdk-0.1.4}/setup.cfg +0 -0
|
@@ -297,6 +297,14 @@ class EasyBrowserAPI:
|
|
|
297
297
|
def update_container(self, env_id, **kw):
|
|
298
298
|
return self._post("/api/v1/container/update", {"id": env_id, **kw})
|
|
299
299
|
|
|
300
|
+
def delete_container(self, env_ids):
|
|
301
|
+
"""Delete one or more containers. Accepts a single id or a list of ids."""
|
|
302
|
+
if isinstance(env_ids, str):
|
|
303
|
+
ids = [env_ids]
|
|
304
|
+
else:
|
|
305
|
+
ids = list(env_ids)
|
|
306
|
+
return self._post("/api/v1/container/delete", {"ids": ids})
|
|
307
|
+
|
|
300
308
|
def list_containers(self, page=1, page_size=100):
|
|
301
309
|
return self._get(
|
|
302
310
|
"/api/v1/container/list",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|