
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
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.
.. contents::
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
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'),
FAQs
XML-RPC Server App for the Django framework.
We found that django-xmlrpc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.