Skip to main content

A tool to convert HAR files into a locustfile.

Project description

Transformer logo

travis-ci status badge pypi version badge code quality badge test coverage badge Code style: Black


A command-line tool and Python library to convert web browser sessions (HAR files) into Locust load test scenarios (“locustfiles”).

Use it to replay HAR files (storing recordings of interactions with your website) in load tests with Locust.


Install from PyPI:

pip install har-transformer


Example HAR files are included in the examples/ directory, try them out.


transformer my_har_files_directory/ >


import transformer

with open("", "w") as f:
    transformer.dump(f, ["my_har_files_directory/"])


Take a look at our documentation for more details, including how to generate HAR files, customize your scenarios, use or write plugins, etc.


See also the list of contributors to this project.


This project is licensed under the MIT license — see the file for details.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for har-transformer, version 1.2.5
Filename, size File type Python version Upload date Hashes
Filename, size har_transformer-1.2.5-py3-none-any.whl (37.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size har-transformer-1.2.5.tar.gz (31.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page