A typescript code generator for Django Rest Framework.
Project description
django-rest-tsg
A typescript code generator for Django Rest Framework.
Usage
Install using pip
$ pip install django_rest_tsg
Put a tsgconfig.py file with build tasks into your django project’s root.
from django_rest_tsg.build import build
build_tasks = [
build(Foo),
build(BarSerializer, 'app/src/app/core', {'alias': 'Foobar'}),
]
Add django_rest_tsg to your INSTALLED_APPS.
INSTALLED_APPS = [
...
'django_rest_tsg'
]
Run buildtypescript command on manage.py.
$ python manage.py buildtypescript
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for django_rest_tsg-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b192ed18387542aec20c3fae9acc7859a6c0dc95bac0b13a73b102023906b6db |
|
MD5 | 4ec8c6c99b5cb66f477929ebbb12e0ce |
|
BLAKE2b-256 | c43cd83c61b1d57da77731c0823f54cd9f44bf51db27c1fea96ae7b670edf7ae |