Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipedemacedo/python-fast-api
Hello World using Python Fast API
https://github.com/felipedemacedo/python-fast-api
api docker fastapi hello hello-world python world
Last synced: about 13 hours ago
JSON representation
Hello World using Python Fast API
- Host: GitHub
- URL: https://github.com/felipedemacedo/python-fast-api
- Owner: felipedemacedo
- Created: 2020-02-20T19:04:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T15:53:10.000Z (over 3 years ago)
- Last Synced: 2023-02-26T16:38:21.825Z (over 1 year ago)
- Topics: api, docker, fastapi, hello, hello-world, python, world
- Language: Python
- Homepage: https://github.com/felipedemacedo/python-fast-api
- Size: 43.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python API with FastAPI
## How to run
### Default
```java
pip install --upgrade pip
python -m pip install -r requirements.txt
pipenv shell
uvicorn main:app
```Sample Output:
```java
INFO: Started server process [5228]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
```### Inside a Docker Container
```java
pip install --upgrade pip
python -m pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 800
```## Docs
```java
http://127.0.0.1:8000/docs#/
```![Docs](print.png)