Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)