gRPC for Django
Project description
gRPC for Django inspired by djangorestframework.
Documentation
The full documentation is at https://django-grpc-framework.readthedocs.io.
Quickstart
Install django-grpc-framework:
pip install django-grpc-framework
Add it to your INSTALLED_APPS:
INSTALLED_APPS = [ ... 'grpc_framework', ]
Create your grpc app:
python manage.py grpcstartapp <app_name>
Define your proto in <app_name>/<app_name>.proto.
Add your app to GRPC_APPS:
GRPC_APPS = [ '<app_name>', ]
Generate protocol buffer compiler:
python manage.py grpcgenerate
Create your service in <app_name>/service.py.
Start a grpc server with your apps:
python manage.py grpcrunserver
Todo
support async
more interceptors
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
History
0.1.0 (2020-02-11)
First release on PyPI.
0.2.0 (2020-02-23)
Add tests and docs.
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
File details
Details for the file django-grpc-framework-0.2.0.tar.gz
.
File metadata
- Download URL: django-grpc-framework-0.2.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9548215b02f42622b51f3b98d7a4f7eec92aed9c2808273660f760819dcc32cc |
|
MD5 | f1f11a81dcc613638c9818ec5b448ece |
|
BLAKE2b-256 | 4349a771e03762ee21adcea8a5a4c49c5ac519854a849acca44fd911cf477f46 |
File details
Details for the file django_grpc_framework-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_grpc_framework-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3388436983affa7bceaeacbcecdb9d122faa56a4c8db9854212c813caf1f5413 |
|
MD5 | 7c5215a9b42bbd9abc6d1aba3ab41028 |
|
BLAKE2b-256 | 15b0b2e3bf7df13a952e47e428b8d235cdb34e88c91d228788093f78ea340703 |