Skip to main content

BTHLabs JSONRPC - django integration

Docs | Source repository

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}!'

Author

bthlabs-jsonrpc-django is developed by Tomek Wójcik.

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)

Source distribution for bthlabs-jsonrpc-django 1.2.0
File Size Uploaded
bthlabs_jsonrpc_django-1.2.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bthlabs-jsonrpc-django 1.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page