alphai 0.2.2__py3-none-any.whl → 0.3.0__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.
alphai/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """alphai - A CLI tool and Python package for the runalph.ai platform."""
2
2
 
3
- __version__ = "0.2.2"
3
+ __version__ = "0.3.0"
4
4
  __author__ = "Alph"
5
5
  __email__ = "info@runalph.ai"
6
6
 
alphai/client.py CHANGED
@@ -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
- "name": name,
100
- "description": description or ""
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(request={
261
- "org_slug": org_slug,
262
- "project_name": project_name,
263
- "app_port": app_port,
264
- "jupyter_port": jupyter_port
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(request={
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
- })
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.2.2
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.5.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
@@ -1,8 +1,8 @@
1
- alphai/__init__.py,sha256=bRIoc1hsFnuP6VOe03jrkFp_LByn7SYZbX6AfB4d4LU,1030
1
+ alphai/__init__.py,sha256=CiFiQKpGlqtwOFv4eABFUYaV6dhEtLYph5Qw9vgAioM,1030
2
2
  alphai/auth.py,sha256=rmMlikW9M0wVlNb8FXixrvcemPLaKXFO3Ocaiijjge8,15589
3
3
  alphai/cleanup.py,sha256=JEgysHuvK0sR1X4M5u0mBdKB8Kz1KIyF7fhW0i4uU0Q,12250
4
4
  alphai/cli.py,sha256=HTSqjDOJPAGj4WqsCFavjUEGqx4rzQ_a6CahhfRyU04,4660
5
- alphai/client.py,sha256=GloDcFWTreZrasHdbiHsQ5A9dr5Q8cUTv8YIcNf03Gg,18882
5
+ alphai/client.py,sha256=9DuBydlwwd6jUhgZhiEh8X-2fkn8IgfTH0yylzDSVeQ,18821
6
6
  alphai/config.py,sha256=b6494qVN_lN2Xuy64W7Ceo5fAnP5f97Z2wH5-lIHMQQ,3449
7
7
  alphai/docker.py,sha256=2fVW-LyIs5PYzA7oJCR-FAtgXL4TmenCjp4boy2qYFE,32583
8
8
  alphai/exceptions.py,sha256=ShSHxwc7WnsMu2ugRUxNgF4C9bipKu0_PvfoK7591dE,3401
@@ -16,8 +16,8 @@ alphai/commands/jupyter.py,sha256=UzKZvloB0J4iwri59PZ_EK_imXjKVDGvG4hyAUJ24Pk,13
16
16
  alphai/commands/notebooks.py,sha256=vZK5EX-8wmvlFUwe66FjAWq1bQgDvOnV4OkvrT-vbjk,43195
17
17
  alphai/commands/orgs.py,sha256=qhcuXXTCfwxspe3SAgpaITyyqPye2747jPNz91ysHv4,735
18
18
  alphai/commands/projects.py,sha256=-udwF_cew5DUR9m_BhHjjm2cFEJb1HBtWeiKdzrNPlQ,988
19
- alphai-0.2.2.dist-info/METADATA,sha256=GS4DsNyiohITU2-WDl9M3kHqWRqspcv5IoafJV3rzb0,4385
20
- alphai-0.2.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
21
- alphai-0.2.2.dist-info/entry_points.txt,sha256=ITOwv5erK-gjYw47KsOoENHvIAUW_ynEsEMLZ7GHZwA,43
22
- alphai-0.2.2.dist-info/top_level.txt,sha256=dFmybyT4Kzcgpsccun8RnBxkm9lK0Y0TPfaVe2FyxNY,7
23
- alphai-0.2.2.dist-info/RECORD,,
19
+ alphai-0.3.0.dist-info/METADATA,sha256=QieUCoQXmjbko_uLFYBd3ovXMrJ4Y-vcfaeAUJfegKM,4385
20
+ alphai-0.3.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
21
+ alphai-0.3.0.dist-info/entry_points.txt,sha256=ITOwv5erK-gjYw47KsOoENHvIAUW_ynEsEMLZ7GHZwA,43
22
+ alphai-0.3.0.dist-info/top_level.txt,sha256=dFmybyT4Kzcgpsccun8RnBxkm9lK0Y0TPfaVe2FyxNY,7
23
+ alphai-0.3.0.dist-info/RECORD,,
File without changes