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.
@@ -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](https://img.shields.io/pypi/v/openapi-python-generator.svg)][pypi_]
30
+ [![Status](https://img.shields.io/pypi/status/openapi-python-generator.svg)][status]
31
+ [![Python Version](https://img.shields.io/pypi/pyversions/openapi-python-generator)][python version]
32
+ [![License](https://img.shields.io/pypi/l/openapi-python-generator)][license]
33
+
34
+ [![](https://img.shields.io/static/v1?label=documentation&message=enabled&color=<COLOR>)][documentation]
35
+ [![Tests](https://github.com/auth-broker/openapi-python-generator/workflows/Tests/badge.svg)][tests]
36
+ [![Codecov](https://codecov.io/gh/auth-broker/openapi-python-generator/branch/main/graph/badge.svg)][codecov]
37
+
38
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
39
+ [![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][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
+ ![](logo.png)
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,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ openapi-python-generator = openapi_python_generator.__main__:main
@@ -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.