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.9.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.9-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.9.tar.gz.

File metadata

  • Download URL: django_xmlrpc_dx-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 7555876f584f3034dca3478c7704f869cbbf38ac412fa70258f4db1c51f52f3a
MD5 9680c60d711b4624d8373a14c5d1fb21
BLAKE2b-256 c55b8086434e755893235794ca52bfa70affcad838167e5e60e72d6fd01421e9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for django_xmlrpc_dx-0.1.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ae5aeddecfc06bbb71e4a7aa1dc2b4ac97fa4c446ae886182d07bab942018e7f
MD5 cdf1d9509ab7fa6cc36f8ebc2950fd72
BLAKE2b-256 52687232d1f6823e14a013b4871d9df4abfb235246895341d2e4fdf09cc9fd47

See more details on using hashes here.

Provenance

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