fastapi-cli 0.0.2__py3-none-any.whl → 0.0.3__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.
fastapi_cli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.0.2"
1
+ __version__ = "0.0.3"
fastapi_cli/cli.py CHANGED
@@ -51,6 +51,7 @@ def _run(
51
51
  host: str = "127.0.0.1",
52
52
  port: int = 8000,
53
53
  reload: bool = True,
54
+ workers: Union[int, None] = None,
54
55
  root_path: str = "",
55
56
  command: str,
56
57
  app: Union[str, None] = None,
@@ -85,6 +86,7 @@ def _run(
85
86
  host=host,
86
87
  port=port,
87
88
  reload=reload,
89
+ workers=workers,
88
90
  root_path=root_path,
89
91
  proxy_headers=proxy_headers,
90
92
  )
@@ -200,6 +202,12 @@ def run(
200
202
  help="Enable auto-reload of the server when (code) files change. This is [bold]resource intensive[/bold], use it only during development."
201
203
  ),
202
204
  ] = False,
205
+ workers: Annotated[
206
+ Union[int, None],
207
+ typer.Option(
208
+ help="Use multiple worker processes. Mutually exclusive with the --reload flag."
209
+ ),
210
+ ] = None,
203
211
  root_path: Annotated[
204
212
  str,
205
213
  typer.Option(
@@ -249,6 +257,7 @@ def run(
249
257
  host=host,
250
258
  port=port,
251
259
  reload=reload,
260
+ workers=workers,
252
261
  root_path=root_path,
253
262
  app=app,
254
263
  command="run",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastapi-cli
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Run and manage FastAPI apps from the command line with FastAPI CLI. 🚀
5
5
  Home-page: https://github.com/tiangolo/fastapi-cli
6
6
  Author-Email: =?utf-8?q?Sebasti=C3=A1n_Ram=C3=ADrez?= <tiangolo@gmail.com>
@@ -33,7 +33,7 @@ Project-URL: Repository, https://github.com/tiangolo/fastapi-cli
33
33
  Requires-Python: >=3.8
34
34
  Requires-Dist: typer>=0.12.3
35
35
  Requires-Dist: fastapi
36
- Requires-Dist: uvicorn[standard]>=0.29.0
36
+ Requires-Dist: uvicorn[standard]>=0.15.0
37
37
  Description-Content-Type: text/markdown
38
38
 
39
39
  # FastAPI CLI
@@ -120,6 +120,8 @@ FastAPI CLI takes the path to your Python program and automatically detects the
120
120
 
121
121
  For production you would use `fastapi run` instead. 🚀
122
122
 
123
+ Internally, **FastAPI CLI** uses <a href="https://www.uvicorn.org" class="external-link" target="_blank">Uvicorn</a>, a high-performance, production-ready, ASGI server. 😎
124
+
123
125
  ## `fastapi dev`
124
126
 
125
127
  When you run `fastapi dev`, it will run on development mode.
@@ -1,12 +1,12 @@
1
- fastapi_cli-0.0.2.dist-info/METADATA,sha256=DADt2yADHsKGZzCrzC4bcnF7ZKyHZnmaGPXSjmEzRVc,6780
2
- fastapi_cli-0.0.2.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
3
- fastapi_cli-0.0.2.dist-info/entry_points.txt,sha256=RLUGtkrAf9gNKxCS3EeJNYN8AF1Er364vjW7bnEcCA8,50
4
- fastapi_cli-0.0.2.dist-info/licenses/LICENSE,sha256=FqD5B4VbXJnefprQseE0U8llL6FxojC-i8muZy7YmSU,1086
5
- fastapi_cli/__init__.py,sha256=QvlVh4JTl3JL7jQAja76yKtT-IvF4631ASjWY1wS6AQ,22
1
+ fastapi_cli-0.0.3.dist-info/METADATA,sha256=Y-hqiy0ZfFTGeTamhue94ks6dDVYJoBXjECqKwuccxw,6955
2
+ fastapi_cli-0.0.3.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
3
+ fastapi_cli-0.0.3.dist-info/entry_points.txt,sha256=RLUGtkrAf9gNKxCS3EeJNYN8AF1Er364vjW7bnEcCA8,50
4
+ fastapi_cli-0.0.3.dist-info/licenses/LICENSE,sha256=FqD5B4VbXJnefprQseE0U8llL6FxojC-i8muZy7YmSU,1086
5
+ fastapi_cli/__init__.py,sha256=4GZKi13lDTD25YBkGakhZyEQZWTER_OWQMNPoH_UM2c,22
6
6
  fastapi_cli/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30
7
- fastapi_cli/cli.py,sha256=OkiQenSf9HgBN7FxTTAoLfzqySsX1Z6FGxlRU7ILcGM,8754
7
+ fastapi_cli/cli.py,sha256=SA-0m7F4uI-etRHDZwFfN_C8nYEfsetFYZf4vCNs82c,9032
8
8
  fastapi_cli/discover.py,sha256=5QbjDHEbfNUQoYG7ZXRfYWvSJkj74ojkFtzUftPb2VE,5285
9
9
  fastapi_cli/exceptions.py,sha256=AHRSqd43fbqN5IpX-Fq389k9MoEK_q28wVFL7oqPNcc,47
10
10
  fastapi_cli/logging.py,sha256=lI7rIsioTJQsxDuWpG5YR_brWpIAUY4vDnhYm5p91ws,664
11
11
  fastapi_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- fastapi_cli-0.0.2.dist-info/RECORD,,
12
+ fastapi_cli-0.0.3.dist-info/RECORD,,