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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file mdapisp-0.1.1a3.tar.gz.

File metadata

  • Download URL: mdapisp-0.1.1a3.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.7.3 Linux/5.4.0-67-generic

File hashes

Hashes for mdapisp-0.1.1a3.tar.gz
Algorithm Hash digest
SHA256 ac8cc1d1f35ae35ee4ebb80274bd2f6e5108deb6b835d5049692066cd0d5d1d9
MD5 8b644e4604199e3bc2be0dbf4523d776
BLAKE2b-256 95c8027cd316a592361c916a08d5801955c114057c78741f1f17f640f50094d9

See more details on using hashes here.

File details

Details for the file mdapisp-0.1.1a3-py3-none-any.whl.

File metadata

  • Download URL: mdapisp-0.1.1a3-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.7.3 Linux/5.4.0-67-generic

File hashes

Hashes for mdapisp-0.1.1a3-py3-none-any.whl
Algorithm Hash digest
SHA256 2cf50d75887b4078f8d80723275747182e69e3d0c54d17da2e54118437337ac5
MD5 65a1b958df50df0b7604917993361431
BLAKE2b-256 751f33f4fd142dbe4ea2aa02afa7299794ff091e703a85ecb0408ba2eed59ae8

See more details on using hashes here.

Supported by

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