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

https://github.com/frontmage/pymysql

Turn mysql into REST apis
https://github.com/frontmage/pymysql

flask mysql python rest-api

Last synced: about 2 months ago
JSON representation

Turn mysql into REST apis

Awesome Lists containing this project

README

          

## Flask based mysql to REST transformer

### Install

Requires anaconda

```bash
$ conda env create -f pymysql.yml
```

### Deploy

`CFG_PATH='path to mysql.json' gunicorn -w 4 -b 127.0.0.1:5000 main:app`

`mysql.json`

```json
{
"host": "",
"port": 3306,
"user": "root",
"password": "",
"db": ""
}
```

#### Dev

```bash
$ ./start_dev.sh
```

#### API

`GET /////`

Where is like `field1,field2,field3`

> POST
> PUT
> DELETE