Skip to main content
Transformer logo

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

Transformer

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.

Installation

Install from PyPI:

pip install har-transformer

Install Locust to run your locustfiles:

pip install locust

Usage

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

Command-line

transformer my_har_files_directory/ >locustfile.py

Library

import transformer

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

Documentation

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

Authors

See also the list of contributors to this project.

License

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

Release files for har-transformer 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for har-transformer 2.0.0
File Size Uploaded
har-transformer-2.0.0.tar.gz 32.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for har-transformer 2.0.0
File Interpreter ABI Platform
har_transformer-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 70.2 kB

Release files / har-transformer-2.0.0.tar.gz

Download URL har-transformer-2.0.0.tar.gz
Size 32.5 kB
Tags Source
SHA-256 checksum
How to use checksums
321c099ab0306d3e4712aa4aaf1b96efe251d209369d60b099f133c2dee2bc60
BLAKE2b-256 checksum
How to use checksums
9fdcdeac01f34bfdcdf39b3f0c2ae84cee9851fac07a767bbb283486ca1b11d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.17.4-200.fc35.x86_64

Release files / har_transformer-2.0.0-py3-none-any.whl

Download URL har_transformer-2.0.0-py3-none-any.whl
Size 37.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06c3dacca7074042d6db8b17406d93b21c2cb97b21d1fc20582e263729f36fbd
BLAKE2b-256 checksum
How to use checksums
83e23341b3fadecd3ae4efc4581fa7855daf1ca24d07b9d13fb5bf8a9030f05f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.17.4-200.fc35.x86_64

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.3.0

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page