dbos 1.9.0a1__py3-none-any.whl → 1.9.0a2__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.

Potentially problematic release.


This version of dbos might be problematic. Click here for more details.

dbos/cli/cli.py CHANGED
@@ -10,7 +10,7 @@ from typing import Any, Optional
10
10
  import jsonpickle # type: ignore
11
11
  import sqlalchemy as sa
12
12
  import typer
13
- from rich import print
13
+ from rich import print as richprint
14
14
  from rich.prompt import IntPrompt
15
15
  from typing_extensions import Annotated, List
16
16
 
@@ -196,7 +196,7 @@ def init(
196
196
  path.join(templates_dir, template), project_name, config_mode=config
197
197
  )
198
198
  except Exception as e:
199
- print(f"[red]{e}[/red]")
199
+ richprint(f"[red]{e}[/red]")
200
200
 
201
201
 
202
202
  def _resolve_project_name_and_template(
@@ -217,9 +217,9 @@ def _resolve_project_name_and_template(
217
217
  if template not in templates:
218
218
  raise Exception(f"Template {template} not found in {templates_dir}")
219
219
  else:
220
- print("\n[bold]Available templates:[/bold]")
220
+ richprint("\n[bold]Available templates:[/bold]")
221
221
  for idx, template_name in enumerate(templates, 1):
222
- print(f" {idx}. {template_name}")
222
+ richprint(f" {idx}. {template_name}")
223
223
  while True:
224
224
  try:
225
225
  choice = IntPrompt.ask(
@@ -231,13 +231,13 @@ def _resolve_project_name_and_template(
231
231
  template = templates[choice - 1]
232
232
  break
233
233
  else:
234
- print(
234
+ richprint(
235
235
  "[red]Invalid selection. Please choose a number from the list.[/red]"
236
236
  )
237
237
  except (KeyboardInterrupt, EOFError):
238
238
  raise typer.Abort()
239
239
  except ValueError:
240
- print("[red]Please enter a valid number.[/red]")
240
+ richprint("[red]Please enter a valid number.[/red]")
241
241
 
242
242
  if template in git_templates:
243
243
  if project_name is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dbos
3
- Version: 1.9.0a1
3
+ Version: 1.9.0a2
4
4
  Summary: Ultra-lightweight durable execution in Python
5
5
  Author-Email: "DBOS, Inc." <contact@dbos.dev>
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
- dbos-1.9.0a1.dist-info/METADATA,sha256=lm_ZZF0bWGuy1sNS_bqk5-XzNFqVlk83gpNvH5F2CMU,13267
2
- dbos-1.9.0a1.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
- dbos-1.9.0a1.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
4
- dbos-1.9.0a1.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
1
+ dbos-1.9.0a2.dist-info/METADATA,sha256=8hpTbooohh_ApXVCxtByMBz3QbUi2nHm3IDtNWyUANo,13267
2
+ dbos-1.9.0a2.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
+ dbos-1.9.0a2.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
4
+ dbos-1.9.0a2.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
5
5
  dbos/__init__.py,sha256=NssPCubaBxdiKarOWa-wViz1hdJSkmBGcpLX_gQ4NeA,891
6
6
  dbos/__main__.py,sha256=G7Exn-MhGrVJVDbgNlpzhfh8WMX_72t3_oJaFT9Lmt8,653
7
7
  dbos/_admin_server.py,sha256=e8ELhcDWqR3_PNobnNgUvLGh5lzZq0yFSF6dvtzoQRI,16267
@@ -65,8 +65,8 @@ dbos/_utils.py,sha256=uywq1QrjMwy17btjxW4bES49povlQwYwYbvKwMT6C2U,1575
65
65
  dbos/_workflow_commands.py,sha256=EmmAaQfRWeOZm_WPTznuU-O3he3jiSzzT9VpYrhxugE,4835
66
66
  dbos/cli/_github_init.py,sha256=Y_bDF9gfO2jB1id4FV5h1oIxEJRWyqVjhb7bNEa5nQ0,3224
67
67
  dbos/cli/_template_init.py,sha256=7JBcpMqP1r2mfCnvWatu33z8ctEGHJarlZYKgB83cXE,2972
68
- dbos/cli/cli.py,sha256=TwiaWr5zZrXOyhgv7OgkWzVA3y8znCj2L6i0sb91--0,22122
68
+ dbos/cli/cli.py,sha256=oU2uvRF90eAydQ9FoQcgi8N_Cojzz8NLn1WE-vrA1p0,22155
69
69
  dbos/dbos-config.schema.json,sha256=CjaspeYmOkx6Ip_pcxtmfXJTn_YGdSx_0pcPBF7KZmo,6060
70
70
  dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
71
71
  version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
72
- dbos-1.9.0a1.dist-info/RECORD,,
72
+ dbos-1.9.0a2.dist-info/RECORD,,
File without changes