second commit
This commit is contained in:
1
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/INSTALLER
vendored
Normal file
1
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/INSTALLER
vendored
Normal file
@ -0,0 +1 @@
|
||||
pip
|
134
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/METADATA
vendored
Normal file
134
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/METADATA
vendored
Normal file
@ -0,0 +1,134 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: fastapi-cli
|
||||
Version: 0.0.7
|
||||
Summary: Run and manage FastAPI apps from the command line with FastAPI CLI. 🚀
|
||||
Author-Email: =?utf-8?q?Sebasti=C3=A1n_Ram=C3=ADrez?= <tiangolo@gmail.com>
|
||||
License: MIT
|
||||
Classifier: Intended Audience :: Information Technology
|
||||
Classifier: Intended Audience :: System Administrators
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Classifier: Topic :: Software Development :: Libraries
|
||||
Classifier: Topic :: Software Development
|
||||
Classifier: Typing :: Typed
|
||||
Classifier: Development Status :: 4 - Beta
|
||||
Classifier: Framework :: FastAPI
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Project-URL: Homepage, https://github.com/fastapi/fastapi-cli
|
||||
Project-URL: Documentation, https://fastapi.tiangolo.com/fastapi-cli/
|
||||
Project-URL: Repository, https://github.com/fastapi/fastapi-cli
|
||||
Project-URL: Issues, https://github.com/fastapi/fastapi-cli/issues
|
||||
Project-URL: Changelog, https://github.com/fastapi/fastapi-cli/blob/main/release-notes.md
|
||||
Requires-Python: >=3.8
|
||||
Requires-Dist: typer>=0.12.3
|
||||
Requires-Dist: uvicorn[standard]>=0.15.0
|
||||
Requires-Dist: rich-toolkit>=0.11.1
|
||||
Provides-Extra: standard
|
||||
Requires-Dist: uvicorn[standard]>=0.15.0; extra == "standard"
|
||||
Description-Content-Type: text/markdown
|
||||
|
||||
# FastAPI CLI
|
||||
|
||||
<a href="https://github.com/fastapi/fastapi-cli/actions/workflows/test.yml" target="_blank">
|
||||
<img src="https://github.com/fastapi/fastapi-cli/actions/workflows/test.yml/badge.svg" alt="Test">
|
||||
</a>
|
||||
<a href="https://github.com/fastapi/fastapi-cli/actions/workflows/publish.yml" target="_blank">
|
||||
<img src="https://github.com/fastapi/fastapi-cli/actions/workflows/publish.yml/badge.svg" alt="Publish">
|
||||
</a>
|
||||
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/fastapi/fastapi-cli" target="_blank">
|
||||
<img src="https://coverage-badge.samuelcolvin.workers.dev/fastapi/fastapi-cli.svg" alt="Coverage">
|
||||
<a href="https://pypi.org/project/fastapi-cli" target="_blank">
|
||||
<img src="https://img.shields.io/pypi/v/fastapi-cli?color=%2334D058&label=pypi%20package" alt="Package version">
|
||||
</a>
|
||||
|
||||
---
|
||||
|
||||
**Source Code**: <a href="https://github.com/fastapi/fastapi-cli" target="_blank">https://github.com/fastapi/fastapi-cli</a>
|
||||
|
||||
---
|
||||
|
||||
Run and manage FastAPI apps from the command line with FastAPI CLI. 🚀
|
||||
|
||||
## Description
|
||||
|
||||
**FastAPI CLI** is a command line program `fastapi` that you can use to serve your FastAPI app, manage your FastAPI project, and more.
|
||||
|
||||
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.
|
||||
|
||||
To run your FastAPI app for development, you can use the `fastapi dev` command:
|
||||
|
||||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ fastapi dev main.py
|
||||
|
||||
FastAPI Starting development server 🚀
|
||||
|
||||
Searching for package file structure from directories with __init__.py files
|
||||
Importing from /home/user/code/awesomeapp
|
||||
|
||||
module 🐍 main.py
|
||||
|
||||
code Importing the FastAPI app object from the module with the following code:
|
||||
|
||||
from main import app
|
||||
|
||||
app Using import string: main:app
|
||||
|
||||
server Server started at http://127.0.0.1:8000
|
||||
server Documentation at http://127.0.0.1:8000/docs
|
||||
|
||||
tip Running in development mode, for production use: fastapi run
|
||||
|
||||
Logs:
|
||||
|
||||
INFO Will watch for changes in these directories: ['/home/user/code/awesomeapp']
|
||||
INFO Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
|
||||
INFO Started reloader process [4106097] using WatchFiles
|
||||
INFO Started server process [4106120]
|
||||
INFO Waiting for application startup.
|
||||
INFO Application startup complete.
|
||||
```
|
||||
|
||||
</div>
|
||||
|
||||
That command line program called `fastapi` is **FastAPI CLI**.
|
||||
|
||||
FastAPI CLI takes the path to your Python program and automatically detects the variable with the FastAPI (commonly named `app`) and how to import it, and then serves it.
|
||||
|
||||
For production you would use `fastapi run` instead. 🚀
|
||||
|
||||
Internally, **FastAPI CLI** uses <a href="https://www.uvicorn.org" class="external-link" target="_blank">Uvicorn</a>, a high-performance, production-ready, ASGI server. 😎
|
||||
|
||||
## `fastapi dev`
|
||||
|
||||
When you run `fastapi dev`, it will run on development mode.
|
||||
|
||||
By default, it will have **auto-reload** enabled, so it will automatically reload the server when you make changes to your code. This is resource intensive and could be less stable than without it, you should only use it for development.
|
||||
|
||||
By default it will listen on the IP address `127.0.0.1`, which is the IP for your machine to communicate with itself alone (`localhost`).
|
||||
|
||||
## `fastapi run`
|
||||
|
||||
When you run `fastapi run`, it will run on production mode by default.
|
||||
|
||||
It will have **auto-reload disabled** by default.
|
||||
|
||||
It will listen on the IP address `0.0.0.0`, which means all the available IP addresses, this way it will be publicly accessible to anyone that can communicate with the machine. This is how you would normally run it in production, for example, in a container.
|
||||
|
||||
In most cases you would (and should) have a "termination proxy" handling HTTPS for you on top, this will depend on how you deploy your application, your provider might do this for you, or you might need to set it up yourself. You can learn more about it in the <a href="https://fastapi.tiangolo.com/deployment/" class="external-link" target="_blank">FastAPI Deployment documentation</a>.
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the terms of the MIT license.
|
25
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/RECORD
vendored
Normal file
25
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/RECORD
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
../../../bin/fastapi,sha256=AdVXPLdKzg1vOMTjfKQ18ckRzN5o20JQS5vKNfZ_zQU,251
|
||||
fastapi_cli-0.0.7.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
fastapi_cli-0.0.7.dist-info/METADATA,sha256=7K1-n7Rg4Mj0Ry1In-jcfvqKlNN71kESQoVLbFfShE4,6152
|
||||
fastapi_cli-0.0.7.dist-info/RECORD,,
|
||||
fastapi_cli-0.0.7.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
fastapi_cli-0.0.7.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
||||
fastapi_cli-0.0.7.dist-info/entry_points.txt,sha256=L-dwDLGAhOlBVadq5cDBAB1i8y4oSFueX02A4gmMKco,65
|
||||
fastapi_cli-0.0.7.dist-info/licenses/LICENSE,sha256=FqD5B4VbXJnefprQseE0U8llL6FxojC-i8muZy7YmSU,1086
|
||||
fastapi_cli/__init__.py,sha256=R9xOYoYrWKcfO5zvTeGC3m_eDNOvxMd8CocQs2tLufo,22
|
||||
fastapi_cli/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30
|
||||
fastapi_cli/__pycache__/__init__.cpython-311.pyc,,
|
||||
fastapi_cli/__pycache__/__main__.cpython-311.pyc,,
|
||||
fastapi_cli/__pycache__/cli.cpython-311.pyc,,
|
||||
fastapi_cli/__pycache__/discover.cpython-311.pyc,,
|
||||
fastapi_cli/__pycache__/exceptions.cpython-311.pyc,,
|
||||
fastapi_cli/__pycache__/logging.cpython-311.pyc,,
|
||||
fastapi_cli/cli.py,sha256=qFLyywyl-oXewhijF68AiQGH9RGwIhzZSNobpN1m3Gw,11391
|
||||
fastapi_cli/discover.py,sha256=Q3CSEWt2V68JcNuAv31l7IcO_-146n2dBUSdtexJPYE,3971
|
||||
fastapi_cli/exceptions.py,sha256=AHRSqd43fbqN5IpX-Fq389k9MoEK_q28wVFL7oqPNcc,47
|
||||
fastapi_cli/logging.py,sha256=Yh2Nx5eC8XE_a3psTMO0kA5BM8lf63bBCqSMyDxUN7s,690
|
||||
fastapi_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
fastapi_cli/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
fastapi_cli/utils/__pycache__/__init__.cpython-311.pyc,,
|
||||
fastapi_cli/utils/__pycache__/cli.cpython-311.pyc,,
|
||||
fastapi_cli/utils/cli.py,sha256=tAFRHnSurPgGX-JneQhGUJrzYLuuEKn1SxHK8Zj3nng,2268
|
0
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/REQUESTED
vendored
Normal file
0
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/REQUESTED
vendored
Normal file
4
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/WHEEL
vendored
Normal file
4
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/WHEEL
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: pdm-backend (2.4.3)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
5
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/entry_points.txt
vendored
Normal file
5
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/entry_points.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
[console_scripts]
|
||||
fastapi = fastapi_cli.cli:main
|
||||
|
||||
[gui_scripts]
|
||||
|
21
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/licenses/LICENSE
vendored
Normal file
21
env/lib/python3.11/site-packages/fastapi_cli-0.0.7.dist-info/licenses/LICENSE
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2024 Sebastián Ramírez
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
Reference in New Issue
Block a user