grasp-sdk 0.1.9__py3-none-any.whl → 0.1.10__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.

Potentially problematic release.


This version of grasp-sdk might be problematic. Click here for more details.

grasp_sdk/__init__.py CHANGED
@@ -24,7 +24,7 @@ from .models import (
24
24
  SandboxStatus,
25
25
  )
26
26
 
27
- __version__ = "0.1.9"
27
+ __version__ = "0.1.10"
28
28
  __author__ = "Grasp Team"
29
29
  __email__ = "team@grasp.dev"
30
30
 
@@ -145,10 +145,17 @@ class SandboxService:
145
145
  self.logger.info('Creating Grasp sandbox', {
146
146
  'templateId': template_id,
147
147
  })
148
+
149
+ domain = 'e2b.app'
150
+ if api_key.startswith('sk_'):
151
+ domain = 'sandbox.novita.ai'
152
+ template_id = f'{template_id}-novita'
153
+
148
154
  # Use Sandbox constructor directly (e2b SDK 1.5.3+)
149
155
  self.sandbox = await AsyncSandbox.create(
150
156
  template=template_id,
151
157
  api_key=api_key,
158
+ domain=domain,
152
159
  timeout=self.config['timeout'] // 1000, # Convert ms to seconds
153
160
  envs=envs,
154
161
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: grasp_sdk
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Summary: Python SDK for Grasp E2B - Browser automation and sandbox management
5
5
  Home-page: https://github.com/grasp-team/grasp-e2b
6
6
  Author: Grasp Team
@@ -308,6 +308,11 @@ MIT License - see the [LICENSE](../LICENSE) file for details.
308
308
 
309
309
  ## 📋 Release History
310
310
 
311
+ ### v0.1.10 (2025-01-27)
312
+ - Bug fixes and improvements
313
+ - Enhanced stability
314
+ - Updated dependencies
315
+
311
316
  ### v0.1.4 (2025-01-27)
312
317
  - Version synchronization update
313
318
  - Package metadata improvements
@@ -1,14 +1,14 @@
1
- grasp_sdk/__init__.py,sha256=JEmSRZJblEfD09I_775_DMTDiEs4owE6cyVCLWr6CLc,8431
1
+ grasp_sdk/__init__.py,sha256=-R8L6qgl7fsnzuAjyMQ2ZWVvrYTaxE-CEGuahj7Raas,8432
2
2
  grasp_sdk/models/__init__.py,sha256=mUfYvCX2S9Fmir9sTsQVV7LdLIPhq2UXQs5fSTRc0eM,2619
3
3
  grasp_sdk/services/__init__.py,sha256=HqRD-WRedLwOb2gZPXPFzI-3892VT9IknKSbuDyiss8,327
4
4
  grasp_sdk/services/browser.py,sha256=cvp-fxKDxwLFz0evJh2FckDrNdnS8vspkZ0NgZghEzY,14003
5
- grasp_sdk/services/sandbox.py,sha256=HdR5e30TW2_TPlsE6IBUIeUGnF8yssbsXGEzHrwdK58,21960
5
+ grasp_sdk/services/sandbox.py,sha256=WqwVDc8zHOP3zz4L5huRj6VacTQ26qwu6WnXHJDa0aY,22165
6
6
  grasp_sdk/utils/__init__.py,sha256=IQzRV-iZJXanSlaXBcgXBCcOXTVBCY6ZujxQpDTGW9w,816
7
7
  grasp_sdk/utils/auth.py,sha256=M_SX3uKTjjfi6fzk384IqPvUtqt98bif22HHMgio1D4,7258
8
8
  grasp_sdk/utils/config.py,sha256=NhHnUwmYOaaV_DZVep_BXsKoZPNT_-yRsiV04q83IXw,3967
9
9
  grasp_sdk/utils/logger.py,sha256=k6WDmzL3cPTcQbiiTD4Q6fsDdUO_kyXQHz7nlmtv7G4,7228
10
- grasp_sdk-0.1.9.dist-info/METADATA,sha256=p--L6e8fH_AqboS--urzcHvrW3_sEso49r5Rl0CcJuU,10167
11
- grasp_sdk-0.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- grasp_sdk-0.1.9.dist-info/entry_points.txt,sha256=roDjUu4JR6b1tUtRmq018mw167AbfC5zQiOtv3o6IMo,45
13
- grasp_sdk-0.1.9.dist-info/top_level.txt,sha256=C9GL798_aP9Hgjq7UUlaGHLDfUohO2PSGYuGDV0cMx8,10
14
- grasp_sdk-0.1.9.dist-info/RECORD,,
10
+ grasp_sdk-0.1.10.dist-info/METADATA,sha256=lbKtyG7mGuFQuK1_Mjes-Tf0OmjM61LA3WvpVmtvRWA,10267
11
+ grasp_sdk-0.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ grasp_sdk-0.1.10.dist-info/entry_points.txt,sha256=roDjUu4JR6b1tUtRmq018mw167AbfC5zQiOtv3o6IMo,45
13
+ grasp_sdk-0.1.10.dist-info/top_level.txt,sha256=C9GL798_aP9Hgjq7UUlaGHLDfUohO2PSGYuGDV0cMx8,10
14
+ grasp_sdk-0.1.10.dist-info/RECORD,,