Rest API Code Generator
Project description
django-rest-gen
This generates a fully functioning apis using generated serializers and class-views.
How to use it
- Install it in your django project
pip install django-rest-gen
. - Run it and specify your app
python -m django-rest-gen
. You should also specify the appropriate arguments (e.g.,python -m django-rest-gen --settings iires/settings.py --apppath iirapp
) Note: if the file already exists and is not empty, the content will be printed instead in the stdout
Arguments
usage: django-rest-gen [-h] [--pythonpath PYTHONPATH] --settings SETTINGS --apppath APPPATH [--overwrite]
Generate Django REST API code
optional arguments:
-h, --help show this help message and exit
--pythonpath PYTHONPATH
Python Path directory.
--settings SETTINGS The path to the django project settings
--apppath APPPATH The path to the app
--overwrite Whether to overwrite existing files if any
Limitations
- Flat. No nesting is provided as it depends on user preferences.
Rebuild package
python3 -m build
python3 -m twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-rest-gen-0.0.6.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for django_rest_gen-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71eb2802ee5b32705591db8d6c125b5f9e05dfae1dfc2c25166698e0dcf0facb |
|
MD5 | 19e004da4e28390db64318c817f8f7f3 |
|
BLAKE2b-256 | 551f8e3298110214e30e05d8bf549c29db5189aaa3f74a82c1b2c60da7638f4f |