BTHLabs JSONRPC - django integration
Overview
BTHLabs JSONRPC is a set of Python libraries that provide extensible framework for adding JSONRPC interfaces to existing Python Web applications.
The django package provides Django integration.
Installation
$ pip install bthlabs_jsonrpc_django
Example
# settings.py
INSTALLED_APPS = [
# ...
'bthlabs_jsonrpc_django',
]
# settings.py
JSONRPC_METHOD_MODULES = [
# ...
'your_app.rpc_methods',
]
# urls.py
urlpatterns = [
# ...
path('rpc', JSONRPCView.as_view()),
]
# your_app/rpc_methods.py
from bthlabs_jsonrpc_core import register_method
@register_method(name='hello')
def hello(request, who='World'):
return f'Hello, {who}!'
License
bthlabs-jsonrpc-django is licensed under the MIT License.
Release files for bthlabs-jsonrpc-django 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bthlabs_jsonrpc_django-1.2.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bthlabs_jsonrpc_django-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.4 kB
Release files / bthlabs_jsonrpc_django-1.2.0.tar.gz
| Download URL | bthlabs_jsonrpc_django-1.2.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a384d9a7f6ca151dfbf3fda828413a3c823551fc09b7e8a1bdc3aa3a208cf8f8
|
|
BLAKE2b-256 checksum How to use checksums |
d1311658fa34b3c114494d7ba0f8ff880bdddd95f64acfc218b5e6a34ee1678d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Release files / bthlabs_jsonrpc_django-1.2.0-py3-none-any.whl
| Download URL | bthlabs_jsonrpc_django-1.2.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a19c65bbc534de2cd1b98a7651ac25aad83e5e7d91381f8f0df3cf734351617e
|
|
BLAKE2b-256 checksum How to use checksums |
cf38d4c789e64c759a660e6791834bb7a620fb67d700a922b2645a8a544af997
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|