.. meta::
:description: This documentation will guide you through the use of the Memset API.
.. index:: Firewalling example, JSON, example
.. _python-firewalling-example:
Python Firewalling Example
==========================
This is an example of how to use the Memset Firewalling API with `Python `_ and the standard
module `xmlrpclib `_ for XML-RPC client access.
Substitute **API_KEY_HEX** with a valid API key and **SERVER_NAME** with a valid server name
and it can be run with a Python 2 interpreter.
.. literalinclude:: examples/xmlrpctestfirewalling.py
:language: python