Skip to main content

Django adapter for damn simple JSON-RPC Server

Project description

PyPI Downloads Coverage Status

JSON RPC-Server adaptor for Django

This is a Django adaptor for Damn Simple JSON RPC Server

Compatibility

  • Django 2.x, Python 3.8
  • Django 3.x/4.x, Python 3.9/3.10
  • Django 4.x/5.0, Python 3.10/3.11/3.12
  • Django 5.1/5.2, Python 3.10/3.11/3.12/3.13

Installation

pip install damn-simple-jsonrpc-server-django

Configure Django project

Add jsonrpcdjango to INSTALLED_APPS

(settings.py)

INSTALLED_APPS = [
    # ...
    'jsonrpcdjango'
]

Expose services in urlpatterns:

(urls.py)

from django.urls import path
from jsonrpcdjango import serve
from calculator_service import calculator

urlpatterns = [
    path('', serve, {'service': calculator}, name='calculator'),
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

damn_simple_jsonrpc_server_django-0.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file damn_simple_jsonrpc_server_django-0.5.tar.gz.

File metadata

File hashes

Hashes for damn_simple_jsonrpc_server_django-0.5.tar.gz
Algorithm Hash digest
SHA256 1d53e158788999ff1145309f1e87e4443137110e313c2abad8c6eee680f2fee7
MD5 7601574ecdb7ac7a147af74cbb1ceb70
BLAKE2b-256 d7fd40c7b80c61f827216930d43c1507f8b1faaa9b4a8cf4e07f0809ab05c242

See more details on using hashes here.

File details

Details for the file damn_simple_jsonrpc_server_django-0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for damn_simple_jsonrpc_server_django-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5badfd3c7a22c74efdd8866d7a773b77a5847f79f0140ddb0ed2cdde640f19ee
MD5 d144155c6f39fcab5b8409b8418db5ef
BLAKE2b-256 24041eacbccf610ba7c79b1feb8ea82d00993c086ce85e85b31920bacb4f6012

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page