grasp-sdk 0.1.10__tar.gz → 0.1.11__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.
Potentially problematic release.
This version of grasp-sdk might be problematic. Click here for more details.
- {grasp_sdk-0.1.10/grasp_sdk.egg-info → grasp_sdk-0.1.11}/PKG-INFO +6 -1
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/README.md +5 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/example_usage.py +1 -1
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk/__init__.py +1 -1
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk/services/sandbox.py +6 -1
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11/grasp_sdk.egg-info}/PKG-INFO +6 -1
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/pyproject.toml +1 -1
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/MANIFEST.in +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/build_and_publish.py +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk/models/__init__.py +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk/services/__init__.py +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk/services/browser.py +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk/utils/__init__.py +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk/utils/auth.py +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk/utils/config.py +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk/utils/logger.py +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk.egg-info/SOURCES.txt +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk.egg-info/dependency_links.txt +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk.egg-info/entry_points.txt +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk.egg-info/not-zip-safe +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk.egg-info/requires.txt +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/grasp_sdk.egg-info/top_level.txt +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/py.typed +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/requirements.txt +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/setup.cfg +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/setup.py +0 -0
- {grasp_sdk-0.1.10 → grasp_sdk-0.1.11}/test_install.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: grasp_sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.11
|
|
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.11 (2025-01-27)
|
|
312
|
+
- Minor bug fixes
|
|
313
|
+
- Performance optimizations
|
|
314
|
+
- Code quality improvements
|
|
315
|
+
|
|
311
316
|
### v0.1.10 (2025-01-27)
|
|
312
317
|
- Bug fixes and improvements
|
|
313
318
|
- Enhanced stability
|
|
@@ -261,6 +261,11 @@ MIT License - see the [LICENSE](../LICENSE) file for details.
|
|
|
261
261
|
|
|
262
262
|
## 📋 Release History
|
|
263
263
|
|
|
264
|
+
### v0.1.11 (2025-01-27)
|
|
265
|
+
- Minor bug fixes
|
|
266
|
+
- Performance optimizations
|
|
267
|
+
- Code quality improvements
|
|
268
|
+
|
|
264
269
|
### v0.1.10 (2025-01-27)
|
|
265
270
|
- Bug fixes and improvements
|
|
266
271
|
- Enhanced stability
|
|
@@ -151,15 +151,20 @@ class SandboxService:
|
|
|
151
151
|
domain = 'sandbox.novita.ai'
|
|
152
152
|
template_id = f'{template_id}-novita'
|
|
153
153
|
|
|
154
|
+
timeoutSec = self.config['timeout'] // 1000
|
|
155
|
+
|
|
154
156
|
# Use Sandbox constructor directly (e2b SDK 1.5.3+)
|
|
155
157
|
self.sandbox = await AsyncSandbox.create(
|
|
156
158
|
template=template_id,
|
|
157
159
|
api_key=api_key,
|
|
158
160
|
domain=domain,
|
|
159
|
-
timeout=
|
|
161
|
+
timeout=min(timeoutSec, 3600), # Convert ms to seconds
|
|
160
162
|
envs=envs,
|
|
161
163
|
)
|
|
162
164
|
|
|
165
|
+
if timeoutSec > 3600:
|
|
166
|
+
await self.sandbox.set_timeout(timeout=timeoutSec)
|
|
167
|
+
|
|
163
168
|
self.status = SandboxStatus.RUNNING
|
|
164
169
|
self.logger.info('Grasp sandbox created successfully', {
|
|
165
170
|
'sandboxId': getattr(self.sandbox, 'sandbox_id', 'unknown'),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: grasp_sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.11
|
|
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.11 (2025-01-27)
|
|
312
|
+
- Minor bug fixes
|
|
313
|
+
- Performance optimizations
|
|
314
|
+
- Code quality improvements
|
|
315
|
+
|
|
311
316
|
### v0.1.10 (2025-01-27)
|
|
312
317
|
- Bug fixes and improvements
|
|
313
318
|
- Enhanced stability
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|