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

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.

Project details


Download files

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

Source Distribution

har-transformer-2.0.0.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

har_transformer-2.0.0-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file har-transformer-2.0.0.tar.gz.

File metadata

  • Download URL: har-transformer-2.0.0.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.4-200.fc35.x86_64

File hashes

Hashes for har-transformer-2.0.0.tar.gz
Algorithm Hash digest
SHA256 321c099ab0306d3e4712aa4aaf1b96efe251d209369d60b099f133c2dee2bc60
MD5 5393ebea01c9fdac9d439bbc5dfc876d
BLAKE2b-256 9fdcdeac01f34bfdcdf39b3f0c2ae84cee9851fac07a767bbb283486ca1b11d1

See more details on using hashes here.

File details

Details for the file har_transformer-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: har_transformer-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.4-200.fc35.x86_64

File hashes

Hashes for har_transformer-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06c3dacca7074042d6db8b17406d93b21c2cb97b21d1fc20582e263729f36fbd
MD5 d7e441ed43d203542551466e9bac9be3
BLAKE2b-256 83e23341b3fadecd3ae4efc4581fa7855daf1ca24d07b9d13fb5bf8a9030f05f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page