.. meta::
:description: This documentation will guide you through the use of the Memset API.
.. index:: Partner example, JSON, example
.. _python-partner-example:
Python Partner 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.
Once the partner API key has been entered, and the discount line filled in or removed, the code will run with Python 2 or Python 3.
.. literalinclude:: examples/partner.py
:language: python