Skip to main content

App for loading testing, wrapper for locust library

Project description

Locust swarm wrapper lib

What is it?:

Python library for load testing in browser. Library provide different strategies for load testing. Simple wrapper lib for another lib, with a little bit of StarCraft 2 in it.

Target Auditory of the lib:

  1. Author of the lib (Cupcake_wrld)
  2. Some strangers... (especially on PyPI)
  3. Maybe moderators on PyPI site (if they exist)

What useful opportunities in use this lib?

  1. None (I am serious now)

Locust swarm lib requirements:

  1. Python with version 3.12 or above
  2. Some storage space on your personal computer

Locust swarm lib components:

  1. App - abstraction class for swarm
  2. Swarm class - abstraction class for locusts
  3. Locust - main unit in library to "attack" website (Also name of the inner library)
  4. Strategies directory with different strategies classes for load testing.
  5. Tests - directory with app tests

Example of using library:

import <something>    

page = 'https://yandex.ru'
"""
Attack this page
"""

if __name__ == "__main__":
    app = LocustSwarm.App(StrategyEnum.PEAK, True, False)
    app.set_swarm_attack_to_page(
        page_to_destroy=page,
        logger=app.get_logger()
    )

app.get_swarm().proceed_locusts(
    app_runner=app.get_runner(),
    locust_spawn_rate=5,
)

Contacts:

Library author:

  1. Author GitHub account
  2. Author contact email

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

locust_swarm_wrapper_lib-0.0.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

locust_swarm_wrapper_lib-0.0.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file locust_swarm_wrapper_lib-0.0.1.tar.gz.

File metadata

File hashes

Hashes for locust_swarm_wrapper_lib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3cc9271a1a9845b5b16385dad44193f36ed86abccd87e216e4f5dd1754c0af4a
MD5 01bedb6d756adcd7030a100a59554f75
BLAKE2b-256 bfce111fc7584054dff675d2b45e3933e34706d0959af72161895d86adc51cf1

See more details on using hashes here.

File details

Details for the file locust_swarm_wrapper_lib-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for locust_swarm_wrapper_lib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75f383e2c6e844a45309c6ce67c8fee206d5c27bb54f0a9832f1ffad5dc8fc84
MD5 ab4eed42a1b0363f58f84b4a7bce3833
BLAKE2b-256 32b1ffdcbd7deb74dec05692b171cc9912889dab6d0416f649f3bd97f1d9d3ab

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