LoadStrike 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- loadstrike-0.1.0/MANIFEST.in +4 -0
- loadstrike-0.1.0/PKG-INFO +104 -0
- loadstrike-0.1.0/README.md +76 -0
- loadstrike-0.1.0/pyproject.toml +52 -0
- loadstrike-0.1.0/setup.cfg +4 -0
- loadstrike-0.1.0/src/LoadStrike.egg-info/PKG-INFO +104 -0
- loadstrike-0.1.0/src/LoadStrike.egg-info/SOURCES.txt +16 -0
- loadstrike-0.1.0/src/LoadStrike.egg-info/dependency_links.txt +1 -0
- loadstrike-0.1.0/src/LoadStrike.egg-info/requires.txt +6 -0
- loadstrike-0.1.0/src/LoadStrike.egg-info/top_level.txt +1 -0
- loadstrike-0.1.0/src/loadstrike_sdk/__init__.py +330 -0
- loadstrike-0.1.0/src/loadstrike_sdk/client.py +2450 -0
- loadstrike-0.1.0/src/loadstrike_sdk/cluster.py +542 -0
- loadstrike-0.1.0/src/loadstrike_sdk/contracts.py +749 -0
- loadstrike-0.1.0/src/loadstrike_sdk/correlation.py +1238 -0
- loadstrike-0.1.0/src/loadstrike_sdk/runtime.py +10209 -0
- loadstrike-0.1.0/src/loadstrike_sdk/sinks.py +2088 -0
- loadstrike-0.1.0/src/loadstrike_sdk/transports.py +2601 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: LoadStrike
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python SDK for in-process load execution, traffic correlation, and reporting.
|
|
5
|
+
Author: LoadStrike
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/loadstrike/LoadStrike
|
|
8
|
+
Project-URL: Repository, https://github.com/loadstrike/LoadStrike
|
|
9
|
+
Project-URL: Documentation, https://loadstrike.com/documentation
|
|
10
|
+
Project-URL: Issues, https://github.com/loadstrike/LoadStrike/issues
|
|
11
|
+
Keywords: load-testing,traffic-correlation,performance-testing,reporting
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
21
|
+
Requires-Python: >=3.9
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
Requires-Dist: cryptography>=42.0.0
|
|
24
|
+
Provides-Extra: test
|
|
25
|
+
Requires-Dist: coverage[toml]>=7.6.0; extra == "test"
|
|
26
|
+
Requires-Dist: pytest>=8.3.0; extra == "test"
|
|
27
|
+
Requires-Dist: pytest-xdist>=3.6.1; extra == "test"
|
|
28
|
+
|
|
29
|
+
# LoadStrike for Python
|
|
30
|
+
|
|
31
|
+
LoadStrike is a Python SDK for defining and running load, traffic-correlation, and reporting scenarios directly inside your application or test process.
|
|
32
|
+
|
|
33
|
+
## Requirements
|
|
34
|
+
|
|
35
|
+
- Python 3.9 or later
|
|
36
|
+
|
|
37
|
+
## Install
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install LoadStrike
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## What It Provides
|
|
44
|
+
|
|
45
|
+
- Scenario, step, load-simulation, threshold, and metric primitives
|
|
46
|
+
- Native in-process execution with structured run results
|
|
47
|
+
- Local and distributed cluster execution helpers
|
|
48
|
+
- HTML, TXT, CSV, and Markdown report generation
|
|
49
|
+
|
|
50
|
+
## Supported Transports
|
|
51
|
+
|
|
52
|
+
- HTTP
|
|
53
|
+
- Kafka
|
|
54
|
+
- RabbitMQ
|
|
55
|
+
- NATS
|
|
56
|
+
- Redis Streams
|
|
57
|
+
- Azure Event Hubs
|
|
58
|
+
- Push Diffusion
|
|
59
|
+
- Delegate and custom stream endpoints
|
|
60
|
+
|
|
61
|
+
## Supported Reporting Sinks
|
|
62
|
+
|
|
63
|
+
- InfluxDB
|
|
64
|
+
- TimescaleDB
|
|
65
|
+
- Grafana Loki
|
|
66
|
+
- Datadog
|
|
67
|
+
- Splunk HEC
|
|
68
|
+
- OpenTelemetry Collector
|
|
69
|
+
|
|
70
|
+
## Quick Start
|
|
71
|
+
|
|
72
|
+
```python
|
|
73
|
+
from loadstrike_sdk import (
|
|
74
|
+
LoadStrikeResponse,
|
|
75
|
+
LoadStrikeRunner,
|
|
76
|
+
LoadStrikeScenario,
|
|
77
|
+
LoadStrikeSimulation,
|
|
78
|
+
LoadStrikeStep,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
scenario = (
|
|
82
|
+
LoadStrikeScenario.create(
|
|
83
|
+
"orders",
|
|
84
|
+
lambda context: LoadStrikeStep.run(
|
|
85
|
+
"publish-order",
|
|
86
|
+
context,
|
|
87
|
+
lambda: LoadStrikeResponse.ok("200"),
|
|
88
|
+
)["as_reply"](),
|
|
89
|
+
)
|
|
90
|
+
.with_load_simulations(LoadStrikeSimulation.inject(10, 1, 20))
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
result = (
|
|
94
|
+
LoadStrikeRunner.register_scenarios(scenario)
|
|
95
|
+
.with_runner_key("rkl_your_runner_key")
|
|
96
|
+
.run()
|
|
97
|
+
)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
A valid `RunnerKey` is required to execute live workloads.
|
|
101
|
+
|
|
102
|
+
## Documentation
|
|
103
|
+
|
|
104
|
+
https://loadstrike.com/documentation
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# LoadStrike for Python
|
|
2
|
+
|
|
3
|
+
LoadStrike is a Python SDK for defining and running load, traffic-correlation, and reporting scenarios directly inside your application or test process.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- Python 3.9 or later
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install LoadStrike
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## What It Provides
|
|
16
|
+
|
|
17
|
+
- Scenario, step, load-simulation, threshold, and metric primitives
|
|
18
|
+
- Native in-process execution with structured run results
|
|
19
|
+
- Local and distributed cluster execution helpers
|
|
20
|
+
- HTML, TXT, CSV, and Markdown report generation
|
|
21
|
+
|
|
22
|
+
## Supported Transports
|
|
23
|
+
|
|
24
|
+
- HTTP
|
|
25
|
+
- Kafka
|
|
26
|
+
- RabbitMQ
|
|
27
|
+
- NATS
|
|
28
|
+
- Redis Streams
|
|
29
|
+
- Azure Event Hubs
|
|
30
|
+
- Push Diffusion
|
|
31
|
+
- Delegate and custom stream endpoints
|
|
32
|
+
|
|
33
|
+
## Supported Reporting Sinks
|
|
34
|
+
|
|
35
|
+
- InfluxDB
|
|
36
|
+
- TimescaleDB
|
|
37
|
+
- Grafana Loki
|
|
38
|
+
- Datadog
|
|
39
|
+
- Splunk HEC
|
|
40
|
+
- OpenTelemetry Collector
|
|
41
|
+
|
|
42
|
+
## Quick Start
|
|
43
|
+
|
|
44
|
+
```python
|
|
45
|
+
from loadstrike_sdk import (
|
|
46
|
+
LoadStrikeResponse,
|
|
47
|
+
LoadStrikeRunner,
|
|
48
|
+
LoadStrikeScenario,
|
|
49
|
+
LoadStrikeSimulation,
|
|
50
|
+
LoadStrikeStep,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
scenario = (
|
|
54
|
+
LoadStrikeScenario.create(
|
|
55
|
+
"orders",
|
|
56
|
+
lambda context: LoadStrikeStep.run(
|
|
57
|
+
"publish-order",
|
|
58
|
+
context,
|
|
59
|
+
lambda: LoadStrikeResponse.ok("200"),
|
|
60
|
+
)["as_reply"](),
|
|
61
|
+
)
|
|
62
|
+
.with_load_simulations(LoadStrikeSimulation.inject(10, 1, 20))
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
result = (
|
|
66
|
+
LoadStrikeRunner.register_scenarios(scenario)
|
|
67
|
+
.with_runner_key("rkl_your_runner_key")
|
|
68
|
+
.run()
|
|
69
|
+
)
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
A valid `RunnerKey` is required to execute live workloads.
|
|
73
|
+
|
|
74
|
+
## Documentation
|
|
75
|
+
|
|
76
|
+
https://loadstrike.com/documentation
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=69", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "LoadStrike"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Python SDK for in-process load execution, traffic correlation, and reporting."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
authors = [{ name = "LoadStrike" }]
|
|
13
|
+
keywords = ["load-testing", "traffic-correlation", "performance-testing", "reporting"]
|
|
14
|
+
dependencies = ["cryptography>=42.0.0"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
18
|
+
"Programming Language :: Python :: 3.9",
|
|
19
|
+
"Programming Language :: Python :: 3.10",
|
|
20
|
+
"Programming Language :: Python :: 3.11",
|
|
21
|
+
"Programming Language :: Python :: 3.12",
|
|
22
|
+
"Programming Language :: Python :: 3.13",
|
|
23
|
+
"Programming Language :: Python :: 3.14",
|
|
24
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[project.urls]
|
|
28
|
+
Homepage = "https://github.com/loadstrike/LoadStrike"
|
|
29
|
+
Repository = "https://github.com/loadstrike/LoadStrike"
|
|
30
|
+
Documentation = "https://loadstrike.com/documentation"
|
|
31
|
+
Issues = "https://github.com/loadstrike/LoadStrike/issues"
|
|
32
|
+
|
|
33
|
+
[project.optional-dependencies]
|
|
34
|
+
test = [
|
|
35
|
+
"coverage[toml]>=7.6.0",
|
|
36
|
+
"pytest>=8.3.0",
|
|
37
|
+
"pytest-xdist>=3.6.1",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
[tool.setuptools]
|
|
41
|
+
package-dir = { "" = "src" }
|
|
42
|
+
|
|
43
|
+
[tool.setuptools.packages.find]
|
|
44
|
+
where = ["src"]
|
|
45
|
+
|
|
46
|
+
[tool.coverage.run]
|
|
47
|
+
branch = true
|
|
48
|
+
source = ["loadstrike_sdk"]
|
|
49
|
+
|
|
50
|
+
[tool.coverage.report]
|
|
51
|
+
fail_under = 100
|
|
52
|
+
precision = 2
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: LoadStrike
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python SDK for in-process load execution, traffic correlation, and reporting.
|
|
5
|
+
Author: LoadStrike
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/loadstrike/LoadStrike
|
|
8
|
+
Project-URL: Repository, https://github.com/loadstrike/LoadStrike
|
|
9
|
+
Project-URL: Documentation, https://loadstrike.com/documentation
|
|
10
|
+
Project-URL: Issues, https://github.com/loadstrike/LoadStrike/issues
|
|
11
|
+
Keywords: load-testing,traffic-correlation,performance-testing,reporting
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
21
|
+
Requires-Python: >=3.9
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
Requires-Dist: cryptography>=42.0.0
|
|
24
|
+
Provides-Extra: test
|
|
25
|
+
Requires-Dist: coverage[toml]>=7.6.0; extra == "test"
|
|
26
|
+
Requires-Dist: pytest>=8.3.0; extra == "test"
|
|
27
|
+
Requires-Dist: pytest-xdist>=3.6.1; extra == "test"
|
|
28
|
+
|
|
29
|
+
# LoadStrike for Python
|
|
30
|
+
|
|
31
|
+
LoadStrike is a Python SDK for defining and running load, traffic-correlation, and reporting scenarios directly inside your application or test process.
|
|
32
|
+
|
|
33
|
+
## Requirements
|
|
34
|
+
|
|
35
|
+
- Python 3.9 or later
|
|
36
|
+
|
|
37
|
+
## Install
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install LoadStrike
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## What It Provides
|
|
44
|
+
|
|
45
|
+
- Scenario, step, load-simulation, threshold, and metric primitives
|
|
46
|
+
- Native in-process execution with structured run results
|
|
47
|
+
- Local and distributed cluster execution helpers
|
|
48
|
+
- HTML, TXT, CSV, and Markdown report generation
|
|
49
|
+
|
|
50
|
+
## Supported Transports
|
|
51
|
+
|
|
52
|
+
- HTTP
|
|
53
|
+
- Kafka
|
|
54
|
+
- RabbitMQ
|
|
55
|
+
- NATS
|
|
56
|
+
- Redis Streams
|
|
57
|
+
- Azure Event Hubs
|
|
58
|
+
- Push Diffusion
|
|
59
|
+
- Delegate and custom stream endpoints
|
|
60
|
+
|
|
61
|
+
## Supported Reporting Sinks
|
|
62
|
+
|
|
63
|
+
- InfluxDB
|
|
64
|
+
- TimescaleDB
|
|
65
|
+
- Grafana Loki
|
|
66
|
+
- Datadog
|
|
67
|
+
- Splunk HEC
|
|
68
|
+
- OpenTelemetry Collector
|
|
69
|
+
|
|
70
|
+
## Quick Start
|
|
71
|
+
|
|
72
|
+
```python
|
|
73
|
+
from loadstrike_sdk import (
|
|
74
|
+
LoadStrikeResponse,
|
|
75
|
+
LoadStrikeRunner,
|
|
76
|
+
LoadStrikeScenario,
|
|
77
|
+
LoadStrikeSimulation,
|
|
78
|
+
LoadStrikeStep,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
scenario = (
|
|
82
|
+
LoadStrikeScenario.create(
|
|
83
|
+
"orders",
|
|
84
|
+
lambda context: LoadStrikeStep.run(
|
|
85
|
+
"publish-order",
|
|
86
|
+
context,
|
|
87
|
+
lambda: LoadStrikeResponse.ok("200"),
|
|
88
|
+
)["as_reply"](),
|
|
89
|
+
)
|
|
90
|
+
.with_load_simulations(LoadStrikeSimulation.inject(10, 1, 20))
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
result = (
|
|
94
|
+
LoadStrikeRunner.register_scenarios(scenario)
|
|
95
|
+
.with_runner_key("rkl_your_runner_key")
|
|
96
|
+
.run()
|
|
97
|
+
)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
A valid `RunnerKey` is required to execute live workloads.
|
|
101
|
+
|
|
102
|
+
## Documentation
|
|
103
|
+
|
|
104
|
+
https://loadstrike.com/documentation
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
MANIFEST.in
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/LoadStrike.egg-info/PKG-INFO
|
|
5
|
+
src/LoadStrike.egg-info/SOURCES.txt
|
|
6
|
+
src/LoadStrike.egg-info/dependency_links.txt
|
|
7
|
+
src/LoadStrike.egg-info/requires.txt
|
|
8
|
+
src/LoadStrike.egg-info/top_level.txt
|
|
9
|
+
src/loadstrike_sdk/__init__.py
|
|
10
|
+
src/loadstrike_sdk/client.py
|
|
11
|
+
src/loadstrike_sdk/cluster.py
|
|
12
|
+
src/loadstrike_sdk/contracts.py
|
|
13
|
+
src/loadstrike_sdk/correlation.py
|
|
14
|
+
src/loadstrike_sdk/runtime.py
|
|
15
|
+
src/loadstrike_sdk/sinks.py
|
|
16
|
+
src/loadstrike_sdk/transports.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
loadstrike_sdk
|