ab-openapi-python-generator 2.1.3__py3-none-any.whl
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.
- ab_openapi_python_generator/__init__.py +13 -0
- ab_openapi_python_generator-2.1.3.dist-info/METADATA +125 -0
- ab_openapi_python_generator-2.1.3.dist-info/RECORD +6 -0
- ab_openapi_python_generator-2.1.3.dist-info/WHEEL +4 -0
- ab_openapi_python_generator-2.1.3.dist-info/entry_points.txt +2 -0
- ab_openapi_python_generator-2.1.3.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Alias package to preserve imports when distribution renamed.
|
|
2
|
+
|
|
3
|
+
This package re-exports the real package located at
|
|
4
|
+
`openapi_python_generator` so existing imports like
|
|
5
|
+
`import ab_openapi_python_generator` continue to work.
|
|
6
|
+
"""
|
|
7
|
+
from openapi_python_generator import * # noqa: F401,F403
|
|
8
|
+
|
|
9
|
+
# Preserve __all__ if present on the real package
|
|
10
|
+
try:
|
|
11
|
+
__all__ = getattr(__import__("openapi_python_generator"), "__all__")
|
|
12
|
+
except Exception:
|
|
13
|
+
__all__ = []
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ab-openapi-python-generator
|
|
3
|
+
Version: 2.1.3
|
|
4
|
+
Summary: Openapi Python Generator
|
|
5
|
+
Project-URL: Homepage, https://github.com/auth-broker/openapi-python-generator
|
|
6
|
+
Project-URL: Repository, https://github.com/auth-broker/openapi-python-generator
|
|
7
|
+
Project-URL: Documentation, https://openapi-python-generator.readthedocs.io
|
|
8
|
+
Project-URL: Changelog, https://github.com/auth-broker/openapi-python-generator/releases
|
|
9
|
+
Author-email: Marco Müllner <muellnermarco@gmail.com>, Matt Coulter <mattcoul7@gmail.com>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: Generator,OpenAPI,Python,async
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Requires-Python: <4,>=3.9
|
|
15
|
+
Requires-Dist: black>=21.10b0
|
|
16
|
+
Requires-Dist: click<9,>=8.1.3
|
|
17
|
+
Requires-Dist: httpx[all]<0.29,>=0.28.0
|
|
18
|
+
Requires-Dist: importlib-metadata<9,>=8.7.0
|
|
19
|
+
Requires-Dist: isort>=5.10.1
|
|
20
|
+
Requires-Dist: jinja2<4,>=3.1.2
|
|
21
|
+
Requires-Dist: openapi-pydantic<0.6,>=0.5.1
|
|
22
|
+
Requires-Dist: orjson<4,>=3.9.15
|
|
23
|
+
Requires-Dist: pydantic<3,>=2.10.2
|
|
24
|
+
Requires-Dist: pyyaml<7,>=6.0.2
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
# Openapi Python Generator
|
|
28
|
+
|
|
29
|
+
[][pypi_]
|
|
30
|
+
[][status]
|
|
31
|
+
[][python version]
|
|
32
|
+
[][license]
|
|
33
|
+
|
|
34
|
+
[][documentation]
|
|
35
|
+
[][tests]
|
|
36
|
+
[][codecov]
|
|
37
|
+
|
|
38
|
+
[][pre-commit]
|
|
39
|
+
[][black]
|
|
40
|
+
|
|
41
|
+
[pypi_]: https://pypi.org/project/openapi-python-generator/
|
|
42
|
+
[status]: https://pypi.org/project/openapi-python-generator/
|
|
43
|
+
[python version]: https://pypi.org/project/openapi-python-generator
|
|
44
|
+
[documentation]: https://marcomuellner.github.io/openapi-python-generator/
|
|
45
|
+
[tests]: https://github.com/MarcoMuellner/openapi-python-generator/actions?workflow=Tests
|
|
46
|
+
[codecov]: https://app.codecov.io/gh/MarcoMuellner/openapi-python-generator
|
|
47
|
+
[pre-commit]: https://github.com/pre-commit/pre-commit
|
|
48
|
+
[black]: https://github.com/psf/black
|
|
49
|
+
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
__Documentation:__ [here][documentation]
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Features
|
|
58
|
+
|
|
59
|
+
- __Ease of use__. Provide input, output and the library, and the generator will do the rest.
|
|
60
|
+
- __Type safety and type hinting.__ __OpenAPI python generator__ makes heavy use of pydantic models to provide type-safe data structures.
|
|
61
|
+
- __Support for multiple rest frameworks.__ __OpenAPI python generator__ currently supports the following:
|
|
62
|
+
- [httpx](https://pypi.org/project/httpx/)
|
|
63
|
+
- [requests](https://pypi.org/project/requests/)
|
|
64
|
+
- [aiohttp](https://pypi.org/project/aiohttp/)
|
|
65
|
+
- __Async and sync code generation support__, depending on the framework. It will automatically create both for frameworks that support both.
|
|
66
|
+
- __Easily extendable using Jinja2 templates__. The code is designed to be easily extendable and should support even more languages and frameworks in the future.
|
|
67
|
+
- __Fully tested__. Every generated code is automatically tested against the OpenAPI spec and we have 100% coverage.
|
|
68
|
+
- __Usage as CLI or as library__.
|
|
69
|
+
|
|
70
|
+
## Requirements
|
|
71
|
+
|
|
72
|
+
- Python 3.7+
|
|
73
|
+
|
|
74
|
+
## Installation
|
|
75
|
+
|
|
76
|
+
You can install _Openapi Python Generator_ via [pip] from [PyPI]:
|
|
77
|
+
|
|
78
|
+
```console
|
|
79
|
+
$ pip install ab-openapi-python-generator
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Usage
|
|
83
|
+
|
|
84
|
+
Please see the [Quick start page] for details.
|
|
85
|
+
|
|
86
|
+
## Roadmap
|
|
87
|
+
|
|
88
|
+
- Support for all commonly used http libraries in the python ecosystem (~~requests~~, urllib, ...)
|
|
89
|
+
- Support for multiple languages
|
|
90
|
+
- Support for multiple authentication schemes
|
|
91
|
+
- Support custom themes
|
|
92
|
+
|
|
93
|
+
## Contributing
|
|
94
|
+
|
|
95
|
+
Contributions are very welcome.
|
|
96
|
+
To learn more, see the [Contributor Guide].
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
Distributed under the terms of the [MIT license][license],
|
|
101
|
+
_Openapi Python Generator_ is free and open source software.
|
|
102
|
+
|
|
103
|
+
## Issues
|
|
104
|
+
|
|
105
|
+
If you encounter any problems,
|
|
106
|
+
please [file an issue] along with a detailed description.
|
|
107
|
+
|
|
108
|
+
## Credits
|
|
109
|
+
|
|
110
|
+
Special thanks to the peeps from [openapi-schema-pydantic](https://github.com/kuimono/openapi-schema-pydantic),
|
|
111
|
+
which already did a lot of the legwork by providing a pydantic schema for the OpenAPI 3.0.0+ specification.
|
|
112
|
+
|
|
113
|
+
This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.
|
|
114
|
+
|
|
115
|
+
[@cjolowicz]: https://github.com/cjolowicz
|
|
116
|
+
[pypi]: https://pypi.org/
|
|
117
|
+
[hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
|
|
118
|
+
[file an issue]: https://github.com/MarcoMuellner/openapi-python-generator/issues
|
|
119
|
+
[pip]: https://pip.pypa.io/
|
|
120
|
+
|
|
121
|
+
<!-- github-only -->
|
|
122
|
+
|
|
123
|
+
[license]: https://github.com/MarcoMuellner/openapi-python-generator/blob/main/LICENSE
|
|
124
|
+
[contributor guide]: https://github.com/MarcoMuellner/openapi-python-generator/blob/main/CONTRIBUTING.md
|
|
125
|
+
[Quick start page]: https://marcomuellner.github.io/openapi-python-generator/quick_start/
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
ab_openapi_python_generator/__init__.py,sha256=E3Rg8oVmW0_-8KPCxfvgdo8n6w205qFYfUyrgnjilVc,450
|
|
2
|
+
ab_openapi_python_generator-2.1.3.dist-info/METADATA,sha256=KI7vHJPpoc4cuOhtNxdAtUsgD6WSNTX35ObPTFCFot8,5186
|
|
3
|
+
ab_openapi_python_generator-2.1.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
4
|
+
ab_openapi_python_generator-2.1.3.dist-info/entry_points.txt,sha256=PEj7XvWXySYNGFON0vd_a7nOCGF_QJ2RofwFDeS1ve4,84
|
|
5
|
+
ab_openapi_python_generator-2.1.3.dist-info/licenses/LICENSE,sha256=0myanGwJ2vUOZN12aN95o0My6XEysnnVlbKikYw3pHg,1070
|
|
6
|
+
ab_openapi_python_generator-2.1.3.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright © 2022 Marco Müllner
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|