wexample-api 6.1.1__tar.gz → 6.1.4__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 (28) hide show
  1. {wexample_api-6.1.1 → wexample_api-6.1.4}/PKG-INFO +155 -3
  2. {wexample_api-6.1.1 → wexample_api-6.1.4}/README.md +152 -0
  3. {wexample_api-6.1.1 → wexample_api-6.1.4}/pyproject.toml +3 -3
  4. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/__init__.py +0 -0
  5. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/__pycache__/__init__.py +0 -0
  6. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/common/__init__.py +0 -0
  7. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/common/__pycache__/__init__.py +0 -0
  8. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/common/abstract_gateway.py +0 -0
  9. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/common/http_request_payload.py +0 -0
  10. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/const/__init__.py +0 -0
  11. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/const/__pycache__/__init__.py +0 -0
  12. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/const/http.py +0 -0
  13. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/demo/__init__.py +0 -0
  14. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/demo/demo_simple_gateway.py +0 -0
  15. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/enums/__init__.py +0 -0
  16. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/enums/__pycache__/__init__.py +0 -0
  17. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/enums/http.py +0 -0
  18. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/errors/__init__.py +0 -0
  19. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/errors/gateway_authentication_error.py +0 -0
  20. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/errors/gateway_connexion_error.py +0 -0
  21. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/middleware/__init__.py +0 -0
  22. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/models/__init__.py +0 -0
  23. {wexample_api-6.1.1 → wexample_api-6.1.4}/src/wexample_api/py.typed +0 -0
  24. {wexample_api-6.1.1 → wexample_api-6.1.4}/tests/common/__init__.py +0 -0
  25. {wexample_api-6.1.1 → wexample_api-6.1.4}/tests/common/test_http_request_payload.py +0 -0
  26. {wexample_api-6.1.1 → wexample_api-6.1.4}/tests/demo/__init__.py +0 -0
  27. {wexample_api-6.1.1 → wexample_api-6.1.4}/tests/demo/test_demo_simple_gateway.py +0 -0
  28. {wexample_api-6.1.1 → wexample_api-6.1.4}/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.1
3
+ Version: 6.1.4
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>=8.0.0
16
- Requires-Dist: wexample-prompt>=6.1.0
15
+ Requires-Dist: wexample-helpers>=13.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,6 +21,128 @@ Description-Content-Type: text/markdown
21
21
 
22
22
  # api
23
23
 
24
+ Version: 6.1.4
25
+
26
+ Some python basic helpers for apis.
27
+
28
+ ## Table of Contents
29
+
30
+ - [Tests](#tests)
31
+ - [Suite Integration](#suite-integration)
32
+ - [Dependencies](#dependencies)
33
+ - [Versioning](#versioning)
34
+ - [License](#license)
35
+ - [Suite Integration](#suite-integration)
36
+ - [Suite Signature](#suite-signature)
37
+ - [Introduction](#introduction)
38
+ - [Roadmap](#roadmap)
39
+ - [Status Compatibility](#status-compatibility)
40
+ - [Useful Links](#useful-links)
41
+ - [Migration Notes](#migration-notes)
42
+
43
+ ## Tests
44
+
45
+ This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
46
+
47
+ ### Installation
48
+
49
+ First, install the required testing dependencies:
50
+ ```bash
51
+ .venv/bin/python -m pip install pytest pytest-cov
52
+ ```
53
+
54
+ ### Basic Usage
55
+
56
+ Run all tests with coverage:
57
+ ```bash
58
+ .venv/bin/python -m pytest --cov --cov-report=html
59
+ ```
60
+
61
+ ### Common Commands
62
+ ```bash
63
+ # Run tests with coverage for a specific module
64
+ .venv/bin/python -m pytest --cov=your_module
65
+
66
+ # Show which lines are not covered
67
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
68
+
69
+ # Generate an HTML coverage report
70
+ .venv/bin/python -m pytest --cov=your_module --cov-report=html
71
+
72
+ # Combine terminal and HTML reports
73
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
74
+
75
+ # Run specific test file with coverage
76
+ .venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
77
+ ```
78
+
79
+ ### Viewing HTML Reports
80
+
81
+ After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
82
+
83
+ ### Coverage Threshold
84
+
85
+ To enforce a minimum coverage percentage:
86
+ ```bash
87
+ .venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
88
+ ```
89
+
90
+ This will cause the test suite to fail if coverage drops below 80%.
91
+
92
+ ## Integration in the Suite
93
+
94
+ 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.
95
+
96
+ ### Related Packages
97
+
98
+ 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.
99
+
100
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
101
+
102
+ ## Dependencies
103
+
104
+ - attrs: >=23.1.0
105
+ - cattrs: >=23.1.0
106
+ - requests:
107
+ - wexample-helpers: >=13.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
+
24
146
  Version: 6.1.1
25
147
 
26
148
  Some python basic helpers for apis.
@@ -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.
@@ -1,5 +1,127 @@
1
1
  # api
2
2
 
3
+ Version: 6.1.4
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: >=13.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
+
3
125
  Version: 6.1.1
4
126
 
5
127
  Some python basic helpers for apis.
@@ -151,3 +273,33 @@ See the [project roadmap](https://github.com/wexample/python-api/issues) for upc
151
273
  When upgrading between major versions, refer to the migration guides in the documentation.
152
274
 
153
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.1"
9
+ version = "6.1.4"
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>=8.0.0",
25
- "wexample-prompt>=6.1.0",
24
+ "wexample-helpers>=13.0.0",
25
+ "wexample-prompt>=9.0.0",
26
26
  ]
27
27
 
28
28
  [project.readme]