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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0618e07df3c46529a0e9559992c1f60ee2ce361660951bb8606df2bb7cf787c
|
|
| MD5 |
31685e6b0bb65c72ede20cfbf3cea8ad
|
|
| BLAKE2b-256 |
1bb54c9aa01925d16291bcc529a3102a185f8485e26ca9c19106613876fb8979
|
Provenance
The following attestation bundles were made for django_xmlrpc_dx-0.1.10.tar.gz:
Publisher:
publish.yml on rubeon/django-xmlrpc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_xmlrpc_dx-0.1.10.tar.gz -
Subject digest:
d0618e07df3c46529a0e9559992c1f60ee2ce361660951bb8606df2bb7cf787c - Sigstore transparency entry: 203156995
- Sigstore integration time:
-
Permalink:
rubeon/django-xmlrpc@0b8c4991f45ecb9583f1e6556d6892d58f4c04e1 -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/rubeon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0b8c4991f45ecb9583f1e6556d6892d58f4c04e1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_xmlrpc_dx-0.1.10-py2.py3-none-any.whl.
File metadata
- Download URL: django_xmlrpc_dx-0.1.10-py2.py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6095efb7631b555d9312a50407f1e97bea09276098fe5b0bf048dc475b14ba37
|
|
| MD5 |
f311f1d41c787b8d13fc4929a5e70986
|
|
| BLAKE2b-256 |
fdd6a96a42b247c58be5454ebbf804ef393fc4bd572de7447a717164e8f768a3
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_xmlrpc_dx-0.1.10-py2.py3-none-any.whl -
Subject digest:
6095efb7631b555d9312a50407f1e97bea09276098fe5b0bf048dc475b14ba37 - Sigstore transparency entry: 203156999
- Sigstore integration time:
-
Permalink:
rubeon/django-xmlrpc@0b8c4991f45ecb9583f1e6556d6892d58f4c04e1 -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/rubeon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0b8c4991f45ecb9583f1e6556d6892d58f4c04e1 -
Trigger Event:
push
-
Statement type: