Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cr-mao/flask-skeleton
flask-skeleton
https://github.com/cr-mao/flask-skeleton
api-server flask flask-application flask-skeleton python-api
Last synced: 6 days ago
JSON representation
flask-skeleton
- Host: GitHub
- URL: https://github.com/cr-mao/flask-skeleton
- Owner: cr-mao
- Created: 2024-09-05T06:53:00.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T03:33:32.000Z (2 months ago)
- Last Synced: 2024-09-06T12:07:57.180Z (2 months ago)
- Topics: api-server, flask, flask-application, flask-skeleton, python-api
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## runner
基于flask 的 api 脚手架框架,集成配置、log、sqlalchemy,目标就是快速能进行日常api开发。
api 风格: jsonschema
### use age
```shell
export PYTHONPATH=.
# 启动web api服务
python scripts/web.py# demo job服务, 如一次性运行脚本
python scripts/demo_job.py# 守护进程 job服务
python scripts/daemon_job_demo.py
```### docs
- [api处理](docs/apiHanding.md)
### demo request
```shell
curl --location --request POST 'http://127.0.0.1:5000/runner/domo_api/info' \
--header 'content-type: application/json' \
--data-raw '{
"arg1": "abcdefghi"
}'# method=>demoHandler.info
```