soap-failover-proxy 2.0.2__tar.gz → 2.0.3__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.
Files changed (18) hide show
  1. soap_failover_proxy-2.0.3/PKG-INFO +687 -0
  2. soap_failover_proxy-2.0.3/README.md +679 -0
  3. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/pyproject.toml +1 -1
  4. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/src/soap_failover_proxy/middleware.py +32 -34
  5. soap_failover_proxy-2.0.3/src/soap_failover_proxy.egg-info/PKG-INFO +687 -0
  6. soap_failover_proxy-2.0.2/PKG-INFO +0 -184
  7. soap_failover_proxy-2.0.2/README.md +0 -176
  8. soap_failover_proxy-2.0.2/src/soap_failover_proxy.egg-info/PKG-INFO +0 -184
  9. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/setup.cfg +0 -0
  10. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/src/soap_failover_proxy/__init__.py +0 -0
  11. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/src/soap_failover_proxy/cli.py +0 -0
  12. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/src/soap_failover_proxy.egg-info/SOURCES.txt +0 -0
  13. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/src/soap_failover_proxy.egg-info/dependency_links.txt +0 -0
  14. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/src/soap_failover_proxy.egg-info/entry_points.txt +0 -0
  15. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/src/soap_failover_proxy.egg-info/requires.txt +0 -0
  16. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/src/soap_failover_proxy.egg-info/top_level.txt +0 -0
  17. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/tests/test_middleware_2_0_0.py +0 -0
  18. {soap_failover_proxy-2.0.2 → soap_failover_proxy-2.0.3}/tests/test_middleware_2_0_1.py +0 -0
@@ -0,0 +1,687 @@
1
+ Metadata-Version: 2.4
2
+ Name: soap-failover-proxy
3
+ Version: 2.0.3
4
+ Summary: Dynamic failover proxy routing middleware for SOAP and WSGI web services
5
+ Requires-Python: >=3.7
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: cryptography>=42.0.0
8
+
9
+ # SOAP FAILOVER PROXY
10
+
11
+ ## 1.0 Administration
12
+
13
+ ### 1.1 CHANGE LOG
14
+
15
+ ```text
16
+ |Version | Date | Author | Description |
17
+ |--------|-------------|----------|---------------|
18
+ | 1.0 | 11 Oct 2026 | Sarna, J.| First Draft |
19
+ ```
20
+
21
+ ## 2.0 DESCRIPTION
22
+ When compiled into an assembly and imported by SOAP webservices, allows dynamic reconfiguration.
23
+
24
+ The application uses Python 3.12.1. It was designed to work with Spyne SOAP Python Servers, but can work with REST Python Servers too. Packages have been frozen in requirements.txt via cmd 'pip freeze > requirements.txt'
25
+
26
+
27
+ ### 3.0 How to install
28
+
29
+ a. Indentation
30
+
31
+ i. Default setup to convert tabs to spaces
32
+
33
+ The pre-req step is to ensure that there are no indentation errors. This can first be ensured via converting all tabs into spaces via cmd:
34
+
35
+ ```bash
36
+ (venv) C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>python -c "from pathlib import Path; p = Path('src/soap_failover_proxy/middleware.py'); p.write_text(p.read_text(encoding='utf-8').replace('\t', ' '), encoding='utf-8')"
37
+
38
+ (venv) C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>
39
+ ```
40
+
41
+ ii. Test for indentation errors
42
+
43
+ Next, the intendation link needs to be tested via cmd:
44
+
45
+ ```bash
46
+ (venv) C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>python -m py_compile src/soap_failover_proxy/middleware.py
47
+ Sorry: IndentationError: expected an indented block after 'if' statement on line 108 (src/soap_failover_proxy/middleware.py, line 109)
48
+ [Made fix]
49
+ (venv) C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>python -m py_compile src/soap_failover_proxy/middleware.py
50
+ (venv) C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>python -m compileall src/soap_failover_proxy
51
+ Listing 'src/soap_failover_proxy'...
52
+
53
+ (venv) C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>
54
+ ```
55
+
56
+ iii. Run tests
57
+
58
+ There are two ways to run them:
59
+
60
+
61
+ OPTION A - install editable version of soap-failover-proxy locally (can edit between test runs, without needing to re-install), then run tests
62
+
63
+ ```bash
64
+ (venv) C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>pip install -e .
65
+ (venv) C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>python3 -m unittest -v tests/test_middleware_2_0_1.py
66
+
67
+ ```
68
+
69
+ OPTION B - Discover assemblies and tests in source folder and run
70
+
71
+ ```bash
72
+ python -m unittest discover
73
+
74
+ ```
75
+
76
+ #### 3.1.1 LOCAL
77
+
78
+ ##### 3.1.1.1 Create Assembly
79
+
80
+ ###### When adding new version
81
+ Once, I changed the version to 2.0.0. Even, when 'pip install -e .' passes, the package could not be located (cmd 'python -c "import soap_failover_proxy; print('SUCCESS!')"' failed).
82
+
83
+ This was resolved via running a Force clean reinstall of local folder:
84
+
85
+ ```bash
86
+ pip install -e . --force-reinstall
87
+ ```
88
+
89
+ ##### 3.1.1.2 Unit test the assembly process:
90
+
91
+ ```bash
92
+ (venv) C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech>python -c "import soap_failover_proxy; print('Transliteration app successfully grabbed it!')"
93
+ Transliteration app successfully grabbed it!
94
+ ```
95
+
96
+ #### 3.1.2 PRODUCTION
97
+
98
+ #### 3.1.2.1 Upload to TestPiPy with Twine (Stufft, 2019)
99
+
100
+ a. Increment .toml versions identifier, and append with rc1 to identify test release.
101
+
102
+ b. Create Assembly
103
+
104
+ Note: TOML was missing the suffix rc1 in version. Hence the output below can be more accurate towards intent.
105
+
106
+ ```bash
107
+ (venv) C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>python -m build
108
+ * Creating isolated environment: venv+pip...
109
+ * Installing packages in isolated environment:
110
+ - setuptools>=61.0.0
111
+ - wheel
112
+ * Getting build dependencies for sdist...
113
+ running egg_info
114
+ writing src\soap_failover_proxy.egg-info\PKG-INFO
115
+ writing dependency_links to src\soap_failover_proxy.egg-info\dependency_links.txt
116
+ writing entry points to src\soap_failover_proxy.egg-info\entry_points.txt
117
+ writing requirements to src\soap_failover_proxy.egg-info\requires.txt
118
+ writing top-level names to src\soap_failover_proxy.egg-info\top_level.txt
119
+ reading manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
120
+ writing manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
121
+ * Installed build dependency versions:
122
+ - setuptools==84.2.1
123
+ - wheel==0.48.0
124
+ * Building sdist...
125
+ running sdist
126
+ running egg_info
127
+ writing src\soap_failover_proxy.egg-info\PKG-INFO
128
+ writing dependency_links to src\soap_failover_proxy.egg-info\dependency_links.txt
129
+ writing entry points to src\soap_failover_proxy.egg-info\entry_points.txt
130
+ writing requirements to src\soap_failover_proxy.egg-info\requires.txt
131
+ writing top-level names to src\soap_failover_proxy.egg-info\top_level.txt
132
+ reading manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
133
+ writing manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
134
+ running check
135
+ creating soap_failover_proxy-2.0.2
136
+ creating soap_failover_proxy-2.0.2\src\soap_failover_proxy
137
+ creating soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
138
+ creating soap_failover_proxy-2.0.2\tests
139
+ copying files to soap_failover_proxy-2.0.2...
140
+ copying README.md -> soap_failover_proxy-2.0.2
141
+ copying pyproject.toml -> soap_failover_proxy-2.0.2
142
+ copying src\soap_failover_proxy\__init__.py -> soap_failover_proxy-2.0.2\src\soap_failover_proxy
143
+ copying src\soap_failover_proxy\cli.py -> soap_failover_proxy-2.0.2\src\soap_failover_proxy
144
+ copying src\soap_failover_proxy\middleware.py -> soap_failover_proxy-2.0.2\src\soap_failover_proxy
145
+ copying src\soap_failover_proxy.egg-info\PKG-INFO -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
146
+ copying src\soap_failover_proxy.egg-info\SOURCES.txt -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
147
+ copying src\soap_failover_proxy.egg-info\dependency_links.txt -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
148
+ copying src\soap_failover_proxy.egg-info\entry_points.txt -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
149
+ copying src\soap_failover_proxy.egg-info\requires.txt -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
150
+ copying src\soap_failover_proxy.egg-info\top_level.txt -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
151
+ copying tests\test_middleware_2_0_0.py -> soap_failover_proxy-2.0.2\tests
152
+ copying tests\test_middleware_2_0_1.py -> soap_failover_proxy-2.0.2\tests
153
+ Writing soap_failover_proxy-2.0.2\setup.cfg
154
+ Creating tar archive
155
+ removing 'soap_failover_proxy-2.0.2' (and everything under it)
156
+ * Building wheel from sdist
157
+ * Creating isolated environment: venv+pip...
158
+ * Installing packages in isolated environment:
159
+ - setuptools>=61.0.0
160
+ - wheel
161
+ * Getting build dependencies for wheel...
162
+ running egg_info
163
+ writing src\soap_failover_proxy.egg-info\PKG-INFO
164
+ writing dependency_links to src\soap_failover_proxy.egg-info\dependency_links.txt
165
+ writing entry points to src\soap_failover_proxy.egg-info\entry_points.txt
166
+ writing requirements to src\soap_failover_proxy.egg-info\requires.txt
167
+ writing top-level names to src\soap_failover_proxy.egg-info\top_level.txt
168
+ reading manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
169
+ writing manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
170
+ * Installed build dependency versions:
171
+ - setuptools==84.2.1
172
+ - wheel==0.48.0
173
+ * Building wheel...
174
+ running bdist_wheel
175
+ running build
176
+ running build_py
177
+ creating build\lib\soap_failover_proxy
178
+ copying src\soap_failover_proxy\cli.py -> build\lib\soap_failover_proxy
179
+ copying src\soap_failover_proxy\middleware.py -> build\lib\soap_failover_proxy
180
+ copying src\soap_failover_proxy\__init__.py -> build\lib\soap_failover_proxy
181
+ running egg_info
182
+ writing src\soap_failover_proxy.egg-info\PKG-INFO
183
+ writing dependency_links to src\soap_failover_proxy.egg-info\dependency_links.txt
184
+ writing entry points to src\soap_failover_proxy.egg-info\entry_points.txt
185
+ writing requirements to src\soap_failover_proxy.egg-info\requires.txt
186
+ writing top-level names to src\soap_failover_proxy.egg-info\top_level.txt
187
+ reading manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
188
+ writing manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
189
+ installing to build\bdist.win-amd64\wheel
190
+ running install
191
+ running install_lib
192
+ creating build\bdist.win-amd64\wheel
193
+ creating build\bdist.win-amd64\wheel\soap_failover_proxy
194
+ copying build\lib\soap_failover_proxy\cli.py -> build\bdist.win-amd64\wheel\.\soap_failover_proxy
195
+ copying build\lib\soap_failover_proxy\middleware.py -> build\bdist.win-amd64\wheel\.\soap_failover_proxy
196
+ copying build\lib\soap_failover_proxy\__init__.py -> build\bdist.win-amd64\wheel\.\soap_failover_proxy
197
+ running install_egg_info
198
+ Copying src\soap_failover_proxy.egg-info to build\bdist.win-amd64\wheel\.\soap_failover_proxy-2.0.2-py3.12.egg-info
199
+ running install_scripts
200
+ creating build\bdist.win-amd64\wheel\soap_failover_proxy-2.0.2.dist-info\WHEEL
201
+ creating 'C:\\Users\\moose\\eclipse-my-workspace\\soap-failover-proxy\\dist\\.tmp-361iwrt2\\soap_failover_proxy-2.0.2-py3-none-any.whl' and adding 'build\\bdist.win-amd64\\wheel' to it
202
+ adding 'soap_failover_proxy/__init__.py'
203
+ adding 'soap_failover_proxy/cli.py'
204
+ adding 'soap_failover_proxy/middleware.py'
205
+ adding 'soap_failover_proxy-2.0.2.dist-info/METADATA'
206
+ adding 'soap_failover_proxy-2.0.2.dist-info/WHEEL'
207
+ adding 'soap_failover_proxy-2.0.2.dist-info/entry_points.txt'
208
+ adding 'soap_failover_proxy-2.0.2.dist-info/top_level.txt'
209
+ adding 'soap_failover_proxy-2.0.2.dist-info/RECORD'
210
+ removing build\bdist.win-amd64\wheel
211
+ Successfully built soap_failover_proxy-2.0.2.tar.gz and soap_failover_proxy-2.0.2-py3-none-any.whl
212
+ ```
213
+
214
+
215
+ c. Pre-req for loading to testpipy
216
+
217
+ i. New packages in soap-middleware-proxy
218
+
219
+ ```bash
220
+ pip install build twine
221
+ ```
222
+
223
+ ii. Build
224
+
225
+ ```
226
+ pip -m build
227
+ ```
228
+
229
+ iii. Create $HOME/.pypirc
230
+
231
+ ```txt
232
+ [testpypi]
233
+ username = __token__
234
+ password = pypi-<redacted>
235
+ ```
236
+ d. Upload
237
+
238
+ ```powershell
239
+ (venv) PS C:\Users\moose\eclipse-my-workspace\soap-failover-proxy> twine upload -r testpypi dist/* --config-file $HOME/.pypirc
240
+ Uploading distributions to https://test.pypi.org/legacy/
241
+ Uploading soap_failover_proxy-2.0.2-py3-none-any.whl
242
+ 100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.1/18.1 kB • 00:00 • ?
243
+ Uploading soap_failover_proxy-2.0.2.tar.gz
244
+ 100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 22.2/22.2 kB • 00:00 • ?
245
+
246
+ View at:
247
+ https://test.pypi.org/project/soap-failover-proxy/2.0.2/
248
+ (venv) PS C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>
249
+ ```
250
+
251
+ e. Test upload
252
+
253
+ ```bash
254
+ (venv) PS C:\Users\moose\eclipse-my-workspace\soap-failover-proxy> twine check dist/*
255
+ Checking dist\soap_failover_proxy-2.0.2-py3-none-any.whl: PASSED
256
+ Checking dist\soap_failover_proxy-2.0.2.tar.gz: PASSED
257
+ ```
258
+
259
+ f. Verify Use by Candidate Python webservice
260
+
261
+ i) Create requirements-test.txt
262
+
263
+ ```txt
264
+ -r requirements.txt
265
+ --extra-index-url https://test.pypi.org/simple/
266
+ ```
267
+
268
+ ii) Instructions
269
+
270
+ Check the installation output with -v (Verbose mode). Run the install with -v and --no-cache-dir to see the exact download URL in the terminal logs, inorder to ensure source is test.pipy:
271
+
272
+ Note: Look for https://pythonhosted.org... (production PyPI) versus https://pythonhosted.org... (TestPyPI).
273
+
274
+ ```bash
275
+ pip uninstall -y soap-failover-proxy
276
+ pip install --no-cache-dir -r requirements-test.txt soap-failover-proxy==2.0.3rc1
277
+ ```
278
+
279
+ OUTCOME
280
+
281
+ ```bash
282
+ (venv) PS C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech> pip install --no-cache-dir -v -r requirements.txt | grep "soap-failover-proxy"
283
+ ..
284
+ Obtaining dependency information for soap-failover-proxy==2.0.3rc1 from https://test-files.pythonhosted.org/packages/41/7a/f2fea0336d6aeaa32c9e138671c942e213195224f88df226052a1690b9b8/soap_failover_proxy-2.0.2-py3-none-any.whl.metadata
285
+ ..
286
+ ```
287
+
288
+
289
+ #### 3.1.2.2 Upload to Pipy with Twine (Stufft, 2019)
290
+
291
+ a. Increment .toml version identifier.
292
+
293
+ b. Create Assembly
294
+
295
+ ```bash
296
+ (venv) C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>python -m build
297
+ * Creating isolated environment: venv+pip...
298
+ * Installing packages in isolated environment:
299
+ - setuptools>=61.0.0
300
+ - wheel
301
+ * Getting build dependencies for sdist...
302
+ running egg_info
303
+ writing src\soap_failover_proxy.egg-info\PKG-INFO
304
+ writing dependency_links to src\soap_failover_proxy.egg-info\dependency_links.txt
305
+ writing entry points to src\soap_failover_proxy.egg-info\entry_points.txt
306
+ writing requirements to src\soap_failover_proxy.egg-info\requires.txt
307
+ writing top-level names to src\soap_failover_proxy.egg-info\top_level.txt
308
+ reading manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
309
+ writing manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
310
+ * Installed build dependency versions:
311
+ - setuptools==84.2.1
312
+ - wheel==0.48.0
313
+ * Building sdist...
314
+ running sdist
315
+ running egg_info
316
+ writing src\soap_failover_proxy.egg-info\PKG-INFO
317
+ writing dependency_links to src\soap_failover_proxy.egg-info\dependency_links.txt
318
+ writing entry points to src\soap_failover_proxy.egg-info\entry_points.txt
319
+ writing requirements to src\soap_failover_proxy.egg-info\requires.txt
320
+ writing top-level names to src\soap_failover_proxy.egg-info\top_level.txt
321
+ reading manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
322
+ writing manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
323
+ running check
324
+ creating soap_failover_proxy-2.0.2
325
+ creating soap_failover_proxy-2.0.2\src\soap_failover_proxy
326
+ creating soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
327
+ creating soap_failover_proxy-2.0.2\tests
328
+ copying files to soap_failover_proxy-2.0.2...
329
+ copying README.md -> soap_failover_proxy-2.0.2
330
+ copying pyproject.toml -> soap_failover_proxy-2.0.2
331
+ copying src\soap_failover_proxy\__init__.py -> soap_failover_proxy-2.0.2\src\soap_failover_proxy
332
+ copying src\soap_failover_proxy\cli.py -> soap_failover_proxy-2.0.2\src\soap_failover_proxy
333
+ copying src\soap_failover_proxy\middleware.py -> soap_failover_proxy-2.0.2\src\soap_failover_proxy
334
+ copying src\soap_failover_proxy.egg-info\PKG-INFO -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
335
+ copying src\soap_failover_proxy.egg-info\SOURCES.txt -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
336
+ copying src\soap_failover_proxy.egg-info\dependency_links.txt -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
337
+ copying src\soap_failover_proxy.egg-info\entry_points.txt -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
338
+ copying src\soap_failover_proxy.egg-info\requires.txt -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
339
+ copying src\soap_failover_proxy.egg-info\top_level.txt -> soap_failover_proxy-2.0.2\src\soap_failover_proxy.egg-info
340
+ copying tests\test_middleware_2_0_0.py -> soap_failover_proxy-2.0.2\tests
341
+ copying tests\test_middleware_2_0_1.py -> soap_failover_proxy-2.0.2\tests
342
+ Writing soap_failover_proxy-2.0.2\setup.cfg
343
+ Creating tar archive
344
+ removing 'soap_failover_proxy-2.0.2' (and everything under it)
345
+ * Building wheel from sdist
346
+ * Creating isolated environment: venv+pip...
347
+ * Installing packages in isolated environment:
348
+ - setuptools>=61.0.0
349
+ - wheel
350
+ * Getting build dependencies for wheel...
351
+ running egg_info
352
+ writing src\soap_failover_proxy.egg-info\PKG-INFO
353
+ writing dependency_links to src\soap_failover_proxy.egg-info\dependency_links.txt
354
+ writing entry points to src\soap_failover_proxy.egg-info\entry_points.txt
355
+ writing requirements to src\soap_failover_proxy.egg-info\requires.txt
356
+ writing top-level names to src\soap_failover_proxy.egg-info\top_level.txt
357
+ reading manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
358
+ writing manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
359
+ * Installed build dependency versions:
360
+ - setuptools==84.2.1
361
+ - wheel==0.48.0
362
+ * Building wheel...
363
+ running bdist_wheel
364
+ running build
365
+ running build_py
366
+ creating build\lib\soap_failover_proxy
367
+ copying src\soap_failover_proxy\cli.py -> build\lib\soap_failover_proxy
368
+ copying src\soap_failover_proxy\middleware.py -> build\lib\soap_failover_proxy
369
+ copying src\soap_failover_proxy\__init__.py -> build\lib\soap_failover_proxy
370
+ running egg_info
371
+ writing src\soap_failover_proxy.egg-info\PKG-INFO
372
+ writing dependency_links to src\soap_failover_proxy.egg-info\dependency_links.txt
373
+ writing entry points to src\soap_failover_proxy.egg-info\entry_points.txt
374
+ writing requirements to src\soap_failover_proxy.egg-info\requires.txt
375
+ writing top-level names to src\soap_failover_proxy.egg-info\top_level.txt
376
+ reading manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
377
+ writing manifest file 'src\soap_failover_proxy.egg-info\SOURCES.txt'
378
+ installing to build\bdist.win-amd64\wheel
379
+ running install
380
+ running install_lib
381
+ creating build\bdist.win-amd64\wheel
382
+ creating build\bdist.win-amd64\wheel\soap_failover_proxy
383
+ copying build\lib\soap_failover_proxy\cli.py -> build\bdist.win-amd64\wheel\.\soap_failover_proxy
384
+ copying build\lib\soap_failover_proxy\middleware.py -> build\bdist.win-amd64\wheel\.\soap_failover_proxy
385
+ copying build\lib\soap_failover_proxy\__init__.py -> build\bdist.win-amd64\wheel\.\soap_failover_proxy
386
+ running install_egg_info
387
+ Copying src\soap_failover_proxy.egg-info to build\bdist.win-amd64\wheel\.\soap_failover_proxy-2.0.2-py3.12.egg-info
388
+ running install_scripts
389
+ creating build\bdist.win-amd64\wheel\soap_failover_proxy-2.0.2.dist-info\WHEEL
390
+ creating 'C:\\Users\\moose\\eclipse-my-workspace\\soap-failover-proxy\\dist\\.tmp-361iwrt2\\soap_failover_proxy-2.0.2-py3-none-any.whl' and adding 'build\\bdist.win-amd64\\wheel' to it
391
+ adding 'soap_failover_proxy/__init__.py'
392
+ adding 'soap_failover_proxy/cli.py'
393
+ adding 'soap_failover_proxy/middleware.py'
394
+ adding 'soap_failover_proxy-2.0.2.dist-info/METADATA'
395
+ adding 'soap_failover_proxy-2.0.2.dist-info/WHEEL'
396
+ adding 'soap_failover_proxy-2.0.2.dist-info/entry_points.txt'
397
+ adding 'soap_failover_proxy-2.0.2.dist-info/top_level.txt'
398
+ adding 'soap_failover_proxy-2.0.2.dist-info/RECORD'
399
+ removing build\bdist.win-amd64\wheel
400
+ Successfully built soap_failover_proxy-2.0.2.tar.gz and soap_failover_proxy-2.0.2-py3-none-any.whl
401
+ ```
402
+
403
+ c. Pre-req for uploading to pipy
404
+
405
+ i) New packages in soap-middleware-proxy
406
+
407
+ ```bash
408
+ pip install build twine
409
+ ```
410
+
411
+ ii) Build
412
+
413
+ ```
414
+ pip -m build
415
+ ```
416
+
417
+ iii) Create $HOME/.pypirc
418
+
419
+ ```txt
420
+ [distutils]
421
+ index-servers =
422
+ pypi
423
+ testpypi
424
+
425
+ [pypi]
426
+ username = __token__
427
+ password = pypi-..
428
+
429
+ [testpypi]
430
+ username = __token__
431
+ password = pypi-..
432
+ ```
433
+
434
+
435
+
436
+ d. upload
437
+
438
+ ```bash
439
+ (venv) PS C:\Users\moose\eclipse-my-workspace\soap-failover-proxy> twine upload dist/* --config-file $HOME/.pypirc
440
+ Uploading distributions to https://upload.pypi.org/legacy/
441
+ Uploading soap_failover_proxy-2.0.2-py3-none-any.whl
442
+ 100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.1/18.1 kB • 00:00 • ?
443
+ Uploading soap_failover_proxy-2.0.2.tar.gz
444
+ 100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 22.2/22.2 kB • 00:00 • ?
445
+ ```
446
+
447
+
448
+ e. Test upload
449
+
450
+ ```bash
451
+ (venv) PS C:\Users\moose\eclipse-my-workspace\soap-failover-proxy> twine check dist/*
452
+ Checking dist\soap_failover_proxy-2.0.2-py3-none-any.whl: PASSED
453
+ Checking dist\soap_failover_proxy-2.0.2.tar.gz: PASSED
454
+ (venv) PS C:\Users\moose\eclipse-my-workspace\soap-failover-proxy>
455
+ ```
456
+
457
+ f. Verify Use by Candidate Python webservice
458
+
459
+
460
+ i. requirements.txt
461
+
462
+ ```txt
463
+
464
+ soap-failover-proxy==2.0.2
465
+ ..
466
+ ```
467
+
468
+ ii. Instructions
469
+
470
+ Check the installation output with -v (Verbose mode). Run the install with -v and --no-cache-dir to see the exact download URL in the terminal logs, inorder to ensure source is pipy and not test.pipy:
471
+
472
+ Note: Look for https://pythonhosted.org... (production PyPI) versus https://pythonhosted.org... (TestPyPI).
473
+
474
+ ```bash
475
+ pip uninstall -y soap-failover-proxy
476
+ pip install --no-cache-dir -v -r requirements.txt | grep "soap-failover-proxy"
477
+ ```
478
+
479
+ OUTCOME
480
+
481
+ ```bash
482
+ (venv) PS C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech> pip install --no-cache-dir -v -r requirements.txt | grep "soap-failover-proxy"
483
+ ..
484
+ Obtaining dependency information for soap-failover-proxy==2.0.2 from https://files.pythonhosted.org/packages/41/7a/f2fea0336d6aeaa32c9e138671c942e213195224f88df226052a1690b9b8/soap_failover_proxy-2.0.2-py3-none-any.whl.metadata
485
+ ..
486
+ ```
487
+
488
+ ### 3.2 HOW to Test
489
+
490
+
491
+ #### 3.2.1 Import into webservice, which has a like for like duplicate/backup
492
+
493
+ Since, the folder holding the webservice, and the soap-service is different, provide location:
494
+
495
+ i. Local
496
+
497
+ ```bash
498
+
499
+ C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech>venv\Scripts\activate
500
+
501
+ (venv) C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech>pip install -e ../../eclipse-my-workspace/Soap-failover-proxy/. --force-reinstall
502
+ Obtaining file:///C:/Users/moose/eclipse-my-workspace/Soap-failover-proxy
503
+ Installing build dependencies ... done
504
+ Checking if build backend supports build_editable ... done
505
+ Getting requirements to build editable ... done
506
+ Preparing editable metadata (pyproject.toml) ... done
507
+ Requirement already satisfied: cryptography>=42.0.0 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from soap-failover-proxy==2.0.1) (50.0.2)
508
+ Requirement already satisfied: cffi>=2.0.0 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from cryptography>=42.0.0->soap-failover-proxy==2.0.1) (2.1.1)
509
+ Requirement already satisfied: pycparser in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from cffi>=2.0.0->cryptography>=42.0.0->soap-failover-proxy==2.0.1) (3.11)
510
+ Building wheels for collected packages: soap-failover-proxy
511
+ Building editable for soap-failover-proxy (pyproject.toml) ... done
512
+ Created wheel for soap-failover-proxy: filename=soap_failover_proxy-2.0.1-0.editable-py3-none-any.whl size=3178 sha256=48dfe3a350343c2023b89d64c16c58d13f5ce65af12ec2f3017ecd7f0f212b0c
513
+ Stored in directory: C:\Users\moose\AppData\Local\Temp\pip-ephem-wheel-cache-11lhnhsp\wheels\7d\21\47\83dbedb8aef8b572caa0e369eca420685dfe13015ff98b7cc6
514
+ Successfully built soap-failover-proxy
515
+ Installing collected packages: soap-failover-proxy
516
+ Attempting uninstall: soap-failover-proxy
517
+ Found existing installation: soap-failover-proxy 2.0.0
518
+ Uninstalling soap-failover-proxy-2.0.0:
519
+ Successfully uninstalled soap-failover-proxy-2.0.0
520
+ Successfully installed soap-failover-proxy-2.0.1
521
+
522
+ [notice] A new release of pip is available: 24.0 -> 26.2.2
523
+ [notice] To update, run: python.exe -m pip install --upgrade pip
524
+
525
+ (venv) C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech>python -c "import soap_failover_proxy; print('Transliteration app successfully grabbed it')"
526
+ Transliteration app successfully grabbed it
527
+
528
+ ```
529
+
530
+ ii. Production
531
+
532
+ a. In hosting server's requirements.txt
533
+
534
+ ```txt
535
+ --index-url https://pypi.org/simple/
536
+ --extra-index-url https://test.pypi.org/simple/
537
+
538
+ soap-failover-proxy==2.0.2
539
+ ..
540
+ ```
541
+
542
+ b. Install
543
+
544
+ ```bash
545
+ (venv) C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech>pip install -r requirements.txt
546
+ Looking in indexes: https://pypi.org/simple/, https://test.pypi.org/simple/
547
+ Requirement already satisfied: attrs==26.1.0 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 4)) (26.1.0)
548
+ Requirement already satisfied: certifi==2026.7.22 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 5)) (2026.7.22)
549
+ Requirement already satisfied: charset-normalizer==3.5.1 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 6)) (3.5.1)
550
+ Requirement already satisfied: idna==3.19 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 7)) (3.19)
551
+ Requirement already satisfied: isodate==0.7.2 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 8)) (0.7.2)
552
+ Requirement already satisfied: lxml==6.1.3 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 9)) (6.1.3)
553
+ Requirement already satisfied: platformdirs==4.11.8 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 10)) (4.11.8)
554
+ Requirement already satisfied: python-dotenv==1.2.3 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 11)) (1.2.3)
555
+ Requirement already satisfied: pytz==2026.3.post1 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 12)) (2026.3.post1)
556
+ Requirement already satisfied: requests==2.34.2 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 13)) (2.34.2)
557
+ Requirement already satisfied: requests-file==3.0.1 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 14)) (3.0.1)
558
+ Requirement already satisfied: requests-toolbelt==1.0.0 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 15)) (1.0.0)
559
+ Collecting soap-failover-proxy==2.0.2 (from -r requirements.txt (line 16))
560
+ Downloading https://test-files.pythonhosted.org/packages/41/7a/f2fea0336d6aeaa32c9e138671c942e213195224f88df226052a1690b9b8/soap_failover_proxy-2.0.2-py3-none-any.whl.metadata (7.5 kB)
561
+ Requirement already satisfied: spyne==2.14.0 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 17)) (2.14.0)
562
+ Requirement already satisfied: urllib3==2.7.0 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 18)) (2.7.0)
563
+ Requirement already satisfied: waitress==3.0.2 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 19)) (3.0.2)
564
+ Requirement already satisfied: zeep==4.3.3 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from -r requirements.txt (line 20)) (4.3.3)
565
+ Requirement already satisfied: cryptography>=42.0.0 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from soap-failover-proxy==2.0.2->-r requirements.txt (line 16)) (50.0.2)
566
+ Requirement already satisfied: cffi>=2.0.0 in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from cryptography>=42.0.0->soap-failover-proxy==2.0.2->-r requirements.txt (line 16)) (2.1.1)
567
+ Requirement already satisfied: pycparser in c:\users\moose\eclipse-workspace\transliteration.systematicdefence.tech\venv\lib\site-packages (from cffi>=2.0.0->cryptography>=42.0.0->soap-failover-proxy==2.0.2->-r requirements.txt (line 16)) (3.12)
568
+ Downloading https://test-files.pythonhosted.org/packages/41/7a/f2fea0336d6aeaa32c9e138671c942e213195224f88df226052a1690b9b8/soap_failover_proxy-2.0.2-py3-none-any.whl (9.0 kB)
569
+ Installing collected packages: soap-failover-proxy
570
+ Successfully installed soap-failover-proxy-2.0.2
571
+
572
+ [notice] A new release of pip is available: 24.0 -> 26.3
573
+ [notice] To update, run: python.exe -m pip install --upgrade pip
574
+ ```
575
+
576
+
577
+
578
+ #### 3.2.2 Add vendor supplied 'ecryption key' and 'admin key' to webservice's .env
579
+
580
+ ```text
581
+ ADMIN_API_KEY=<redacted>
582
+ MY_AES_SECRET_KEY=<redacted>
583
+ ```
584
+
585
+ #### 3.2.3 Create encrypted string
586
+
587
+ ![Create encrypted string as admin key](./CustomerKeyGenTool.png)
588
+
589
+
590
+ #### 3.2.4 Ensure both candidate web services are turned on
591
+
592
+ ##### 3.2.4.1 Calc Webservice
593
+
594
+ ```bash
595
+ C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech>rmdir /s /q venv
596
+
597
+ C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech>py -3.11 -m venv venv
598
+
599
+ C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech>venv\Scripts\activate
600
+
601
+ (venv) C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech>pip install -r requirements.txt
602
+
603
+ (venv) C:\Users\moose\eclipse-workspace\transliteration.systematicdefence.tech>waitress-serve --host=127.0.0.1 --port=8000 passenger_wsgi:application
604
+ INFO:waitress:Serving on http://127.0.0.1:8000
605
+
606
+ ```
607
+
608
+ ##### 3.2.4.2 Calc Backup Webservice
609
+
610
+ ```bash
611
+ (venv) C:\Users\moose\eclipse-workspace\transliteration-backup.systematicdefence.tech>waitress-serve --host=127.0.0.1 --port=8080 passenger_wsgi:application
612
+ INFO:waitress:Serving on http://127.0.0.1:8080
613
+ ```
614
+
615
+ #### 3.2.5 Make Request
616
+
617
+ ##### 3.2.5.1 Switch to backup
618
+
619
+ ![SWITCH_TO_BACKUP](./SWITCH_TO_BACKUP_WORKS.png)
620
+
621
+ ##### 3.2.5.2 Switch from backup
622
+
623
+ ![SWITCH_TO_LOCAL](./SWITCH_TO_LOCAL_WORKS.png)
624
+
625
+ ## References
626
+
627
+ 1. Stufft, D.(2019). twine 7.0.0 documentation - Twine. https://twine.readthedocs.io/en/stable/#authentication. Last Accessed: 13 Nov 2026.
628
+
629
+ ## Versions
630
+
631
+ ### Version 1.0 Operational
632
+
633
+ 11 Oct 2026 Sunday 15:43
634
+
635
+ See tests/EndtoEndSmokeTest.md and tests/UnitTests.md for current functionality.
636
+
637
+ ### Version 1.0.1 Post Quantum protection added
638
+ 11 Oct 2026 Sunday 16:59
639
+
640
+ Added Shared Secret to keep Admin key protected from Post Quantam attacks. Updated tests.
641
+
642
+ ### Version 2.0.0 Post Quantum protection tests pass
643
+
644
+ 11 Oct 2026 Sunday 18:22
645
+
646
+ Post Quantum protection and dependency in assembly. See test/UnitTests.md for evidence.
647
+
648
+ ### Version 2.0.1 Add facility of testing endpoint, when all service endpoints redirected
649
+
650
+ 24 Oct 2026 Sunday 17:00
651
+
652
+ Now the assembly provides facility to enable testing even when it is being redirected to backup. It does so via a token it generates at runtime. This needs to be provided to the webservice in the header. This token is stored in Maintenance.lock, and is returned as part of the 'switch-to-backup' method. Unit Tests all pass. See UnitTests.md for details. Here is an example
653
+
654
+ ```bash
655
+ PS C:\Users\moose> curl -X POST http://127.0.0.1:8000/ `
656
+ >> -H "Content-Type: text/xml; charset=utf-8" `
657
+ >> -H "X-BYPASS-TOKEN: 3698e1add5287563cd4c03e06da9ce37" `
658
+ >> -d $xmlData
659
+ <?xml version='1.0' encoding='UTF-8'?>
660
+ <soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="spyne.examples.hello"><soap11env:Body><tns:add_numbersResponse><tns:add_numbersResult>12</tns:add_numbersResult></tns:add_numbersResponse></soap11env:Body></soap11env:Envelope>
661
+ ```
662
+
663
+ ### Version 2.0.2 Updated to ensure that incorrect header provided for testing endpoint is handled gracefully
664
+
665
+ 29 Oct 2026 Thursday 21:30
666
+
667
+ Negative scenario setup to ensure test url:
668
+
669
+ ```bash
670
+ PS C:\Users\moose> curl -X POST http://127.0.0.1:8000/ `
671
+ >> -H "Content-Type: text/xml; charset=utf-8" `
672
+ >> -H "X-BYPASS-TOKEN: asd" `
673
+ >> -d $xmlData
674
+ 403 Forbidden: Invalid maintenance bypass token validation parameter.
675
+ ```
676
+
677
+ ### Version 3.0.0 Upload to PyPi registry
678
+
679
+ ### Version 3.0.1 Upload to TestPyPi registry
680
+
681
+ Fleshed out Deployment section 3.1.2 PRODUCTION for test.pypi.
682
+
683
+ ![STEP 1](./tests/evidence/TestPyPiProductionDeployment.png)
684
+
685
+ Next step is to do for pypi - See Sprint 4 Story 3 Package Deployment to Prod.
686
+
687
+ ```