Python xmlrpc.server: a basic XML-RPC server framework
Answer: This module is a basic server framework for XML RPC servers written in Python.
What it provides
SimpleXMLRPCServer is based on socketserver TCPServer and can run as a stand alone server.
The module is not secure against maliciously constructed data.
It does not work or is not available on WebAssembly.
See the XML security notes before you parse untrusted or unauthenticated data.
Registration options
Servers can also be embedded in a CGI environment, using CGIXMLRPCRequestHandler.
register function can be used as a decorator.
Enabling allow dotted names may let intruders access your module global variables.
That option may also let intruders execute arbitrary code on your machine.
Only use that option on a secure, closed network.
See also
Claims
- id: C1 claim: The module is not secure against maliciously constructed data. source: S1 evidence: "not secure against maliciously constructed data"
- id: C2 claim: SimpleXMLRPCServer is based on socketserver TCPServer. source: S1 evidence: "based on socketserver.TCPServer"
- id: C3 claim: Servers can be embedded in a CGI environment. source: S2 evidence: "embedded in a CGI environment"
- id: C4 claim: register function can be used as a decorator. source: S2 evidence: "used as a decorator"
Sources
- [S1] xmlrpc.server — Basic XML-RPC servers. Python Software Foundation. https://docs.python.org/3/library/xmlrpc.server.html . License: PSF License Version 2. Accessed 2026-11-24.
- [S2] xmlrpc.server documentation (source). CPython. https://raw.githubusercontent.com/python/cpython/main/Doc/library/xmlrpc.server.rst . License: PSF License Version 2. Accessed 2026-11-24.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, xmlrpc.server — Basic XML-RPC servers; CPython, xmlrpc.server documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, xmlrpc.server — Basic XML-RPC servers; CPython, xmlrpc.server documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation.
Cite this
iinventedlight. 2026. "Python xmlrpc.server: a basic XML-RPC server framework." iinventedlight Library, iil:note:w2yr0k9x, version of 2026-11-24. https://iinventedlight.com/library/notes/python-xmlrpc-server/. License: CC-BY-4.0.
@misc{iil_note_w2yr0k9x,
author = {{iinventedlight}},
title = {{Python xmlrpc.server: a basic XML-RPC server framework}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/python-xmlrpc-server/},
note = {Permanent ID iil:note:w2yr0k9x. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- python-xmlrpc-server.schema.json (schema; CC-BY-4.0)
- python-xmlrpc-server.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/python-xmlrpc-server.md.