fastapi-cli 0.0.4__py3-none-any.whl → 0.0.5__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.4"
1
+ __version__ = "0.0.5"
fastapi_cli/discover.py CHANGED
@@ -22,24 +22,20 @@ except ImportError: # pragma: no cover
22
22
 
23
23
 
24
24
  def get_default_path() -> Path:
25
- path = Path("main.py")
26
- if path.is_file():
27
- return path
28
- path = Path("app.py")
29
- if path.is_file():
30
- return path
31
- path = Path("api.py")
32
- if path.is_file():
33
- return path
34
- path = Path("app/main.py")
35
- if path.is_file():
36
- return path
37
- path = Path("app/app.py")
38
- if path.is_file():
39
- return path
40
- path = Path("app/api.py")
41
- if path.is_file():
42
- return path
25
+ potential_paths = (
26
+ "main.py",
27
+ "app.py",
28
+ "api.py",
29
+ "app/main.py",
30
+ "app/app.py",
31
+ "app/api.py",
32
+ )
33
+
34
+ for full_path in potential_paths:
35
+ path = Path(full_path)
36
+ if path.is_file():
37
+ return path
38
+
43
39
  raise FastAPICLIException(
44
40
  "Could not find a default file to run, please provide an explicit path"
45
41
  )
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastapi-cli
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: Run and manage FastAPI apps from the command line with FastAPI CLI. 🚀
5
- Home-page: https://github.com/tiangolo/fastapi-cli
5
+ Home-page: https://github.com/fastapi/fastapi-cli
6
6
  Author-Email: =?utf-8?q?Sebasti=C3=A1n_Ram=C3=ADrez?= <tiangolo@gmail.com>
7
7
  License: MIT
8
8
  Classifier: Intended Audience :: Information Technology
@@ -20,7 +20,6 @@ Classifier: Framework :: FastAPI
20
20
  Classifier: Intended Audience :: Developers
21
21
  Classifier: License :: OSI Approved :: MIT License
22
22
  Classifier: Programming Language :: Python :: 3 :: Only
23
- Classifier: Programming Language :: Python :: 3.7
24
23
  Classifier: Programming Language :: Python :: 3.8
25
24
  Classifier: Programming Language :: Python :: 3.9
26
25
  Classifier: Programming Language :: Python :: 3.10
@@ -28,32 +27,32 @@ Classifier: Programming Language :: Python :: 3.11
28
27
  Classifier: Programming Language :: Python :: 3.12
29
28
  Classifier: License :: OSI Approved :: MIT License
30
29
  Project-URL: Documentation, https://fastapi.tiangolo.com
31
- Project-URL: Homepage, https://github.com/tiangolo/fastapi-cli
32
- Project-URL: Repository, https://github.com/tiangolo/fastapi-cli
30
+ Project-URL: Homepage, https://github.com/fastapi/fastapi-cli
31
+ Project-URL: Repository, https://github.com/fastapi/fastapi-cli
33
32
  Requires-Python: >=3.8
34
33
  Requires-Dist: typer>=0.12.3
35
- Requires-Dist: fastapi; extra == "standard"
34
+ Requires-Dist: uvicorn[standard]>=0.15.0
36
35
  Requires-Dist: uvicorn[standard]>=0.15.0; extra == "standard"
37
36
  Provides-Extra: standard
38
37
  Description-Content-Type: text/markdown
39
38
 
40
39
  # FastAPI CLI
41
40
 
42
- <a href="https://github.com/tiangolo/fastapi-cli/actions/workflows/test.yml" target="_blank">
43
- <img src="https://github.com/tiangolo/fastapi-cli/actions/workflows/test.yml/badge.svg" alt="Test">
41
+ <a href="https://github.com/fastapi/fastapi-cli/actions/workflows/test.yml" target="_blank">
42
+ <img src="https://github.com/fastapi/fastapi-cli/actions/workflows/test.yml/badge.svg" alt="Test">
44
43
  </a>
45
- <a href="https://github.com/tiangolo/fastapi-cli/actions/workflows/publish.yml" target="_blank">
46
- <img src="https://github.com/tiangolo/fastapi-cli/actions/workflows/publish.yml/badge.svg" alt="Publish">
44
+ <a href="https://github.com/fastapi/fastapi-cli/actions/workflows/publish.yml" target="_blank">
45
+ <img src="https://github.com/fastapi/fastapi-cli/actions/workflows/publish.yml/badge.svg" alt="Publish">
47
46
  </a>
48
- <a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/tiangolo/fastapi-cli" target="_blank">
49
- <img src="https://coverage-badge.samuelcolvin.workers.dev/tiangolo/fastapi-cli.svg" alt="Coverage">
47
+ <a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/fastapi/fastapi-cli" target="_blank">
48
+ <img src="https://coverage-badge.samuelcolvin.workers.dev/fastapi/fastapi-cli.svg" alt="Coverage">
50
49
  <a href="https://pypi.org/project/fastapi-cli" target="_blank">
51
50
  <img src="https://img.shields.io/pypi/v/fastapi-cli?color=%2334D058&label=pypi%20package" alt="Package version">
52
51
  </a>
53
52
 
54
53
  ---
55
54
 
56
- **Source Code**: <a href="https://github.com/tiangolo/fastapi-cli" target="_blank">https://github.com/tiangolo/fastapi-cli</a>
55
+ **Source Code**: <a href="https://github.com/fastapi/fastapi-cli" target="_blank">https://github.com/fastapi/fastapi-cli</a>
57
56
 
58
57
  ---
59
58
 
@@ -63,7 +62,7 @@ Run and manage FastAPI apps from the command line with FastAPI CLI. 🚀
63
62
 
64
63
  **FastAPI CLI** is a command line program `fastapi` that you can use to serve your FastAPI app, manage your FastAPI project, and more.
65
64
 
66
- When you install FastAPI (e.g. with `pip install fastapi`), it includes a package called `fastapi-cli`, this package provides the `fastapi` command in the terminal.
65
+ When you install FastAPI (e.g. with `pip install "fastapi[standard]"`), it includes a package called `fastapi-cli`, this package provides the `fastapi` command in the terminal.
67
66
 
68
67
  To run your FastAPI app for development, you can use the `fastapi dev` command:
69
68
 
@@ -0,0 +1,12 @@
1
+ fastapi_cli-0.0.5.dist-info/METADATA,sha256=faB4x1HRZohNWY5TRzUY3TWcln8wnFs9nLWnPY3UgQs,6970
2
+ fastapi_cli-0.0.5.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
3
+ fastapi_cli-0.0.5.dist-info/entry_points.txt,sha256=RLUGtkrAf9gNKxCS3EeJNYN8AF1Er364vjW7bnEcCA8,50
4
+ fastapi_cli-0.0.5.dist-info/licenses/LICENSE,sha256=FqD5B4VbXJnefprQseE0U8llL6FxojC-i8muZy7YmSU,1086
5
+ fastapi_cli/__init__.py,sha256=S7u1lbuWmM3A3ajykBialmPoJUK6Jg-WmNqM-9OZFdk,22
6
+ fastapi_cli/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30
7
+ fastapi_cli/cli.py,sha256=o7dRxEfZ_lBO72b6RZEAa_wKua2pkK5kp6Rr5PhZML4,9278
8
+ fastapi_cli/discover.py,sha256=nAhYW4bbeM7uOyWLEy4f0BilJNnY1fxk9q17c_973WM,5416
9
+ fastapi_cli/exceptions.py,sha256=AHRSqd43fbqN5IpX-Fq389k9MoEK_q28wVFL7oqPNcc,47
10
+ fastapi_cli/logging.py,sha256=lI7rIsioTJQsxDuWpG5YR_brWpIAUY4vDnhYm5p91ws,664
11
+ fastapi_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
+ fastapi_cli-0.0.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: pdm-backend (2.3.0)
2
+ Generator: pdm-backend (2.3.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,12 +0,0 @@
1
- fastapi_cli-0.0.4.dist-info/METADATA,sha256=BygSIC-5T6QJPYcaT2vP8vnOAcv8zA1JAV6OmhxuNr4,7022
2
- fastapi_cli-0.0.4.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
3
- fastapi_cli-0.0.4.dist-info/entry_points.txt,sha256=RLUGtkrAf9gNKxCS3EeJNYN8AF1Er364vjW7bnEcCA8,50
4
- fastapi_cli-0.0.4.dist-info/licenses/LICENSE,sha256=FqD5B4VbXJnefprQseE0U8llL6FxojC-i8muZy7YmSU,1086
5
- fastapi_cli/__init__.py,sha256=1mptEzQihbdyqqzMgdns_j5ZGK9gz7hR2bsgA_TnjO4,22
6
- fastapi_cli/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30
7
- fastapi_cli/cli.py,sha256=o7dRxEfZ_lBO72b6RZEAa_wKua2pkK5kp6Rr5PhZML4,9278
8
- fastapi_cli/discover.py,sha256=MxXPVqd9X-cgUdikVECjs8BtXcXygX8g3zppUEyqK5Y,5570
9
- fastapi_cli/exceptions.py,sha256=AHRSqd43fbqN5IpX-Fq389k9MoEK_q28wVFL7oqPNcc,47
10
- fastapi_cli/logging.py,sha256=lI7rIsioTJQsxDuWpG5YR_brWpIAUY4vDnhYm5p91ws,664
11
- fastapi_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- fastapi_cli-0.0.4.dist-info/RECORD,,