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
options:
-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
Automatic detection
If --settings and --apppath are not passed, it will try to detect them. It will look for anypath
within your project that has settings.py to be the default settings path and any directory that has
models.py to be the app path. You need to specify this in case you have multiple apps in your django
project.
Limitations
- Flat. No nesting is provided as it depends on user preferences.
Rebuild package
python3 -m buildpython3 -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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_rest_gen-0.1.2.tar.gz.
File metadata
- Download URL: django_rest_gen-0.1.2.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2049110c53f7b46f7a2866bedd1d6c31427aa08b45ccf2e41d1d186e2f8ad807
|
|
| MD5 |
bd2cc9477927cef45cb44af687f43aef
|
|
| BLAKE2b-256 |
5742de3e74f44056cddc485dd140304e5dd59f1e1c53de40766c096c300148bc
|
File details
Details for the file django_rest_gen-0.1.2-py3-none-any.whl.
File metadata
- Download URL: django_rest_gen-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12737112d9e47cc2bf31979316c94e8f65ea964f28a392ef6131bfb8ab736159
|
|
| MD5 |
c51cfa45cd1469bab6d25c014381f0d1
|
|
| BLAKE2b-256 |
c0156dd3670f8a6d5f411ea0cd7c867141cf8b29d0577baaabd6d638a22352a4
|