Skip to main content

XML-RPC Server App for the Django framework.

Project description

ATTENTION

This Repository is a fork of @Fantomas42 ‘s legendary Django-XMLRPC package. It fixes compatibility issues with current versions of Python and Django that have unfortunately not been addressed in the upstream repo.

Installation

From PyPi:

$ pip install django-xmlrpc-dx

From source:

$ python setup.py install

Below is the intact README from the upstream. Some information may no longer be accurate.

Django XML-RPC

Django_xmlrpc offers a means by which a Django developer can expose their views (or indeed any other function) using XML-RPC.

This is a fork of the original version made by Svetlyak40wt compatible with Django >= 1.8 and Python >= 2.5.

If you want to use django_xmlrpc for an older version of Django or Python, please use an old release.

Installation

You could retrieve the last sources from http://github.com/Fantomas42/django-xmlrpc and run the installation script

$ python setup.py install

or use pip

$ pip install -e git://github.com/Fantomas42/django-xmlrpc.git#egg=django-xmlrpc

Usage

Register django_xmlrpc in your INSTALLED_APPS section of your project’ settings.

There are two ways to register methods that you want to handle:

In your project’s settings.

XMLRPC_METHODS = (('path.to.your.method', 'Method name'),
                  ('path.to.your.othermethod', 'Other Method name'),)

In a file called xmlrpc.py in your application directory.

XMLRPC_METHODS = (('path.to.your.method', 'Method name'),
                  ('path.to.your.othermethod', 'Other Method name'),)

A registered method should look like this:

from django_xmlrpc.decorators import xmlrpc_func

@xmlrpc_func(returns='string', args=['string'])
def test_xmlrpc(text):
    """Simply returns the args passed to it as a string"""
    return "Here's a response! %s" % str(text)

Finally we need to register the url of the XML-RPC server. Insert something like this in your project’s urls.py:

from django_xmlrpc.views import handle_xmlrpc

url(r'^xmlrpc/$', handle_xmlrpc, name='xmlrpc'),

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

django_xmlrpc_dx-0.1.10.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

django_xmlrpc_dx-0.1.10-py2.py3-none-any.whl (16.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django_xmlrpc_dx-0.1.10.tar.gz.

File metadata

  • Download URL: django_xmlrpc_dx-0.1.10.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for django_xmlrpc_dx-0.1.10.tar.gz
Algorithm Hash digest
SHA256 d0618e07df3c46529a0e9559992c1f60ee2ce361660951bb8606df2bb7cf787c
MD5 31685e6b0bb65c72ede20cfbf3cea8ad
BLAKE2b-256 1bb54c9aa01925d16291bcc529a3102a185f8485e26ca9c19106613876fb8979

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_xmlrpc_dx-0.1.10.tar.gz:

Publisher: publish.yml on rubeon/django-xmlrpc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_xmlrpc_dx-0.1.10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_xmlrpc_dx-0.1.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6095efb7631b555d9312a50407f1e97bea09276098fe5b0bf048dc475b14ba37
MD5 f311f1d41c787b8d13fc4929a5e70986
BLAKE2b-256 fdd6a96a42b247c58be5454ebbf804ef393fc4bd572de7447a717164e8f768a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_xmlrpc_dx-0.1.10-py2.py3-none-any.whl:

Publisher: publish.yml on rubeon/django-xmlrpc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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