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.8.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.8-py2.py3-none-any.whl (16.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: django_xmlrpc_dx-0.1.8.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.8.tar.gz
Algorithm Hash digest
SHA256 21e519a4e31e8c1a0b7f203a7dc47642633471f9fbc20ab3c5fb74cb953e8b71
MD5 89593d0d1a71d7d38a9d6891814c9f3e
BLAKE2b-256 366f157e41f2c55a0370d36a00a46084782284edfefd7051a4609e4a67b4c6ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_xmlrpc_dx-0.1.8.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.8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_xmlrpc_dx-0.1.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6a6ee098b66a945e370cf85ddf0be2de1863ce1fa1d3f08a5775e47c27838610
MD5 b185b916e0bb3018a7ca91ef21d0c835
BLAKE2b-256 bdf451a9962c83dde98e8fe2ac1dd27f8f3136d6d6e42d95f188b68b4ea8a4cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_xmlrpc_dx-0.1.8-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