curl-comparator-loadtest 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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ include README.md
2
+ include LICENSE
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: curl-comparator-loadtest
3
+ Version: 0.1.0
4
+ Summary: curl load test and response comparison dashboard
5
+ Author: Sheldon
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Keywords: flask,curl,load-testing,benchmark,api-testing
29
+ Classifier: Development Status :: 4 - Beta
30
+ Classifier: Environment :: Web Environment
31
+ Classifier: Framework :: Flask
32
+ Classifier: Intended Audience :: Developers
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Programming Language :: Python :: 3
35
+ Classifier: Programming Language :: Python :: 3 :: Only
36
+ Classifier: Topic :: Internet :: WWW/HTTP
37
+ Classifier: Topic :: Software Development :: Testing
38
+ Requires-Python: >=3.9
39
+ Description-Content-Type: text/markdown
40
+ License-File: LICENSE
41
+ Requires-Dist: Flask>=3.0.0
42
+ Provides-Extra: prod
43
+ Requires-Dist: gunicorn>=21.2.0; extra == "prod"
44
+ Provides-Extra: dev
45
+ Requires-Dist: build>=1.2.2; extra == "dev"
46
+ Requires-Dist: twine>=5.1.0; extra == "dev"
47
+ Dynamic: license-file
48
+
49
+ # Curl Comparator Load Test
50
+
51
+ Locust-style load testing and response comparison tool built with Flask and `curl`.
52
+
53
+ ## Features
54
+
55
+ - Compare the same request against two hosts (`{host}` placeholder).
56
+ - Use custom variables like `{name}`, `{age}` in URL, headers, or body.
57
+ - Ramp virtual users with configurable spawn rate and duration.
58
+ - Live SSE streaming of results and metrics.
59
+ - Per-row JSON diff popup.
60
+ - Uses real `curl` timing metrics (`time_total`, `time_starttransfer`).
61
+
62
+ ## Install
63
+
64
+ ```bash
65
+ pip install .
66
+ ```
67
+
68
+ Or from source requirements:
69
+
70
+ ```bash
71
+ pip install -r requirements.txt
72
+ ```
73
+
74
+ ## Run
75
+
76
+ ### Development
77
+
78
+ ```bash
79
+ curl-compare-loadtest
80
+ ```
81
+
82
+ ### Production (Gunicorn)
83
+
84
+ ```bash
85
+ gunicorn -w 4 -k gthread -b 0.0.0.0:8000 app:app
86
+ ```
87
+
88
+ Open: `http://localhost:8000`
89
+
90
+ ## Template Variables
91
+
92
+ - Required: `{host}`
93
+ - Optional: any token from variable lines, for example:
94
+ - Template: `curl -H "X-User: {name}" "https://{host}/v1?age={age}"`
95
+ - Variables line: `name=alice,age=30`
96
+ - Backward compatible: `{vars}` maps to the raw line string.
97
+
98
+ ## Build Package
99
+
100
+ ```bash
101
+ python -m build
102
+ ```
103
+
104
+ This produces wheel and source distribution in `dist/`.
105
+
106
+ ## License
107
+
108
+ MIT. See `LICENSE`.
@@ -0,0 +1,60 @@
1
+ # Curl Comparator Load Test
2
+
3
+ Locust-style load testing and response comparison tool built with Flask and `curl`.
4
+
5
+ ## Features
6
+
7
+ - Compare the same request against two hosts (`{host}` placeholder).
8
+ - Use custom variables like `{name}`, `{age}` in URL, headers, or body.
9
+ - Ramp virtual users with configurable spawn rate and duration.
10
+ - Live SSE streaming of results and metrics.
11
+ - Per-row JSON diff popup.
12
+ - Uses real `curl` timing metrics (`time_total`, `time_starttransfer`).
13
+
14
+ ## Install
15
+
16
+ ```bash
17
+ pip install .
18
+ ```
19
+
20
+ Or from source requirements:
21
+
22
+ ```bash
23
+ pip install -r requirements.txt
24
+ ```
25
+
26
+ ## Run
27
+
28
+ ### Development
29
+
30
+ ```bash
31
+ curl-compare-loadtest
32
+ ```
33
+
34
+ ### Production (Gunicorn)
35
+
36
+ ```bash
37
+ gunicorn -w 4 -k gthread -b 0.0.0.0:8000 app:app
38
+ ```
39
+
40
+ Open: `http://localhost:8000`
41
+
42
+ ## Template Variables
43
+
44
+ - Required: `{host}`
45
+ - Optional: any token from variable lines, for example:
46
+ - Template: `curl -H "X-User: {name}" "https://{host}/v1?age={age}"`
47
+ - Variables line: `name=alice,age=30`
48
+ - Backward compatible: `{vars}` maps to the raw line string.
49
+
50
+ ## Build Package
51
+
52
+ ```bash
53
+ python -m build
54
+ ```
55
+
56
+ This produces wheel and source distribution in `dist/`.
57
+
58
+ ## License
59
+
60
+ MIT. See `LICENSE`.