Coder Social home page Coder Social logo

galaxyjia / api-shop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pcloth/api-shop

0.0 1.0 0.0 1.42 MB

一个基于django和flask的轻量级restful工具包。python django/flask/bottle restful api shop.

Home Page: https://pcloth.github.io/api-shop/

Python 60.21% HTML 37.96% JavaScript 1.83%

api-shop's Introduction

api-shop PyPI PyPI - Downloads

api-shop:一个易用的、快速的restful-api接口工具包,兼容:django / flask / bottle

一切只为少加班。

demo 图片

demo

核心功能:

  1. 配置化api生成。
  2. 自动校验request提交的数据,并转换成指定格式,支持:int,float,list,dict,set,tuple,bool
  3. 自动生成api文档,并提供一个web页面可供查询和mock数据演示。
  4. 兼容 django , flask , bottle (如果不指定框架,默认按这个顺序识别框架)
  5. 自动生成接口骨架文件功能(请谨慎开启)。
  6. 自定义格式转换器,data_format.datetime格式转换类;'2019-01-18 23:25:25' to datetime
  7. 多国语言支持,也支持自定义语言包。
  8. 文档热重载。
  9. 默认值支持方法函数。
  10. 支持url中包含参数,例如 /api/user/<id>,并且在配置methods参数的时候设置它的规则。
  11. 支持多url绑定一个接口
  12. 支持指定参数的可选项,例如:[1,4,7],收到这个列表之外的参数就会触发bad_request
  13. 可以在代码中直接调用Api业务代码:get_api_result_jsonget_api_result_response

api-shop's People

Contributors

pcloth 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.