We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55c959e commit 4ae206bCopy full SHA for 4ae206b
packages/python-sdk/e2b/sandbox/main.py
@@ -1,3 +1,4 @@
1
+import os
2
import urllib.parse
3
from packaging.version import Version
4
@@ -50,10 +51,15 @@ def __init__(
50
51
self.__envd_access_token = envd_access_token
52
self.__envd_api_url = (
53
envd_api_url
54
+ or SandboxBase._envd_api_url()
55
or f"{'http' if self.connection_config.debug else 'https'}://{self.get_host(self.envd_port)}"
56
)
57
self.__mcp_token: Optional[str] = None
58
59
+ @staticmethod
60
+ def _envd_api_url():
61
+ return os.getenv("E2B_ENVD_API_URL")
62
+
63
@property
64
def _envd_access_token(self) -> Optional[str]:
65
"""Private property to access the envd token"""
0 commit comments