simple api for Make Data API Server Project
Project description
mdapisp
Project description
- This is a code snippet level code that roughly implements the CSV file upload and SQL Select Query functions.
Execution environment
- written and tested in Python 3.7.3 (via pyenv virtual environment)
- if you are using pip as your package manager
pip install mdapisp
- if you are using poetry as your package manager
poetry install
How to run
- The basic execution scenario is as follows:
- Type the command in the terminal to run the application.
mdapisp
- Open to fastapi swegger test page (default http://127.0.0.1:8000/docs#/) with a web browser
- Upload human.csv, fruit.csv using Create Upload Csvfiles
- Select query using Read Table
- Check cache contents using Read Cache
- Upload csvfile again and check cache contents
- Type the command in the terminal to run the application.
architecture design & the reason for design
- Focused on minimum difficulty and minimum cost implementation to meet the requirements specification.
- only the logic for the api was written without implementing a web server (ex. nginx, apache, etc.), the database also used sqlite, and it was written as lightly as possible using fastapi to avoid swegger implementation.
api specification
- api.md
- If you want to exact api specification, Please refer to
http://127.0.0.1:8000/redoc
or the openapi.json file in the directory for the exact specification
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mdapisp-0.1.1a3.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for mdapisp-0.1.1a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf50d75887b4078f8d80723275747182e69e3d0c54d17da2e54118437337ac5 |
|
MD5 | 65a1b958df50df0b7604917993361431 |
|
BLAKE2b-256 | 751f33f4fd142dbe4ea2aa02afa7299794ff091e703a85ecb0408ba2eed59ae8 |