wexample-wex-addon-master 6.0.29__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.
- wexample_wex_addon_master-6.0.29/PKG-INFO +313 -0
- wexample_wex_addon_master-6.0.29/README.md +297 -0
- wexample_wex_addon_master-6.0.29/pyproject.toml +81 -0
- wexample_wex_addon_master-6.0.29/src/wexample_wex_addon_master/__init__.py +0 -0
- wexample_wex_addon_master-6.0.29/src/wexample_wex_addon_master/commands/__init__.py +0 -0
- wexample_wex_addon_master-6.0.29/src/wexample_wex_addon_master/master_addon_manager.py +15 -0
- wexample_wex_addon_master-6.0.29/src/wexample_wex_addon_master/py.typed +0 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: wexample-wex-addon-master
|
|
3
|
+
Version: 6.0.29
|
|
4
|
+
Summary: Master addon for wex — control tower over projects, apps, servers, DNS, packages
|
|
5
|
+
Author-Email: weeger <contact@wexample.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Requires-Python: >=3.10
|
|
11
|
+
Requires-Dist: wexample-wex-core>=20.3.0
|
|
12
|
+
Provides-Extra: dev
|
|
13
|
+
Requires-Dist: pytest; extra == "dev"
|
|
14
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
# wex_addon_master
|
|
18
|
+
|
|
19
|
+
Version: 6.0.29
|
|
20
|
+
|
|
21
|
+
Master addon for wex — control tower over projects, apps, servers, DNS, packages
|
|
22
|
+
|
|
23
|
+
## Table of Contents
|
|
24
|
+
|
|
25
|
+
- [Tests](#tests)
|
|
26
|
+
- [Suite Integration](#suite-integration)
|
|
27
|
+
- [Dependencies](#dependencies)
|
|
28
|
+
- [Versioning](#versioning)
|
|
29
|
+
- [License](#license)
|
|
30
|
+
- [Suite Integration](#suite-integration)
|
|
31
|
+
- [Suite Signature](#suite-signature)
|
|
32
|
+
- [Introduction](#introduction)
|
|
33
|
+
- [Roadmap](#roadmap)
|
|
34
|
+
- [Status Compatibility](#status-compatibility)
|
|
35
|
+
- [Useful Links](#useful-links)
|
|
36
|
+
- [Migration Notes](#migration-notes)
|
|
37
|
+
|
|
38
|
+
## Tests
|
|
39
|
+
|
|
40
|
+
This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
|
|
41
|
+
|
|
42
|
+
### Installation
|
|
43
|
+
|
|
44
|
+
First, install the required testing dependencies:
|
|
45
|
+
```bash
|
|
46
|
+
.venv/bin/python -m pip install pytest pytest-cov
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Basic Usage
|
|
50
|
+
|
|
51
|
+
Run all tests with coverage:
|
|
52
|
+
```bash
|
|
53
|
+
.venv/bin/python -m pytest --cov --cov-report=html
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Common Commands
|
|
57
|
+
```bash
|
|
58
|
+
# Run tests with coverage for a specific module
|
|
59
|
+
.venv/bin/python -m pytest --cov=your_module
|
|
60
|
+
|
|
61
|
+
# Show which lines are not covered
|
|
62
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
|
|
63
|
+
|
|
64
|
+
# Generate an HTML coverage report
|
|
65
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=html
|
|
66
|
+
|
|
67
|
+
# Combine terminal and HTML reports
|
|
68
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
|
|
69
|
+
|
|
70
|
+
# Run specific test file with coverage
|
|
71
|
+
.venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Viewing HTML Reports
|
|
75
|
+
|
|
76
|
+
After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
|
|
77
|
+
|
|
78
|
+
### Coverage Threshold
|
|
79
|
+
|
|
80
|
+
To enforce a minimum coverage percentage:
|
|
81
|
+
```bash
|
|
82
|
+
.venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
This will cause the test suite to fail if coverage drops below 80%.
|
|
86
|
+
|
|
87
|
+
## Integration in the Suite
|
|
88
|
+
|
|
89
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
90
|
+
|
|
91
|
+
### Related Packages
|
|
92
|
+
|
|
93
|
+
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
|
|
94
|
+
|
|
95
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
96
|
+
|
|
97
|
+
## Dependencies
|
|
98
|
+
|
|
99
|
+
- wexample-wex-core: >=20.3.0
|
|
100
|
+
|
|
101
|
+
## Versioning & Compatibility Policy
|
|
102
|
+
|
|
103
|
+
Wexample packages follow **Semantic Versioning** (SemVer):
|
|
104
|
+
|
|
105
|
+
- **MAJOR**: Breaking changes
|
|
106
|
+
- **MINOR**: New features, backward compatible
|
|
107
|
+
- **PATCH**: Bug fixes, backward compatible
|
|
108
|
+
|
|
109
|
+
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
|
|
110
|
+
|
|
111
|
+
## License
|
|
112
|
+
|
|
113
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
114
|
+
|
|
115
|
+
Free to use in both personal and commercial projects.
|
|
116
|
+
|
|
117
|
+
## Integration in the Suite
|
|
118
|
+
|
|
119
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
120
|
+
|
|
121
|
+
### Related Packages
|
|
122
|
+
|
|
123
|
+
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
|
|
124
|
+
|
|
125
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
126
|
+
|
|
127
|
+
# About us
|
|
128
|
+
|
|
129
|
+
[Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
|
|
130
|
+
|
|
131
|
+
This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
|
|
132
|
+
|
|
133
|
+
Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
|
|
134
|
+
|
|
135
|
+
# wex_addon_master
|
|
136
|
+
|
|
137
|
+
Version: 0.0.1
|
|
138
|
+
|
|
139
|
+
Master addon for wex — control tower over projects, apps, servers, DNS, packages
|
|
140
|
+
|
|
141
|
+
## Table of Contents
|
|
142
|
+
|
|
143
|
+
- [Tests](#tests)
|
|
144
|
+
- [Suite Integration](#suite-integration)
|
|
145
|
+
- [Dependencies](#dependencies)
|
|
146
|
+
- [Versioning](#versioning)
|
|
147
|
+
- [License](#license)
|
|
148
|
+
- [Suite Integration](#suite-integration)
|
|
149
|
+
- [Suite Signature](#suite-signature)
|
|
150
|
+
- [Introduction](#introduction)
|
|
151
|
+
- [Roadmap](#roadmap)
|
|
152
|
+
- [Status Compatibility](#status-compatibility)
|
|
153
|
+
- [Useful Links](#useful-links)
|
|
154
|
+
- [Migration Notes](#migration-notes)
|
|
155
|
+
|
|
156
|
+
## Tests
|
|
157
|
+
|
|
158
|
+
This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
|
|
159
|
+
|
|
160
|
+
### Installation
|
|
161
|
+
|
|
162
|
+
First, install the required testing dependencies:
|
|
163
|
+
```bash
|
|
164
|
+
.venv/bin/python -m pip install pytest pytest-cov
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Basic Usage
|
|
168
|
+
|
|
169
|
+
Run all tests with coverage:
|
|
170
|
+
```bash
|
|
171
|
+
.venv/bin/python -m pytest --cov --cov-report=html
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Common Commands
|
|
175
|
+
```bash
|
|
176
|
+
# Run tests with coverage for a specific module
|
|
177
|
+
.venv/bin/python -m pytest --cov=your_module
|
|
178
|
+
|
|
179
|
+
# Show which lines are not covered
|
|
180
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
|
|
181
|
+
|
|
182
|
+
# Generate an HTML coverage report
|
|
183
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=html
|
|
184
|
+
|
|
185
|
+
# Combine terminal and HTML reports
|
|
186
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
|
|
187
|
+
|
|
188
|
+
# Run specific test file with coverage
|
|
189
|
+
.venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Viewing HTML Reports
|
|
193
|
+
|
|
194
|
+
After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
|
|
195
|
+
|
|
196
|
+
### Coverage Threshold
|
|
197
|
+
|
|
198
|
+
To enforce a minimum coverage percentage:
|
|
199
|
+
```bash
|
|
200
|
+
.venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
This will cause the test suite to fail if coverage drops below 80%.
|
|
204
|
+
|
|
205
|
+
## Integration in the Suite
|
|
206
|
+
|
|
207
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
208
|
+
|
|
209
|
+
### Related Packages
|
|
210
|
+
|
|
211
|
+
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
|
|
212
|
+
|
|
213
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
214
|
+
|
|
215
|
+
## Dependencies
|
|
216
|
+
|
|
217
|
+
- wexample-wex-core: >=20.3.0
|
|
218
|
+
|
|
219
|
+
## Versioning & Compatibility Policy
|
|
220
|
+
|
|
221
|
+
Wexample packages follow **Semantic Versioning** (SemVer):
|
|
222
|
+
|
|
223
|
+
- **MAJOR**: Breaking changes
|
|
224
|
+
- **MINOR**: New features, backward compatible
|
|
225
|
+
- **PATCH**: Bug fixes, backward compatible
|
|
226
|
+
|
|
227
|
+
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
|
|
228
|
+
|
|
229
|
+
## License
|
|
230
|
+
|
|
231
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
232
|
+
|
|
233
|
+
Free to use in both personal and commercial projects.
|
|
234
|
+
|
|
235
|
+
## Integration in the Suite
|
|
236
|
+
|
|
237
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
238
|
+
|
|
239
|
+
### Related Packages
|
|
240
|
+
|
|
241
|
+
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
|
|
242
|
+
|
|
243
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
244
|
+
|
|
245
|
+
# About us
|
|
246
|
+
|
|
247
|
+
[Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
|
|
248
|
+
|
|
249
|
+
This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
|
|
250
|
+
|
|
251
|
+
Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
|
|
252
|
+
|
|
253
|
+
A Python toolkit providing wex addon capabilities to act as a control tower over projects: apps, servers, DNS zones, Ansible configs, and package publications.
|
|
254
|
+
|
|
255
|
+
## Known Limitations & Roadmap
|
|
256
|
+
|
|
257
|
+
Current limitations and planned features are tracked in the GitHub issues.
|
|
258
|
+
|
|
259
|
+
See the [project roadmap](https://github.com/wexample/python-wex_addon_master/issues) for upcoming features and improvements.
|
|
260
|
+
|
|
261
|
+
## Status & Compatibility
|
|
262
|
+
|
|
263
|
+
**Maturity**: Production-ready
|
|
264
|
+
|
|
265
|
+
**Python Support**: >=3.10
|
|
266
|
+
|
|
267
|
+
**OS Support**: Linux, macOS, Windows
|
|
268
|
+
|
|
269
|
+
**Status**: Actively maintained
|
|
270
|
+
|
|
271
|
+
## Useful Links
|
|
272
|
+
|
|
273
|
+
- **Homepage**: https://github.com/wexample/python-wex-addon-master
|
|
274
|
+
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
275
|
+
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-master/issues
|
|
276
|
+
- **Discussions**: https://github.com/wexample/python-wex-addon-master/discussions
|
|
277
|
+
- **PyPI**: [pypi.org/project/wex_addon_master](https://pypi.org/project/wex_addon_master/)
|
|
278
|
+
|
|
279
|
+
## Migration Notes
|
|
280
|
+
|
|
281
|
+
When upgrading between major versions, refer to the migration guides in the documentation.
|
|
282
|
+
|
|
283
|
+
Breaking changes are clearly documented with upgrade paths and examples.
|
|
284
|
+
|
|
285
|
+
## Known Limitations & Roadmap
|
|
286
|
+
|
|
287
|
+
Current limitations and planned features are tracked in the GitHub issues.
|
|
288
|
+
|
|
289
|
+
See the [project roadmap](https://github.com/wexample/python-wex_addon_master/issues) for upcoming features and improvements.
|
|
290
|
+
|
|
291
|
+
## Status & Compatibility
|
|
292
|
+
|
|
293
|
+
**Maturity**: Production-ready
|
|
294
|
+
|
|
295
|
+
**Python Support**: >=3.10
|
|
296
|
+
|
|
297
|
+
**OS Support**: Linux, macOS, Windows
|
|
298
|
+
|
|
299
|
+
**Status**: Actively maintained
|
|
300
|
+
|
|
301
|
+
## Useful Links
|
|
302
|
+
|
|
303
|
+
- **Homepage**: https://github.com/wexample/python-wex-addon-master
|
|
304
|
+
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
305
|
+
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-master/issues
|
|
306
|
+
- **Discussions**: https://github.com/wexample/python-wex-addon-master/discussions
|
|
307
|
+
- **PyPI**: [pypi.org/project/wex_addon_master](https://pypi.org/project/wex_addon_master/)
|
|
308
|
+
|
|
309
|
+
## Migration Notes
|
|
310
|
+
|
|
311
|
+
When upgrading between major versions, refer to the migration guides in the documentation.
|
|
312
|
+
|
|
313
|
+
Breaking changes are clearly documented with upgrade paths and examples.
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
# wex_addon_master
|
|
2
|
+
|
|
3
|
+
Version: 6.0.29
|
|
4
|
+
|
|
5
|
+
Master addon for wex — control tower over projects, apps, servers, DNS, packages
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Tests](#tests)
|
|
10
|
+
- [Suite Integration](#suite-integration)
|
|
11
|
+
- [Dependencies](#dependencies)
|
|
12
|
+
- [Versioning](#versioning)
|
|
13
|
+
- [License](#license)
|
|
14
|
+
- [Suite Integration](#suite-integration)
|
|
15
|
+
- [Suite Signature](#suite-signature)
|
|
16
|
+
- [Introduction](#introduction)
|
|
17
|
+
- [Roadmap](#roadmap)
|
|
18
|
+
- [Status Compatibility](#status-compatibility)
|
|
19
|
+
- [Useful Links](#useful-links)
|
|
20
|
+
- [Migration Notes](#migration-notes)
|
|
21
|
+
|
|
22
|
+
## Tests
|
|
23
|
+
|
|
24
|
+
This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
|
|
25
|
+
|
|
26
|
+
### Installation
|
|
27
|
+
|
|
28
|
+
First, install the required testing dependencies:
|
|
29
|
+
```bash
|
|
30
|
+
.venv/bin/python -m pip install pytest pytest-cov
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Basic Usage
|
|
34
|
+
|
|
35
|
+
Run all tests with coverage:
|
|
36
|
+
```bash
|
|
37
|
+
.venv/bin/python -m pytest --cov --cov-report=html
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Common Commands
|
|
41
|
+
```bash
|
|
42
|
+
# Run tests with coverage for a specific module
|
|
43
|
+
.venv/bin/python -m pytest --cov=your_module
|
|
44
|
+
|
|
45
|
+
# Show which lines are not covered
|
|
46
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
|
|
47
|
+
|
|
48
|
+
# Generate an HTML coverage report
|
|
49
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=html
|
|
50
|
+
|
|
51
|
+
# Combine terminal and HTML reports
|
|
52
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
|
|
53
|
+
|
|
54
|
+
# Run specific test file with coverage
|
|
55
|
+
.venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Viewing HTML Reports
|
|
59
|
+
|
|
60
|
+
After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
|
|
61
|
+
|
|
62
|
+
### Coverage Threshold
|
|
63
|
+
|
|
64
|
+
To enforce a minimum coverage percentage:
|
|
65
|
+
```bash
|
|
66
|
+
.venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
This will cause the test suite to fail if coverage drops below 80%.
|
|
70
|
+
|
|
71
|
+
## Integration in the Suite
|
|
72
|
+
|
|
73
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
74
|
+
|
|
75
|
+
### Related Packages
|
|
76
|
+
|
|
77
|
+
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
|
|
78
|
+
|
|
79
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
80
|
+
|
|
81
|
+
## Dependencies
|
|
82
|
+
|
|
83
|
+
- wexample-wex-core: >=20.3.0
|
|
84
|
+
|
|
85
|
+
## Versioning & Compatibility Policy
|
|
86
|
+
|
|
87
|
+
Wexample packages follow **Semantic Versioning** (SemVer):
|
|
88
|
+
|
|
89
|
+
- **MAJOR**: Breaking changes
|
|
90
|
+
- **MINOR**: New features, backward compatible
|
|
91
|
+
- **PATCH**: Bug fixes, backward compatible
|
|
92
|
+
|
|
93
|
+
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
|
|
94
|
+
|
|
95
|
+
## License
|
|
96
|
+
|
|
97
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
98
|
+
|
|
99
|
+
Free to use in both personal and commercial projects.
|
|
100
|
+
|
|
101
|
+
## Integration in the Suite
|
|
102
|
+
|
|
103
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
104
|
+
|
|
105
|
+
### Related Packages
|
|
106
|
+
|
|
107
|
+
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
|
|
108
|
+
|
|
109
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
110
|
+
|
|
111
|
+
# About us
|
|
112
|
+
|
|
113
|
+
[Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
|
|
114
|
+
|
|
115
|
+
This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
|
|
116
|
+
|
|
117
|
+
Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
|
|
118
|
+
|
|
119
|
+
# wex_addon_master
|
|
120
|
+
|
|
121
|
+
Version: 0.0.1
|
|
122
|
+
|
|
123
|
+
Master addon for wex — control tower over projects, apps, servers, DNS, packages
|
|
124
|
+
|
|
125
|
+
## Table of Contents
|
|
126
|
+
|
|
127
|
+
- [Tests](#tests)
|
|
128
|
+
- [Suite Integration](#suite-integration)
|
|
129
|
+
- [Dependencies](#dependencies)
|
|
130
|
+
- [Versioning](#versioning)
|
|
131
|
+
- [License](#license)
|
|
132
|
+
- [Suite Integration](#suite-integration)
|
|
133
|
+
- [Suite Signature](#suite-signature)
|
|
134
|
+
- [Introduction](#introduction)
|
|
135
|
+
- [Roadmap](#roadmap)
|
|
136
|
+
- [Status Compatibility](#status-compatibility)
|
|
137
|
+
- [Useful Links](#useful-links)
|
|
138
|
+
- [Migration Notes](#migration-notes)
|
|
139
|
+
|
|
140
|
+
## Tests
|
|
141
|
+
|
|
142
|
+
This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
|
|
143
|
+
|
|
144
|
+
### Installation
|
|
145
|
+
|
|
146
|
+
First, install the required testing dependencies:
|
|
147
|
+
```bash
|
|
148
|
+
.venv/bin/python -m pip install pytest pytest-cov
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Basic Usage
|
|
152
|
+
|
|
153
|
+
Run all tests with coverage:
|
|
154
|
+
```bash
|
|
155
|
+
.venv/bin/python -m pytest --cov --cov-report=html
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Common Commands
|
|
159
|
+
```bash
|
|
160
|
+
# Run tests with coverage for a specific module
|
|
161
|
+
.venv/bin/python -m pytest --cov=your_module
|
|
162
|
+
|
|
163
|
+
# Show which lines are not covered
|
|
164
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
|
|
165
|
+
|
|
166
|
+
# Generate an HTML coverage report
|
|
167
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=html
|
|
168
|
+
|
|
169
|
+
# Combine terminal and HTML reports
|
|
170
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
|
|
171
|
+
|
|
172
|
+
# Run specific test file with coverage
|
|
173
|
+
.venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Viewing HTML Reports
|
|
177
|
+
|
|
178
|
+
After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
|
|
179
|
+
|
|
180
|
+
### Coverage Threshold
|
|
181
|
+
|
|
182
|
+
To enforce a minimum coverage percentage:
|
|
183
|
+
```bash
|
|
184
|
+
.venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
This will cause the test suite to fail if coverage drops below 80%.
|
|
188
|
+
|
|
189
|
+
## Integration in the Suite
|
|
190
|
+
|
|
191
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
192
|
+
|
|
193
|
+
### Related Packages
|
|
194
|
+
|
|
195
|
+
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
|
|
196
|
+
|
|
197
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
198
|
+
|
|
199
|
+
## Dependencies
|
|
200
|
+
|
|
201
|
+
- wexample-wex-core: >=20.3.0
|
|
202
|
+
|
|
203
|
+
## Versioning & Compatibility Policy
|
|
204
|
+
|
|
205
|
+
Wexample packages follow **Semantic Versioning** (SemVer):
|
|
206
|
+
|
|
207
|
+
- **MAJOR**: Breaking changes
|
|
208
|
+
- **MINOR**: New features, backward compatible
|
|
209
|
+
- **PATCH**: Bug fixes, backward compatible
|
|
210
|
+
|
|
211
|
+
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
|
|
212
|
+
|
|
213
|
+
## License
|
|
214
|
+
|
|
215
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
216
|
+
|
|
217
|
+
Free to use in both personal and commercial projects.
|
|
218
|
+
|
|
219
|
+
## Integration in the Suite
|
|
220
|
+
|
|
221
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
222
|
+
|
|
223
|
+
### Related Packages
|
|
224
|
+
|
|
225
|
+
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
|
|
226
|
+
|
|
227
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
228
|
+
|
|
229
|
+
# About us
|
|
230
|
+
|
|
231
|
+
[Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
|
|
232
|
+
|
|
233
|
+
This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
|
|
234
|
+
|
|
235
|
+
Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
|
|
236
|
+
|
|
237
|
+
A Python toolkit providing wex addon capabilities to act as a control tower over projects: apps, servers, DNS zones, Ansible configs, and package publications.
|
|
238
|
+
|
|
239
|
+
## Known Limitations & Roadmap
|
|
240
|
+
|
|
241
|
+
Current limitations and planned features are tracked in the GitHub issues.
|
|
242
|
+
|
|
243
|
+
See the [project roadmap](https://github.com/wexample/python-wex_addon_master/issues) for upcoming features and improvements.
|
|
244
|
+
|
|
245
|
+
## Status & Compatibility
|
|
246
|
+
|
|
247
|
+
**Maturity**: Production-ready
|
|
248
|
+
|
|
249
|
+
**Python Support**: >=3.10
|
|
250
|
+
|
|
251
|
+
**OS Support**: Linux, macOS, Windows
|
|
252
|
+
|
|
253
|
+
**Status**: Actively maintained
|
|
254
|
+
|
|
255
|
+
## Useful Links
|
|
256
|
+
|
|
257
|
+
- **Homepage**: https://github.com/wexample/python-wex-addon-master
|
|
258
|
+
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
259
|
+
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-master/issues
|
|
260
|
+
- **Discussions**: https://github.com/wexample/python-wex-addon-master/discussions
|
|
261
|
+
- **PyPI**: [pypi.org/project/wex_addon_master](https://pypi.org/project/wex_addon_master/)
|
|
262
|
+
|
|
263
|
+
## Migration Notes
|
|
264
|
+
|
|
265
|
+
When upgrading between major versions, refer to the migration guides in the documentation.
|
|
266
|
+
|
|
267
|
+
Breaking changes are clearly documented with upgrade paths and examples.
|
|
268
|
+
|
|
269
|
+
## Known Limitations & Roadmap
|
|
270
|
+
|
|
271
|
+
Current limitations and planned features are tracked in the GitHub issues.
|
|
272
|
+
|
|
273
|
+
See the [project roadmap](https://github.com/wexample/python-wex_addon_master/issues) for upcoming features and improvements.
|
|
274
|
+
|
|
275
|
+
## Status & Compatibility
|
|
276
|
+
|
|
277
|
+
**Maturity**: Production-ready
|
|
278
|
+
|
|
279
|
+
**Python Support**: >=3.10
|
|
280
|
+
|
|
281
|
+
**OS Support**: Linux, macOS, Windows
|
|
282
|
+
|
|
283
|
+
**Status**: Actively maintained
|
|
284
|
+
|
|
285
|
+
## Useful Links
|
|
286
|
+
|
|
287
|
+
- **Homepage**: https://github.com/wexample/python-wex-addon-master
|
|
288
|
+
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
289
|
+
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-master/issues
|
|
290
|
+
- **Discussions**: https://github.com/wexample/python-wex-addon-master/discussions
|
|
291
|
+
- **PyPI**: [pypi.org/project/wex_addon_master](https://pypi.org/project/wex_addon_master/)
|
|
292
|
+
|
|
293
|
+
## Migration Notes
|
|
294
|
+
|
|
295
|
+
When upgrading between major versions, refer to the migration guides in the documentation.
|
|
296
|
+
|
|
297
|
+
Breaking changes are clearly documented with upgrade paths and examples.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
"pdm-backend",
|
|
4
|
+
]
|
|
5
|
+
build-backend = "pdm.backend"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "wexample-wex-addon-master"
|
|
9
|
+
version = "6.0.29"
|
|
10
|
+
description = "Master addon for wex — control tower over projects, apps, servers, DNS, packages"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "weeger", email = "contact@wexample.com" },
|
|
13
|
+
]
|
|
14
|
+
requires-python = ">=3.10"
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
18
|
+
"Operating System :: OS Independent",
|
|
19
|
+
]
|
|
20
|
+
dependencies = [
|
|
21
|
+
"wexample-wex-core>=20.3.0",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.readme]
|
|
25
|
+
file = "README.md"
|
|
26
|
+
content-type = "text/markdown"
|
|
27
|
+
|
|
28
|
+
[project.license]
|
|
29
|
+
text = "MIT"
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
dev = [
|
|
33
|
+
"pytest",
|
|
34
|
+
"pytest-cov",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[tool.setuptools.packages.find]
|
|
38
|
+
include = [
|
|
39
|
+
"*",
|
|
40
|
+
]
|
|
41
|
+
exclude = [
|
|
42
|
+
"wexample_wex_addon_master.testing*",
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
[tool.pdm]
|
|
46
|
+
distribution = true
|
|
47
|
+
|
|
48
|
+
[tool.pdm.build]
|
|
49
|
+
package-dir = "src"
|
|
50
|
+
packages = [
|
|
51
|
+
{ include = "wexample_wex_addon_master", from = "src" },
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
[tool.pytest.ini_options]
|
|
55
|
+
testpaths = [
|
|
56
|
+
"tests",
|
|
57
|
+
]
|
|
58
|
+
pythonpath = [
|
|
59
|
+
"src",
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[tool.coverage.run]
|
|
63
|
+
source = [
|
|
64
|
+
"wexample_wex_addon_master",
|
|
65
|
+
]
|
|
66
|
+
omit = [
|
|
67
|
+
"*/tests/*",
|
|
68
|
+
"*/.venv/*",
|
|
69
|
+
"*/venv/*",
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
[tool.coverage.report]
|
|
73
|
+
exclude_lines = [
|
|
74
|
+
"pragma: no cover",
|
|
75
|
+
"def __repr__",
|
|
76
|
+
"raise AssertionError",
|
|
77
|
+
"raise NotImplementedError",
|
|
78
|
+
"if __name__ == .__main__.:",
|
|
79
|
+
"if TYPE_CHECKING:",
|
|
80
|
+
"@abstractmethod",
|
|
81
|
+
]
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from wexample_helpers.decorator.base_class import base_class
|
|
6
|
+
from wexample_wex_core.common.abstract_addon_manager import AbstractAddonManager
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@base_class
|
|
10
|
+
class MasterAddonManager(AbstractAddonManager):
|
|
11
|
+
@classmethod
|
|
12
|
+
def get_package_module(cls) -> Any:
|
|
13
|
+
import wexample_wex_addon_master
|
|
14
|
+
|
|
15
|
+
return wexample_wex_addon_master
|
|
File without changes
|