Skip to main content

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

Metadata

Release files for locust-swarm-wrapper-lib 0.0.1

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

Source distribution (sdist)

Source distribution for locust-swarm-wrapper-lib 0.0.1
File Size Uploaded
locust_swarm_wrapper_lib-0.0.1.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for locust-swarm-wrapper-lib 0.0.1
File Interpreter ABI Platform
locust_swarm_wrapper_lib-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / locust_swarm_wrapper_lib-0.0.1.tar.gz

Download URL locust_swarm_wrapper_lib-0.0.1.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3cc9271a1a9845b5b16385dad44193f36ed86abccd87e216e4f5dd1754c0af4a
BLAKE2b-256 checksum
How to use checksums
bfce111fc7584054dff675d2b45e3933e34706d0959af72161895d86adc51cf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / locust_swarm_wrapper_lib-0.0.1-py3-none-any.whl

Download URL locust_swarm_wrapper_lib-0.0.1-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75f383e2c6e844a45309c6ce67c8fee206d5c27bb54f0a9832f1ffad5dc8fc84
BLAKE2b-256 checksum
How to use checksums
32b1ffdcbd7deb74dec05692b171cc9912889dab6d0416f649f3bd97f1d9d3ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

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