wexample-api 6.1.0__tar.gz → 6.1.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 (29) hide show
  1. {wexample_api-6.1.0 → wexample_api-6.1.3}/PKG-INFO +157 -5
  2. wexample_api-6.1.3/README.md +305 -0
  3. {wexample_api-6.1.0 → wexample_api-6.1.3}/pyproject.toml +3 -3
  4. wexample_api-6.1.0/README.md +0 -153
  5. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/__init__.py +0 -0
  6. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/__pycache__/__init__.py +0 -0
  7. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/common/__init__.py +0 -0
  8. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/common/__pycache__/__init__.py +0 -0
  9. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/common/abstract_gateway.py +0 -0
  10. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/common/http_request_payload.py +0 -0
  11. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/const/__init__.py +0 -0
  12. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/const/__pycache__/__init__.py +0 -0
  13. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/const/http.py +0 -0
  14. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/demo/__init__.py +0 -0
  15. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/demo/demo_simple_gateway.py +0 -0
  16. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/enums/__init__.py +0 -0
  17. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/enums/__pycache__/__init__.py +0 -0
  18. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/enums/http.py +0 -0
  19. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/errors/__init__.py +0 -0
  20. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/errors/gateway_authentication_error.py +0 -0
  21. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/errors/gateway_connexion_error.py +0 -0
  22. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/middleware/__init__.py +0 -0
  23. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/models/__init__.py +0 -0
  24. {wexample_api-6.1.0 → wexample_api-6.1.3}/src/wexample_api/py.typed +0 -0
  25. {wexample_api-6.1.0 → wexample_api-6.1.3}/tests/common/__init__.py +0 -0
  26. {wexample_api-6.1.0 → wexample_api-6.1.3}/tests/common/test_http_request_payload.py +0 -0
  27. {wexample_api-6.1.0 → wexample_api-6.1.3}/tests/demo/__init__.py +0 -0
  28. {wexample_api-6.1.0 → wexample_api-6.1.3}/tests/demo/test_demo_simple_gateway.py +0 -0
  29. {wexample_api-6.1.0 → wexample_api-6.1.3}/tests/new_architecture/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wexample-api
3
- Version: 6.1.0
3
+ Version: 6.1.3
4
4
  Summary: Some python basic helpers for apis.
5
5
  Author-Email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -12,8 +12,8 @@ Requires-Python: >=3.10
12
12
  Requires-Dist: attrs>=23.1.0
13
13
  Requires-Dist: cattrs>=23.1.0
14
14
  Requires-Dist: requests
15
- Requires-Dist: wexample-helpers>=6.12.0
16
- Requires-Dist: wexample-prompt>=6.1.0
15
+ Requires-Dist: wexample-helpers>=12.0.0
16
+ Requires-Dist: wexample-prompt>=9.0.0
17
17
  Provides-Extra: dev
18
18
  Requires-Dist: pytest; extra == "dev"
19
19
  Requires-Dist: pytest-cov; extra == "dev"
@@ -21,7 +21,7 @@ Description-Content-Type: text/markdown
21
21
 
22
22
  # api
23
23
 
24
- Version: 6.1.0
24
+ Version: 6.1.3
25
25
 
26
26
  Some python basic helpers for apis.
27
27
 
@@ -104,7 +104,129 @@ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the comp
104
104
  - attrs: >=23.1.0
105
105
  - cattrs: >=23.1.0
106
106
  - requests:
107
- - wexample-helpers: >=6.12.0
107
+ - wexample-helpers: >=12.0.0
108
+ - wexample-prompt: >=9.0.0
109
+
110
+ ## Versioning & Compatibility Policy
111
+
112
+ Wexample packages follow **Semantic Versioning** (SemVer):
113
+
114
+ - **MAJOR**: Breaking changes
115
+ - **MINOR**: New features, backward compatible
116
+ - **PATCH**: Bug fixes, backward compatible
117
+
118
+ We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
119
+
120
+ ## License
121
+
122
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
123
+
124
+ Free to use in both personal and commercial projects.
125
+
126
+ ## Integration in the Suite
127
+
128
+ 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.
129
+
130
+ ### Related Packages
131
+
132
+ 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.
133
+
134
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
135
+
136
+ # About us
137
+
138
+ [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.
139
+
140
+ 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.
141
+
142
+ 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.
143
+
144
+ # api
145
+
146
+ Version: 6.1.1
147
+
148
+ Some python basic helpers for apis.
149
+
150
+ ## Table of Contents
151
+
152
+ - [Tests](#tests)
153
+ - [Suite Integration](#suite-integration)
154
+ - [Dependencies](#dependencies)
155
+ - [Versioning](#versioning)
156
+ - [License](#license)
157
+ - [Suite Integration](#suite-integration)
158
+ - [Suite Signature](#suite-signature)
159
+ - [Introduction](#introduction)
160
+ - [Roadmap](#roadmap)
161
+ - [Status Compatibility](#status-compatibility)
162
+ - [Useful Links](#useful-links)
163
+ - [Migration Notes](#migration-notes)
164
+
165
+ ## Tests
166
+
167
+ This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
168
+
169
+ ### Installation
170
+
171
+ First, install the required testing dependencies:
172
+ ```bash
173
+ .venv/bin/python -m pip install pytest pytest-cov
174
+ ```
175
+
176
+ ### Basic Usage
177
+
178
+ Run all tests with coverage:
179
+ ```bash
180
+ .venv/bin/python -m pytest --cov --cov-report=html
181
+ ```
182
+
183
+ ### Common Commands
184
+ ```bash
185
+ # Run tests with coverage for a specific module
186
+ .venv/bin/python -m pytest --cov=your_module
187
+
188
+ # Show which lines are not covered
189
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
190
+
191
+ # Generate an HTML coverage report
192
+ .venv/bin/python -m pytest --cov=your_module --cov-report=html
193
+
194
+ # Combine terminal and HTML reports
195
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
196
+
197
+ # Run specific test file with coverage
198
+ .venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
199
+ ```
200
+
201
+ ### Viewing HTML Reports
202
+
203
+ After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
204
+
205
+ ### Coverage Threshold
206
+
207
+ To enforce a minimum coverage percentage:
208
+ ```bash
209
+ .venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
210
+ ```
211
+
212
+ This will cause the test suite to fail if coverage drops below 80%.
213
+
214
+ ## Integration in the Suite
215
+
216
+ 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.
217
+
218
+ ### Related Packages
219
+
220
+ 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.
221
+
222
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
223
+
224
+ ## Dependencies
225
+
226
+ - attrs: >=23.1.0
227
+ - cattrs: >=23.1.0
228
+ - requests:
229
+ - wexample-helpers: >=8.0.0
108
230
  - wexample-prompt: >=6.1.0
109
231
 
110
232
  ## Versioning & Compatibility Policy
@@ -172,3 +294,33 @@ See the [project roadmap](https://github.com/wexample/python-api/issues) for upc
172
294
  When upgrading between major versions, refer to the migration guides in the documentation.
173
295
 
174
296
  Breaking changes are clearly documented with upgrade paths and examples.
297
+
298
+ ## Known Limitations & Roadmap
299
+
300
+ Current limitations and planned features are tracked in the GitHub issues.
301
+
302
+ See the [project roadmap](https://github.com/wexample/python-api/issues) for upcoming features and improvements.
303
+
304
+ ## Status & Compatibility
305
+
306
+ **Maturity**: Production-ready
307
+
308
+ **Python Support**: >=3.10
309
+
310
+ **OS Support**: Linux, macOS, Windows
311
+
312
+ **Status**: Actively maintained
313
+
314
+ ## Useful Links
315
+
316
+ - **Homepage**: https://github.com/wexample/python-api
317
+ - **Documentation**: [docs.wexample.com](https://docs.wexample.com)
318
+ - **Issue Tracker**: https://github.com/wexample/python-api/issues
319
+ - **Discussions**: https://github.com/wexample/python-api/discussions
320
+ - **PyPI**: [pypi.org/project/api](https://pypi.org/project/api/)
321
+
322
+ ## Migration Notes
323
+
324
+ When upgrading between major versions, refer to the migration guides in the documentation.
325
+
326
+ Breaking changes are clearly documented with upgrade paths and examples.
@@ -0,0 +1,305 @@
1
+ # api
2
+
3
+ Version: 6.1.3
4
+
5
+ Some python basic helpers for apis.
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
+ - attrs: >=23.1.0
84
+ - cattrs: >=23.1.0
85
+ - requests:
86
+ - wexample-helpers: >=12.0.0
87
+ - wexample-prompt: >=9.0.0
88
+
89
+ ## Versioning & Compatibility Policy
90
+
91
+ Wexample packages follow **Semantic Versioning** (SemVer):
92
+
93
+ - **MAJOR**: Breaking changes
94
+ - **MINOR**: New features, backward compatible
95
+ - **PATCH**: Bug fixes, backward compatible
96
+
97
+ We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
98
+
99
+ ## License
100
+
101
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
102
+
103
+ Free to use in both personal and commercial projects.
104
+
105
+ ## Integration in the Suite
106
+
107
+ 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.
108
+
109
+ ### Related Packages
110
+
111
+ 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.
112
+
113
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
114
+
115
+ # About us
116
+
117
+ [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.
118
+
119
+ 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.
120
+
121
+ 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.
122
+
123
+ # api
124
+
125
+ Version: 6.1.1
126
+
127
+ Some python basic helpers for apis.
128
+
129
+ ## Table of Contents
130
+
131
+ - [Tests](#tests)
132
+ - [Suite Integration](#suite-integration)
133
+ - [Dependencies](#dependencies)
134
+ - [Versioning](#versioning)
135
+ - [License](#license)
136
+ - [Suite Integration](#suite-integration)
137
+ - [Suite Signature](#suite-signature)
138
+ - [Introduction](#introduction)
139
+ - [Roadmap](#roadmap)
140
+ - [Status Compatibility](#status-compatibility)
141
+ - [Useful Links](#useful-links)
142
+ - [Migration Notes](#migration-notes)
143
+
144
+ ## Tests
145
+
146
+ This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
147
+
148
+ ### Installation
149
+
150
+ First, install the required testing dependencies:
151
+ ```bash
152
+ .venv/bin/python -m pip install pytest pytest-cov
153
+ ```
154
+
155
+ ### Basic Usage
156
+
157
+ Run all tests with coverage:
158
+ ```bash
159
+ .venv/bin/python -m pytest --cov --cov-report=html
160
+ ```
161
+
162
+ ### Common Commands
163
+ ```bash
164
+ # Run tests with coverage for a specific module
165
+ .venv/bin/python -m pytest --cov=your_module
166
+
167
+ # Show which lines are not covered
168
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
169
+
170
+ # Generate an HTML coverage report
171
+ .venv/bin/python -m pytest --cov=your_module --cov-report=html
172
+
173
+ # Combine terminal and HTML reports
174
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
175
+
176
+ # Run specific test file with coverage
177
+ .venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
178
+ ```
179
+
180
+ ### Viewing HTML Reports
181
+
182
+ After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
183
+
184
+ ### Coverage Threshold
185
+
186
+ To enforce a minimum coverage percentage:
187
+ ```bash
188
+ .venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
189
+ ```
190
+
191
+ This will cause the test suite to fail if coverage drops below 80%.
192
+
193
+ ## Integration in the Suite
194
+
195
+ 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.
196
+
197
+ ### Related Packages
198
+
199
+ 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.
200
+
201
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
202
+
203
+ ## Dependencies
204
+
205
+ - attrs: >=23.1.0
206
+ - cattrs: >=23.1.0
207
+ - requests:
208
+ - wexample-helpers: >=8.0.0
209
+ - wexample-prompt: >=6.1.0
210
+
211
+ ## Versioning & Compatibility Policy
212
+
213
+ Wexample packages follow **Semantic Versioning** (SemVer):
214
+
215
+ - **MAJOR**: Breaking changes
216
+ - **MINOR**: New features, backward compatible
217
+ - **PATCH**: Bug fixes, backward compatible
218
+
219
+ We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
220
+
221
+ ## License
222
+
223
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
224
+
225
+ Free to use in both personal and commercial projects.
226
+
227
+ ## Integration in the Suite
228
+
229
+ 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.
230
+
231
+ ### Related Packages
232
+
233
+ 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.
234
+
235
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
236
+
237
+ # About us
238
+
239
+ [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.
240
+
241
+ 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.
242
+
243
+ 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.
244
+
245
+ A Python toolkit for building and consuming structured APIs.
246
+
247
+ ## Known Limitations & Roadmap
248
+
249
+ Current limitations and planned features are tracked in the GitHub issues.
250
+
251
+ See the [project roadmap](https://github.com/wexample/python-api/issues) for upcoming features and improvements.
252
+
253
+ ## Status & Compatibility
254
+
255
+ **Maturity**: Production-ready
256
+
257
+ **Python Support**: >=3.10
258
+
259
+ **OS Support**: Linux, macOS, Windows
260
+
261
+ **Status**: Actively maintained
262
+
263
+ ## Useful Links
264
+
265
+ - **Homepage**: https://github.com/wexample/python-api
266
+ - **Documentation**: [docs.wexample.com](https://docs.wexample.com)
267
+ - **Issue Tracker**: https://github.com/wexample/python-api/issues
268
+ - **Discussions**: https://github.com/wexample/python-api/discussions
269
+ - **PyPI**: [pypi.org/project/api](https://pypi.org/project/api/)
270
+
271
+ ## Migration Notes
272
+
273
+ When upgrading between major versions, refer to the migration guides in the documentation.
274
+
275
+ Breaking changes are clearly documented with upgrade paths and examples.
276
+
277
+ ## Known Limitations & Roadmap
278
+
279
+ Current limitations and planned features are tracked in the GitHub issues.
280
+
281
+ See the [project roadmap](https://github.com/wexample/python-api/issues) for upcoming features and improvements.
282
+
283
+ ## Status & Compatibility
284
+
285
+ **Maturity**: Production-ready
286
+
287
+ **Python Support**: >=3.10
288
+
289
+ **OS Support**: Linux, macOS, Windows
290
+
291
+ **Status**: Actively maintained
292
+
293
+ ## Useful Links
294
+
295
+ - **Homepage**: https://github.com/wexample/python-api
296
+ - **Documentation**: [docs.wexample.com](https://docs.wexample.com)
297
+ - **Issue Tracker**: https://github.com/wexample/python-api/issues
298
+ - **Discussions**: https://github.com/wexample/python-api/discussions
299
+ - **PyPI**: [pypi.org/project/api](https://pypi.org/project/api/)
300
+
301
+ ## Migration Notes
302
+
303
+ When upgrading between major versions, refer to the migration guides in the documentation.
304
+
305
+ Breaking changes are clearly documented with upgrade paths and examples.
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "wexample-api"
9
- version = "6.1.0"
9
+ version = "6.1.3"
10
10
  description = "Some python basic helpers for apis."
11
11
  authors = [
12
12
  { name = "weeger", email = "contact@wexample.com" },
@@ -21,8 +21,8 @@ dependencies = [
21
21
  "attrs>=23.1.0",
22
22
  "cattrs>=23.1.0",
23
23
  "requests",
24
- "wexample-helpers>=6.12.0",
25
- "wexample-prompt>=6.1.0",
24
+ "wexample-helpers>=12.0.0",
25
+ "wexample-prompt>=9.0.0",
26
26
  ]
27
27
 
28
28
  [project.readme]
@@ -1,153 +0,0 @@
1
- # api
2
-
3
- Version: 6.1.0
4
-
5
- Some python basic helpers for apis.
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
- - attrs: >=23.1.0
84
- - cattrs: >=23.1.0
85
- - requests:
86
- - wexample-helpers: >=6.12.0
87
- - wexample-prompt: >=6.1.0
88
-
89
- ## Versioning & Compatibility Policy
90
-
91
- Wexample packages follow **Semantic Versioning** (SemVer):
92
-
93
- - **MAJOR**: Breaking changes
94
- - **MINOR**: New features, backward compatible
95
- - **PATCH**: Bug fixes, backward compatible
96
-
97
- We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
98
-
99
- ## License
100
-
101
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
102
-
103
- Free to use in both personal and commercial projects.
104
-
105
- ## Integration in the Suite
106
-
107
- 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.
108
-
109
- ### Related Packages
110
-
111
- 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.
112
-
113
- Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
114
-
115
- # About us
116
-
117
- [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.
118
-
119
- 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.
120
-
121
- 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.
122
-
123
- A Python toolkit for building and consuming structured APIs.
124
-
125
- ## Known Limitations & Roadmap
126
-
127
- Current limitations and planned features are tracked in the GitHub issues.
128
-
129
- See the [project roadmap](https://github.com/wexample/python-api/issues) for upcoming features and improvements.
130
-
131
- ## Status & Compatibility
132
-
133
- **Maturity**: Production-ready
134
-
135
- **Python Support**: >=3.10
136
-
137
- **OS Support**: Linux, macOS, Windows
138
-
139
- **Status**: Actively maintained
140
-
141
- ## Useful Links
142
-
143
- - **Homepage**: https://github.com/wexample/python-api
144
- - **Documentation**: [docs.wexample.com](https://docs.wexample.com)
145
- - **Issue Tracker**: https://github.com/wexample/python-api/issues
146
- - **Discussions**: https://github.com/wexample/python-api/discussions
147
- - **PyPI**: [pypi.org/project/api](https://pypi.org/project/api/)
148
-
149
- ## Migration Notes
150
-
151
- When upgrading between major versions, refer to the migration guides in the documentation.
152
-
153
- Breaking changes are clearly documented with upgrade paths and examples.