rpc4django 0.3.0

Handles JSONRPC and XMLRPC requests easily with Django

Prerequisites

RPC4Django has been tested on Mac OS, Linux and Windows.

Installation

pip install rpc4django[reST]

Configuration

  1. First, you need to add new url pattern to your root urls.py file. You can replace r'^RPC2$' with anything you like.

    # urls.py
    
    urlpatterns = patterns('',
        # rpc4django will need to be in your Python path
        (r'^RPC2$', 'rpc4django.views.serve_rpc_request'),
    )
    
  2. Second, add RPC4Django to the list of installed applications in your settings.py.

    # settings.py
    
    INSTALLED_APPS = (
        'rpc4django',
    )
    
  3. Lastly, you need to let RPC4Django know which methods to make available. RPC4Django recursively imports all the apps in INSTALLED_APPS and makes any methods importable via __init__.py with the @rpcmethod decorator available as RPC methods. You can always write your RPC methods in another module and simply import it in __init__.py.

    # testapp/__init__.py
    
    from rpc4django import rpcmethod
    
    # The doc string supports reST if docutils is installed
    @rpcmethod(name='mynamespace.add', signature=['int', 'int', 'int'])
    def add(a, b):
        '''Adds two numbers together
        >>> add(1, 2)
        3
        '''
    
        return a+b
    
BSD

Author

David Fischer

Pip

rpc4django==0.3.0

Classifiers

  • Topic :: Software Development :: Libraries :: Python Modules
  • Topic :: Internet :: WWW/HTTP :: Dynamic Content
  • Programming Language :: Python :: 3.3
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 2.6
  • Programming Language :: Python
  • Operating System :: OS Independent
  • License :: OSI Approved :: BSD License
  • Intended Audience :: Developers
  • Framework :: Django
  • Environment :: Web Environment
  • Development Status :: 4 - Beta
File Type Python Version Uploaded On Downloads
rpc4django-0.3.0.tar.gz Source May 20, 2014 2,698
Version Release Date
0.3.0 May 20, 2014
0.2.5 Dec. 9, 2013
0.2.4 May 31, 2013
0.2.3 May 30, 2013
0.2.2 May 22, 2013
0.2.1 March 8, 2013
0.2.0 Nov. 4, 2012
0.1.12 March 12, 2012
0.1.11 Dec. 22, 2011
0.1.10 Nov. 15, 2011
0.1.9 July 10, 2011
0.1.8 Oct. 27, 2010
0.1.7 Jan. 19, 2010
0.1.6 Jan. 14, 2010
0.1.5 Oct. 4, 2009
0.1.4 Sept. 1, 2009
0.1.3 July 16, 2009
0.1.2 July 14, 2009
0.1.1 July 11, 2009
0.1.0 July 7, 2009
Date Package Version Action
April 18, 2015, 10 p.m. rpc4django 0.1.7 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.6 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.5 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.4 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.3 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.2 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.1 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.0 Release Created
April 18, 2015, 10 p.m. rpc4django 0.2.0 Release Created
April 18, 2015, 10 p.m. rpc4django 0.2.1 Release Created
April 18, 2015, 10 p.m. rpc4django 0.2.2 Release Created
April 18, 2015, 10 p.m. rpc4django 0.2.3 Release Created
April 18, 2015, 10 p.m. rpc4django 0.2.4 Release Created
April 18, 2015, 10 p.m. rpc4django 0.2.5 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.9 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.8 Release Created
April 18, 2015, 10 p.m. rpc4django 0.3.0 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.11 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.10 Release Created
April 18, 2015, 10 p.m. rpc4django 0.1.12 Release Created
April 18, 2015, 10 p.m. rpc4django Package Created