plash-cli 0.3.6__tar.gz → 0.3.7__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plash_cli
3
- Version: 0.3.6
3
+ Version: 0.3.7
4
4
  Summary: CLI for the Plash hosting service
5
5
  Home-page: https://github.com/AnswerDotAI/plash_cli
6
6
  Author: Jeremy Howard
@@ -0,0 +1,2 @@
1
+ __version__ = "0.3.7"
2
+ from .cli import *
@@ -99,8 +99,8 @@ def login(
99
99
  cookies = _poll_cookies(paircode)
100
100
  if cookies:
101
101
  PLASH_CONFIG_HOME.write_text(json.dumps(cookies))
102
- return f"Authentication successful! Config saved to {PLASH_CONFIG_HOME}"
103
- else: return "Authentication timed out."
102
+ print(f"Authentication successful! Config saved to {PLASH_CONFIG_HOME}")
103
+ else: print("Authentication timed out.")
104
104
 
105
105
  # %% ../nbs/00_cli.ipynb 17
106
106
  pat = r'(?m)^# /// (?P<type>[a-zA-Z0-9-]+)$\s(?P<content>(^#(| .*)$\s)+)^# ///$'
@@ -170,7 +170,7 @@ def deploy(
170
170
  r = _mk_auth_req(_endpoint(rt="/upload"), "post", files={'file': tarz},
171
171
  data={'name': name, 'force_data': force_data})
172
172
  if r:
173
- return ('✅ Upload complete! Your app is currently being built.\n' +
173
+ print('✅ Upload complete! Your app is currently being built.\n' +
174
174
  f'It will be live at {name if "." in name else _endpoint(sub=name)}')
175
175
  else: return 'Unknown failure'
176
176
 
@@ -245,7 +245,7 @@ def logs(
245
245
  @patch
246
246
  def _is_dir_empty(self:Path): return next(self.iterdir(), None) is None
247
247
 
248
- # %% ../nbs/00_cli.ipynb 45
248
+ # %% ../nbs/00_cli.ipynb 46
249
249
  @call_parse
250
250
  def download(
251
251
  path:Path=Path('.'), # Path to project
@@ -259,7 +259,7 @@ def download(
259
259
  with tarfile.open(fileobj=io.BytesIO(r.content), mode="r:gz") as tar: tar.extractall(path=save_path, filter='data')
260
260
  print(f"Downloaded your app to: {save_path}")
261
261
 
262
- # %% ../nbs/00_cli.ipynb 48
262
+ # %% ../nbs/00_cli.ipynb 49
263
263
  @call_parse
264
264
  def apps(verbose:bool=False):
265
265
  "List your deployed apps (verbose shows status table: 1=running, 0=stopped)"
@@ -267,5 +267,5 @@ def apps(verbose:bool=False):
267
267
  if r:
268
268
  apps = r.json()
269
269
  if not apps: return "You don't have any deployed Plash apps."
270
- if verbose: return [(f"{a['running']} {a['name']}") for a in apps]
271
- else: return [(a['name']) for a in apps]
270
+ if verbose: return [print(f"{a['running']} {a['name']}") for a in apps]
271
+ else: return [print(a['name']) for a in apps]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plash_cli
3
- Version: 0.3.6
3
+ Version: 0.3.7
4
4
  Summary: CLI for the Plash hosting service
5
5
  Home-page: https://github.com/AnswerDotAI/plash_cli
6
6
  Author: Jeremy Howard
@@ -2,7 +2,7 @@
2
2
  jupyter_hooks = False
3
3
  repo = plash_cli
4
4
  lib_name = plash_cli
5
- version = 0.3.6
5
+ version = 0.3.7
6
6
  min_python = 3.11
7
7
  license = apache2
8
8
  black_formatting = False
@@ -1,2 +0,0 @@
1
- __version__ = "0.3.6"
2
- from .cli import *
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes