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

https://github.com/laiagdla/postmethod_101

POST METHOD 101 is a simple example of communication between server API and client using Fastapi and Streamlit
https://github.com/laiagdla/postmethod_101

fastapi post requests-python streamlit

Last synced: 6 months ago
JSON representation

POST METHOD 101 is a simple example of communication between server API and client using Fastapi and Streamlit

Awesome Lists containing this project

README

          

# POST METHOD 101
## This is a simple example of communication between server API and client using **Fastapi** and **Streamlit**

---
### setup
Run the following commands in different terminal for testing.
Make sure that port 8000 and 8501 are available
- `make run_api`
- `make run_streamlit`

BASE_URL is specified in params.py to localhost:8000

---
### 5 different aplications are tested
1. Sending and receiving dataframes
2. Sending forms
3. **[Easy]** Sending a file using POST request and receiving information in the same request
4. **[Advanced]** Sending a file using POST, and fetching the result with GET
5. Sending multiple files.