alphai 0.2.2__tar.gz → 0.3.0__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.
- {alphai-0.2.2 → alphai-0.3.0}/PKG-INFO +2 -2
- {alphai-0.2.2 → alphai-0.3.0}/pyproject.toml +5 -2
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/__init__.py +1 -1
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/client.py +19 -19
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai.egg-info/PKG-INFO +2 -2
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai.egg-info/requires.txt +1 -1
- {alphai-0.2.2 → alphai-0.3.0}/README.md +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/setup.cfg +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/auth.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/cleanup.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/cli.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/commands/__init__.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/commands/config.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/commands/docker.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/commands/jupyter.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/commands/notebooks.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/commands/orgs.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/commands/projects.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/config.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/docker.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/exceptions.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/jupyter_manager.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/notebook_renderer.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai/utils.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai.egg-info/SOURCES.txt +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai.egg-info/dependency_links.txt +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai.egg-info/entry_points.txt +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/src/alphai.egg-info/top_level.txt +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/tests/test_cleanup.py +0 -0
- {alphai-0.2.2 → alphai-0.3.0}/tests/test_cli.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alphai
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: A CLI tool and Python package for the runalph.ai platform
|
|
5
5
|
Author-email: Andrew Chang <andrew@runalph.ai>
|
|
6
6
|
Project-URL: Homepage, https://runalph.ai
|
|
@@ -19,7 +19,7 @@ Requires-Python: >=3.10
|
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
Requires-Dist: click>=8.1.0
|
|
21
21
|
Requires-Dist: rich>=13.0.0
|
|
22
|
-
Requires-Dist: alph-sdk>=0.
|
|
22
|
+
Requires-Dist: alph-sdk>=0.7.0
|
|
23
23
|
Requires-Dist: httpx>=0.25.0
|
|
24
24
|
Requires-Dist: pydantic>=2.0.0
|
|
25
25
|
Requires-Dist: questionary>=2.1.0
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "alphai"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.3.0"
|
|
8
8
|
description = "A CLI tool and Python package for the runalph.ai platform"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -24,13 +24,16 @@ classifiers = [
|
|
|
24
24
|
dependencies = [
|
|
25
25
|
"click>=8.1.0",
|
|
26
26
|
"rich>=13.0.0",
|
|
27
|
-
"alph-sdk>=0.
|
|
27
|
+
"alph-sdk>=0.7.0",
|
|
28
28
|
"httpx>=0.25.0",
|
|
29
29
|
"pydantic>=2.0.0",
|
|
30
30
|
"questionary>=2.1.0",
|
|
31
31
|
"jupyterlab>=4.5.1",
|
|
32
32
|
]
|
|
33
33
|
|
|
34
|
+
[tool.uv.sources]
|
|
35
|
+
alph-sdk = { path = "../alph-python", editable = true }
|
|
36
|
+
|
|
34
37
|
[project.optional-dependencies]
|
|
35
38
|
dev = [
|
|
36
39
|
"pytest>=7.0.0",
|
|
@@ -95,10 +95,10 @@ class AlphAIClient:
|
|
|
95
95
|
def create_organization(self, name: str, description: Optional[str] = None) -> Optional[Dict[str, Any]]:
|
|
96
96
|
"""Create a new organization."""
|
|
97
97
|
try:
|
|
98
|
-
response = self.sdk.orgs.create(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
response = self.sdk.orgs.create(
|
|
99
|
+
name=name,
|
|
100
|
+
description=description or ""
|
|
101
|
+
)
|
|
102
102
|
if response.result.status == "success":
|
|
103
103
|
self.console.print(f"[green]✓ Organization '{name}' created successfully[/green]")
|
|
104
104
|
return response.result.organization
|
|
@@ -257,12 +257,12 @@ class AlphAIClient:
|
|
|
257
257
|
) -> Optional[Dict[str, Any]]:
|
|
258
258
|
"""Create a new tunnel and return the tunnel data including token."""
|
|
259
259
|
try:
|
|
260
|
-
response = self.sdk.tunnels.create(
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
260
|
+
response = self.sdk.tunnels.create(
|
|
261
|
+
org_slug=org_slug,
|
|
262
|
+
project_name=project_name,
|
|
263
|
+
app_port=app_port,
|
|
264
|
+
jupyter_port=jupyter_port
|
|
265
|
+
)
|
|
266
266
|
|
|
267
267
|
if response.result.status == "success":
|
|
268
268
|
tunnel_data = response.result.data
|
|
@@ -310,15 +310,15 @@ class AlphAIClient:
|
|
|
310
310
|
) -> Optional[Dict[str, Any]]:
|
|
311
311
|
"""Create a new project."""
|
|
312
312
|
try:
|
|
313
|
-
response = self.sdk.projects.create(
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
313
|
+
response = self.sdk.projects.create(
|
|
314
|
+
name=name,
|
|
315
|
+
organization_id=organization_id,
|
|
316
|
+
port=port,
|
|
317
|
+
url=url,
|
|
318
|
+
port_forward_url=port_forward_url,
|
|
319
|
+
token=token,
|
|
320
|
+
server_request="external",
|
|
321
|
+
)
|
|
322
322
|
|
|
323
323
|
if response.result.status == "success":
|
|
324
324
|
project_data = response.result.project # Use 'project' instead of 'data'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alphai
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: A CLI tool and Python package for the runalph.ai platform
|
|
5
5
|
Author-email: Andrew Chang <andrew@runalph.ai>
|
|
6
6
|
Project-URL: Homepage, https://runalph.ai
|
|
@@ -19,7 +19,7 @@ Requires-Python: >=3.10
|
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
Requires-Dist: click>=8.1.0
|
|
21
21
|
Requires-Dist: rich>=13.0.0
|
|
22
|
-
Requires-Dist: alph-sdk>=0.
|
|
22
|
+
Requires-Dist: alph-sdk>=0.7.0
|
|
23
23
|
Requires-Dist: httpx>=0.25.0
|
|
24
24
|
Requires-Dist: pydantic>=2.0.0
|
|
25
25
|
Requires-Dist: questionary>=2.1.0
|
|
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
|