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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easybrowser-local-api-sdk
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: EasyBrowser local API SDK
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easybrowser-local-api-sdk
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: EasyBrowser local API SDK
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -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",
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "easybrowser-local-api-sdk"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description = "EasyBrowser local API SDK"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"