Skip to main content

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:
    1. Type the command in the terminal to run the application.
      mdapisp
      
    2. Open to fastapi swegger test page (default http://127.0.0.1:8000/docs#/) with a web browser
    3. Upload human.csv, fruit.csv using Create Upload Csvfiles
    4. Select query using Read Table
    5. Check cache contents using Read Cache
    6. Upload csvfile again and check cache contents

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


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)

Uploaded Source

Built Distribution

mdapisp-0.1.1a3-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page