Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gisce/locust-xmlrpc

XML-RPC Transport for Locust
https://github.com/gisce/locust-xmlrpc

hacktoberfest locust locustio python xmlrpc

Last synced: about 2 months ago
JSON representation

XML-RPC Transport for Locust

Awesome Lists containing this project

README

        

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 `_

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()
)