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
- Host: GitHub
- URL: https://github.com/frontmage/pymysql
- Owner: FrontMage
- Created: 2019-01-10T08:08:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-10T09:41:31.000Z (over 7 years ago)
- Last Synced: 2025-03-30T15:13:44.456Z (about 1 year ago)
- Topics: flask, mysql, python, rest-api
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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