fleet-python 0.2.4__tar.gz → 0.2.5__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 fleet-python might be problematic. Click here for more details.
- {fleet_python-0.2.4/fleet_python.egg-info → fleet_python-0.2.5}/PKG-INFO +11 -11
- {fleet_python-0.2.4 → fleet_python-0.2.5}/README.md +10 -10
- {fleet_python-0.2.4 → fleet_python-0.2.5/fleet_python.egg-info}/PKG-INFO +11 -11
- {fleet_python-0.2.4 → fleet_python-0.2.5}/pyproject.toml +1 -1
- {fleet_python-0.2.4 → fleet_python-0.2.5}/LICENSE +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/examples/dsl_example.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/examples/example.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/examples/json_tasks_example.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/examples/nova_act_example.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/examples/openai_example.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/examples/openai_simple_example.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/examples/quickstart.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/__init__.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/base.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/client.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/env/__init__.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/env/client.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/exceptions.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/instance/__init__.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/instance/base.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/instance/client.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/instance/models.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/models.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/playwright.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/resources/__init__.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/resources/base.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/resources/browser.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/_async/resources/sqlite.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/base.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/client.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/env/__init__.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/env/client.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/exceptions.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/instance/__init__.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/instance/base.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/instance/client.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/instance/models.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/models.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/playwright.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/resources/__init__.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/resources/base.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/resources/browser.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/resources/sqlite.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/verifiers/__init__.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/verifiers/code.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/verifiers/db.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet/verifiers/sql_differ.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet_python.egg-info/SOURCES.txt +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet_python.egg-info/dependency_links.txt +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet_python.egg-info/requires.txt +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/fleet_python.egg-info/top_level.txt +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/scripts/unasync.py +0 -0
- {fleet_python-0.2.4 → fleet_python-0.2.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fleet-python
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Python SDK for Fleet environments
|
|
5
5
|
Author-email: Fleet AI <nic@fleet.so>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -64,20 +64,20 @@ export FLEET_API_KEY="sk_your_key_here"
|
|
|
64
64
|
import fleet as flt
|
|
65
65
|
|
|
66
66
|
# Create environment by key
|
|
67
|
-
env =
|
|
67
|
+
env = flt.env.make("fira")
|
|
68
68
|
|
|
69
69
|
# Reset environment with seed and options
|
|
70
|
-
|
|
70
|
+
env.reset(
|
|
71
71
|
seed=42,
|
|
72
72
|
timestamp=datetime.now()
|
|
73
73
|
)
|
|
74
74
|
|
|
75
75
|
# Access environment state ('crm' is the resource id for a sqlite database)
|
|
76
76
|
sql = env.state("sqlite://crm")
|
|
77
|
-
|
|
77
|
+
sql.exec("UPDATE customers SET status = 'active' WHERE id = 123")
|
|
78
78
|
|
|
79
79
|
# Clean up
|
|
80
|
-
|
|
80
|
+
env.close()
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
## Environment Management
|
|
@@ -86,10 +86,10 @@ await env.close()
|
|
|
86
86
|
|
|
87
87
|
```python
|
|
88
88
|
# Create environment instance with explicit version
|
|
89
|
-
env =
|
|
89
|
+
env = flt.env.make("fira:v1.2.5")
|
|
90
90
|
|
|
91
91
|
# Create environment instance with default (latest) version
|
|
92
|
-
env =
|
|
92
|
+
env = flt.env.make("fira")
|
|
93
93
|
|
|
94
94
|
```
|
|
95
95
|
|
|
@@ -97,18 +97,18 @@ env = await flt.env.make("fira")
|
|
|
97
97
|
|
|
98
98
|
```python
|
|
99
99
|
# Connect to a running instance
|
|
100
|
-
env =
|
|
100
|
+
env = flt.env.get("env_instance_id")
|
|
101
101
|
|
|
102
102
|
# List all running instances
|
|
103
|
-
instances =
|
|
103
|
+
instances = flt.env.list_instances()
|
|
104
104
|
for instance in instances:
|
|
105
105
|
print(f"Instance: {instance.instance_id}")
|
|
106
106
|
print(f"Type: {instance.environment_type}")
|
|
107
107
|
print(f"Status: {instance.status}")
|
|
108
108
|
|
|
109
109
|
# Filter instances by status (running, pending, stopped, error)
|
|
110
|
-
running_instances =
|
|
110
|
+
running_instances = flt.env.list_instances(status_filter="running")
|
|
111
111
|
|
|
112
112
|
# List available environment types
|
|
113
|
-
available_envs =
|
|
113
|
+
available_envs = flt.env.list_envs()
|
|
114
114
|
```
|
|
@@ -26,20 +26,20 @@ export FLEET_API_KEY="sk_your_key_here"
|
|
|
26
26
|
import fleet as flt
|
|
27
27
|
|
|
28
28
|
# Create environment by key
|
|
29
|
-
env =
|
|
29
|
+
env = flt.env.make("fira")
|
|
30
30
|
|
|
31
31
|
# Reset environment with seed and options
|
|
32
|
-
|
|
32
|
+
env.reset(
|
|
33
33
|
seed=42,
|
|
34
34
|
timestamp=datetime.now()
|
|
35
35
|
)
|
|
36
36
|
|
|
37
37
|
# Access environment state ('crm' is the resource id for a sqlite database)
|
|
38
38
|
sql = env.state("sqlite://crm")
|
|
39
|
-
|
|
39
|
+
sql.exec("UPDATE customers SET status = 'active' WHERE id = 123")
|
|
40
40
|
|
|
41
41
|
# Clean up
|
|
42
|
-
|
|
42
|
+
env.close()
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
## Environment Management
|
|
@@ -48,10 +48,10 @@ await env.close()
|
|
|
48
48
|
|
|
49
49
|
```python
|
|
50
50
|
# Create environment instance with explicit version
|
|
51
|
-
env =
|
|
51
|
+
env = flt.env.make("fira:v1.2.5")
|
|
52
52
|
|
|
53
53
|
# Create environment instance with default (latest) version
|
|
54
|
-
env =
|
|
54
|
+
env = flt.env.make("fira")
|
|
55
55
|
|
|
56
56
|
```
|
|
57
57
|
|
|
@@ -59,18 +59,18 @@ env = await flt.env.make("fira")
|
|
|
59
59
|
|
|
60
60
|
```python
|
|
61
61
|
# Connect to a running instance
|
|
62
|
-
env =
|
|
62
|
+
env = flt.env.get("env_instance_id")
|
|
63
63
|
|
|
64
64
|
# List all running instances
|
|
65
|
-
instances =
|
|
65
|
+
instances = flt.env.list_instances()
|
|
66
66
|
for instance in instances:
|
|
67
67
|
print(f"Instance: {instance.instance_id}")
|
|
68
68
|
print(f"Type: {instance.environment_type}")
|
|
69
69
|
print(f"Status: {instance.status}")
|
|
70
70
|
|
|
71
71
|
# Filter instances by status (running, pending, stopped, error)
|
|
72
|
-
running_instances =
|
|
72
|
+
running_instances = flt.env.list_instances(status_filter="running")
|
|
73
73
|
|
|
74
74
|
# List available environment types
|
|
75
|
-
available_envs =
|
|
75
|
+
available_envs = flt.env.list_envs()
|
|
76
76
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fleet-python
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Python SDK for Fleet environments
|
|
5
5
|
Author-email: Fleet AI <nic@fleet.so>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -64,20 +64,20 @@ export FLEET_API_KEY="sk_your_key_here"
|
|
|
64
64
|
import fleet as flt
|
|
65
65
|
|
|
66
66
|
# Create environment by key
|
|
67
|
-
env =
|
|
67
|
+
env = flt.env.make("fira")
|
|
68
68
|
|
|
69
69
|
# Reset environment with seed and options
|
|
70
|
-
|
|
70
|
+
env.reset(
|
|
71
71
|
seed=42,
|
|
72
72
|
timestamp=datetime.now()
|
|
73
73
|
)
|
|
74
74
|
|
|
75
75
|
# Access environment state ('crm' is the resource id for a sqlite database)
|
|
76
76
|
sql = env.state("sqlite://crm")
|
|
77
|
-
|
|
77
|
+
sql.exec("UPDATE customers SET status = 'active' WHERE id = 123")
|
|
78
78
|
|
|
79
79
|
# Clean up
|
|
80
|
-
|
|
80
|
+
env.close()
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
## Environment Management
|
|
@@ -86,10 +86,10 @@ await env.close()
|
|
|
86
86
|
|
|
87
87
|
```python
|
|
88
88
|
# Create environment instance with explicit version
|
|
89
|
-
env =
|
|
89
|
+
env = flt.env.make("fira:v1.2.5")
|
|
90
90
|
|
|
91
91
|
# Create environment instance with default (latest) version
|
|
92
|
-
env =
|
|
92
|
+
env = flt.env.make("fira")
|
|
93
93
|
|
|
94
94
|
```
|
|
95
95
|
|
|
@@ -97,18 +97,18 @@ env = await flt.env.make("fira")
|
|
|
97
97
|
|
|
98
98
|
```python
|
|
99
99
|
# Connect to a running instance
|
|
100
|
-
env =
|
|
100
|
+
env = flt.env.get("env_instance_id")
|
|
101
101
|
|
|
102
102
|
# List all running instances
|
|
103
|
-
instances =
|
|
103
|
+
instances = flt.env.list_instances()
|
|
104
104
|
for instance in instances:
|
|
105
105
|
print(f"Instance: {instance.instance_id}")
|
|
106
106
|
print(f"Type: {instance.environment_type}")
|
|
107
107
|
print(f"Status: {instance.status}")
|
|
108
108
|
|
|
109
109
|
# Filter instances by status (running, pending, stopped, error)
|
|
110
|
-
running_instances =
|
|
110
|
+
running_instances = flt.env.list_instances(status_filter="running")
|
|
111
111
|
|
|
112
112
|
# List available environment types
|
|
113
|
-
available_envs =
|
|
113
|
+
available_envs = flt.env.list_envs()
|
|
114
114
|
```
|
|
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
|
|
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
|
|
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
|