Skip to main content

Speed up restframework develop

Project description

# rfw_utils

本库的目的在于根据一个给定的 json,快速生成一个 RESTful 的后台接口,但是不关心具体的业务逻辑,需要你在生成的接口上添加其他的逻辑。生成的代码可作为脚手架或者快速原型的工具。



## 截图如下

依据 test.json 生成的 models.py

![](images/2.png)

依据 test.json 的接口生成的 API 接口

![](images/1.png)



## 安装 & 使用

* ```git clone git@github.com:h3l/rfw_utils.git```

* 切换到你所处的虚拟环境

* python setup.py install 直接安装

* 在 Django 的 setting.py 的 INSTALLED_APPS 中添加 "rfw_utils"

* ```python manage.py startapp_skeleton XXX.json```(XXX.json 为配置文件,例子可见代码库中的test.json)

* 将上一步中的 XXX 加入INSTALLED_APPS 中,在 urls 中添加新 app 的urls,即完成了快速构建的过程



## TODO

鉴于 Django admin 的二次开发成本很高,可以依据 json 配置文件生成相应的前端代码,方便快速开发。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rfw_utils-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file rfw_utils-0.0.1.tar.gz.

File metadata

  • Download URL: rfw_utils-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rfw_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e717f1da8379ec68adae92094d411f14b8717d68f8818c0c05b6fcd8398feda3
MD5 1a92f99a96b2b79bc304685c35cc7014
BLAKE2b-256 bbaa431cebb9bfd2bb49b22a0571b237e0027c07ffbb5533778da83c0f6e6e82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page