scalebox-sdk 0.1.21__py3-none-any.whl → 0.1.23__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.
scalebox/__init__.py CHANGED
@@ -9,7 +9,7 @@ A multi-language code execution sandbox with support for:
9
9
  - Real-time callbacks and monitoring
10
10
  """
11
11
 
12
- __version__ = "0.1.21"
12
+ __version__ = "0.1.23"
13
13
  __author__ = "ScaleBox Team"
14
14
  __email__ = "dev@scalebox.dev"
15
15
 
@@ -45,7 +45,7 @@ class AsyncSandboxOpts(TypedDict):
45
45
 
46
46
  class AsyncSandbox(SandboxSetup, SandboxApi):
47
47
  """
48
- E2B cloud sandbox is a secure and isolated cloud environment.
48
+ Scalebox cloud sandbox is a secure and isolated cloud environment.
49
49
 
50
50
  The sandbox allows you to:
51
51
  - Access Linux OS
@@ -60,7 +60,7 @@ class AsyncSandbox(SandboxSetup, SandboxApi):
60
60
 
61
61
  Example:
62
62
  ```python
63
- from e2b import AsyncSandbox
63
+ from scalebox import AsyncSandbox
64
64
 
65
65
  sandbox = await AsyncSandbox.create()
66
66
  ```
@@ -239,7 +239,7 @@ class AsyncSandbox(SandboxSetup, SandboxApi):
239
239
  :param timeout: Timeout for the sandbox in **seconds**, default to 300 seconds. Maximum time a sandbox can be kept alive is 24 hours (86_400 seconds) for Pro users and 1 hour (3_600 seconds) for Hobby users.
240
240
  :param metadata: Custom metadata for the sandbox
241
241
  :param envs: Custom environment variables for the sandbox
242
- :param api_key: E2B API Key to use for authentication, defaults to `E2B_API_KEY` environment variable
242
+ :param api_key: SBX API Key to use for authentication, defaults to `SBX_API_KEY` environment variable
243
243
  :param request_timeout: Timeout for the request in **seconds**
244
244
  :param proxy: Proxy to use for the request and for the **requests made to the returned sandbox**
245
245
  :param secure: Envd is secured with access token and cannot be used without it
@@ -329,7 +329,7 @@ class AsyncSandbox(SandboxSetup, SandboxApi):
329
329
  With sandbox ID you can connect to the same sandbox from different places or environments (serverless functions, etc).
330
330
 
331
331
  :param sandbox_id: Sandbox ID
332
- :param api_key: E2B API Key to use for authentication, defaults to `E2B_API_KEY` environment variable
332
+ :param api_key: SBX API Key to use for authentication, defaults to `SBX_API_KEY` environment variable
333
333
  :param proxy: Proxy to use for the request and for the **requests made to the returned sandbox**
334
334
 
335
335
  :return: sandbox instance for the existing sandbox
@@ -417,7 +417,7 @@ class AsyncSandbox(SandboxSetup, SandboxApi):
417
417
  Kill the sandbox specified by sandbox ID.
418
418
 
419
419
  :param sandbox_id: Sandbox ID
420
- :param api_key: E2B API Key to use for authentication, defaults to `E2B_API_KEY` environment variable
420
+ :param api_key: SBX API Key to use for authentication, defaults to `SBX_API_KEY` environment variable
421
421
  :param request_timeout: Timeout for the request in **seconds**
422
422
  :param proxy: Proxy to use for the request
423
423
 
@@ -530,9 +530,9 @@ class AsyncSandbox(SandboxSetup, SandboxApi):
530
530
  """
531
531
  Get sandbox information like sandbox ID, template, metadata, started at/end at date.
532
532
  :param sandbox_id: Sandbox ID
533
- :param api_key: E2B API Key to use for authentication, defaults to `E2B_API_KEY` environment variable
534
- :param domain: E2B domain to use for authentication, defaults to `E2B_DOMAIN` environment variable
535
- :param debug: Whether to use debug mode, defaults to `E2B_DEBUG` environment variable
533
+ :param api_key: SBX API Key to use for authentication, defaults to `SBX_API_KEY` environment variable
534
+ :param domain: SBX domain to use for authentication, defaults to `SBX_DOMAIN` environment variable
535
+ :param debug: Whether to use debug mode, defaults to `SBX_DEBUG` environment variable
536
536
  :param request_timeout: Timeout for the request in **seconds**
537
537
  :param headers: Custom headers to use for the request
538
538
  :param proxy: Proxy to use for the request
@@ -598,7 +598,7 @@ class AsyncSandbox(SandboxSetup, SandboxApi):
598
598
  :param sandbox_id: Sandbox ID
599
599
  :param start: Start time for the metrics, defaults to the start of the sandbox
600
600
  :param end: End time for the metrics, defaults to current time
601
- :param api_key: E2B API Key to use for authentication, defaults to `E2B_API_KEY` environment variable
601
+ :param api_key: SBX API Key to use for authentication, defaults to `SBX_API_KEY` environment variable
602
602
  :param request_timeout: Timeout for the request in **seconds**
603
603
 
604
604
  :return: List of sandbox metrics containing CPU, memory and disk usage information