Coder Social home page Coder Social logo

flask_api_from_mysql's Introduction

根据 Mysql 的库表快速搭建 api 接口

自己项目中拆分出来的一个小工具

  • 1. 通过数据库表结构自动生成 api 接口
  • 2. 通过数据库表结构自动生成 api 接口文档

优点

  • 通过数据库表结构自动生成 api 接口,减少重复劳动
  • 格式化返回 更加的规范
  • 读取的配置文件 可以自定义查询配置
  • 定时任务,自动更新接口

如何使用

  1. python 版本 3.9.18 已测试
  2. 安装依赖
    pip install -r requirements.txt
  3. 修改配置文件 utils/setting.py 中的配置
  4. 运行 apiFromSsql.py 文件
    python apiFromSsql.py

Building API Interfaces Quickly Based on Mysql Database Tables

A small tool extracted from a personal project

  • 1. Automatically generate API interfaces based on database table structure
  • 2. Automatically generate API interface documentation based on database table structure

Advantages

  • Automatically generate API interfaces based on database table structure to reduce repetitive work
  • Standardized formatting of returns
  • Customizable query configurations in the read configuration file
  • Scheduled tasks for automatic interface updates

How to Use

  1. Tested with Python version 3.9.18
  2. Install dependencies
    pip install -r requirements.txt
  3. Modify configurations in the utils/setting.py file
  4. Run the apiFromSsql.py file
    python apiFromSsql.py

flask_api_from_mysql's People

Contributors

nonewind avatar zihengwind avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.