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] [--dummy]
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
--dummy Whether to generate dummy data generator
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.1.0.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for django_rest_gen-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8169aadd74a860734e1a1116ce3d6f1c89ddbe81b974ffcf431dafdf8d836e4 |
|
MD5 | 022beac918aac61b83895395f8a0eb5a |
|
BLAKE2b-256 | 6efc4e4f3e322ae6d14551b14ce292a4e878eaf9e91bdd1ac3b4bdd6bbf159a7 |