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

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-1.2.4.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

har_transformer-1.2.4-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: har-transformer-1.2.4.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.15 CPython/3.7.1 Linux/4.15.0-1028-gcp

File hashes

Hashes for har-transformer-1.2.4.tar.gz
Algorithm Hash digest
SHA256 45dcc77578d1427e67245e6ba6b6012ba69aa1597faaab43a0cec760b15b32b1
MD5 d073dae01278d64ae5fc0c666adb1e85
BLAKE2b-256 08d1ee2dd199fa8694bc9f71d77df628cadd1374e7df9801595c938f261a5bb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: har_transformer-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 37.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.15 CPython/3.7.1 Linux/4.15.0-1028-gcp

File hashes

Hashes for har_transformer-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 51978a7f2ac240483833c2b75a921cff35dd889dcba8a3f352ee5991e0eac43c
MD5 34ad3f0fcf69141887630d4eb323f0f1
BLAKE2b-256 8f4daf484daf16a89948c80851bc82f5a8ad21f2b77d4eae210a643cf5753a9c

See more details on using hashes here.

Supported by

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