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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| har-transformer-2.0.0.tar.gz | 32.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|