semvec/pypi-packages huggingface dataset:
locust-xmlrpc 0.3.0
XML-RPC Transport for Locust
License: MIT

XML-RPC for locust
==================

.. image:: https://travis-ci.com/gisce/locust-xmlrpc.svg?branch=master
    :target: https://travis-ci.com/gisce/locust-xmlrpc

A XML-RPC Transport to use with `Locust <https://locust.io/>`_

Usage in your locustfile:

.. code:: python

  from six.moves import xmlrpc_client  # Python2-3 compat
  
  from locust_xmlrpc import LocustXmlRpcTransport
  from locust import Locust
  
  class XmlRpcLocust(Locust):
    def __init__(self, *args, **kwargs):
        super(XmlRpcLocust, self).__init__(*args, **kwargs)

        self.client = xmlrpc_client.ServerProxy(
            '{}/xmlrpc'.format(self.host),
            transport=LocustXmlRpcTransport()
        )