openapi-generator-cli 4.3.1__tar.gz → 5.0.0__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.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.1
2
+ Name: openapi-generator-cli
3
+ Version: 5.0.0
4
+ Summary: CLI for openapi generator
5
+ Home-page: https://openapi-generator.tech
6
+ License: APACHE 2.0
7
+ Keywords: openapi,generator,cli
8
+ Author: OpenAPI Generator community
9
+ Author-email: team@openapitools.org
10
+ Requires-Python: >=3.9,<4
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: License :: Other/Proprietary License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3 :: Only
21
+ Classifier: Programming Language :: Python :: Implementation :: CPython
22
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
23
+ Provides-Extra: jdk4py
24
+ Requires-Dist: jdk4py (>=21.0.4.1,<22.0.0.0) ; (python_version >= "3.10") and (extra == "jdk4py")
25
+ Project-URL: Documentation, https://github.com/OpenAPITools/openapi-generator#3---usage
26
+ Project-URL: Repository, https://github.com/OpenAPITools/openapi-generator
27
+ Description-Content-Type: text/markdown
28
+
29
+ # OpenAPI Generator in Package Installer for Python (PIP)
30
+
31
+ [![Join the Slack chat room](
32
+ <https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange>
33
+ )](
34
+ <https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g>
35
+ ) [![PyPI version](
36
+ <https://badge.fury.io/py/openapi-generator-cli.svg>
37
+ )](
38
+ <https://badge.fury.io/py/openapi-generator-cli>
39
+ ) [![Code style: black](
40
+ <https://img.shields.io/badge/code%20style-black-000000.svg>
41
+ )](
42
+ <https://github.com/psf/black>
43
+ ) [![Ruff](
44
+ <https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json>
45
+ )](
46
+ <https://github.com/astral-sh/ruff>
47
+ )
48
+
49
+ OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (both 2.0 and 3.0 are supported). Please see [OpenAPITools/openapi-generator]
50
+
51
+ ---
52
+
53
+ This project checks the [maven repository] once a day for a new version and will publish this new version automatically as a python package.
54
+
55
+ ## Installation
56
+
57
+ You must have the `java` binary executable available on your PATH for this to work. (JDK 11 is the minimal version supported. To install OpenJDK, please visit <https://adoptium.net/>)
58
+
59
+ You can install the package either in a virtual environment or globally.
60
+
61
+ ```sh
62
+ # install the latest version of "openapi-generator-cli"
63
+ pip install openapi-generator-cli
64
+
65
+ # install a specific version of "openapi-generator-cli"
66
+ pip install openapi-generator-cli==4.3.1
67
+ ```
68
+
69
+ You can also install with [`jdk4py`] instead of `java` binary. (`python>=3.10` is required)
70
+
71
+ ```sh
72
+ pip install openapi-generator-cli[jdk4py]
73
+ ```
74
+
75
+ After installation `openapi-generator-cli` command will be available in your virtual environment or globally depending on your installation.
76
+
77
+ To check the version, for example. Type the following command
78
+
79
+ ```sh
80
+ # this will print the correct version number
81
+ openapi-generator-cli version
82
+ ```
83
+
84
+ ## Further Documentation
85
+
86
+ Please refer to the [official openapi-generator docs] for more information about the possible arguments and a detailed usage manual of the command line interface.
87
+
88
+ ## Like the package?
89
+
90
+ Please leave a star.
91
+
92
+ ## Have suggestions or feedback?
93
+
94
+ Please raise an issue, happy to hear from you :)
95
+
96
+ [OpenAPITools/openapi-generator]: <https://github.com/OpenAPITools/openapi-generator>
97
+ [maven repository]: <https://mvnrepository.com/artifact/org.openapitools/openapi-generator-cli>
98
+ [`jdk4py`]: <https://github.com/activeviam/jdk4py>
99
+ [official openapi-generator docs]: <https://github.com/OpenAPITools/openapi-generator#3---usage>
100
+
@@ -0,0 +1,71 @@
1
+ # OpenAPI Generator in Package Installer for Python (PIP)
2
+
3
+ [![Join the Slack chat room](
4
+ <https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange>
5
+ )](
6
+ <https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g>
7
+ ) [![PyPI version](
8
+ <https://badge.fury.io/py/openapi-generator-cli.svg>
9
+ )](
10
+ <https://badge.fury.io/py/openapi-generator-cli>
11
+ ) [![Code style: black](
12
+ <https://img.shields.io/badge/code%20style-black-000000.svg>
13
+ )](
14
+ <https://github.com/psf/black>
15
+ ) [![Ruff](
16
+ <https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json>
17
+ )](
18
+ <https://github.com/astral-sh/ruff>
19
+ )
20
+
21
+ OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (both 2.0 and 3.0 are supported). Please see [OpenAPITools/openapi-generator]
22
+
23
+ ---
24
+
25
+ This project checks the [maven repository] once a day for a new version and will publish this new version automatically as a python package.
26
+
27
+ ## Installation
28
+
29
+ You must have the `java` binary executable available on your PATH for this to work. (JDK 11 is the minimal version supported. To install OpenJDK, please visit <https://adoptium.net/>)
30
+
31
+ You can install the package either in a virtual environment or globally.
32
+
33
+ ```sh
34
+ # install the latest version of "openapi-generator-cli"
35
+ pip install openapi-generator-cli
36
+
37
+ # install a specific version of "openapi-generator-cli"
38
+ pip install openapi-generator-cli==4.3.1
39
+ ```
40
+
41
+ You can also install with [`jdk4py`] instead of `java` binary. (`python>=3.10` is required)
42
+
43
+ ```sh
44
+ pip install openapi-generator-cli[jdk4py]
45
+ ```
46
+
47
+ After installation `openapi-generator-cli` command will be available in your virtual environment or globally depending on your installation.
48
+
49
+ To check the version, for example. Type the following command
50
+
51
+ ```sh
52
+ # this will print the correct version number
53
+ openapi-generator-cli version
54
+ ```
55
+
56
+ ## Further Documentation
57
+
58
+ Please refer to the [official openapi-generator docs] for more information about the possible arguments and a detailed usage manual of the command line interface.
59
+
60
+ ## Like the package?
61
+
62
+ Please leave a star.
63
+
64
+ ## Have suggestions or feedback?
65
+
66
+ Please raise an issue, happy to hear from you :)
67
+
68
+ [OpenAPITools/openapi-generator]: <https://github.com/OpenAPITools/openapi-generator>
69
+ [maven repository]: <https://mvnrepository.com/artifact/org.openapitools/openapi-generator-cli>
70
+ [`jdk4py`]: <https://github.com/activeviam/jdk4py>
71
+ [official openapi-generator docs]: <https://github.com/OpenAPITools/openapi-generator#3---usage>
@@ -0,0 +1,66 @@
1
+ """A Python wrapper for the OpenAPI Generator CLI."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import importlib.resources
6
+ import os
7
+ import shutil
8
+ import subprocess
9
+ import sys
10
+ from typing import TYPE_CHECKING
11
+
12
+ if TYPE_CHECKING:
13
+ from pathlib import Path
14
+
15
+
16
+ def run(args: list[str] | None = None) -> subprocess.CompletedProcess[bytes]:
17
+ """Run the OpenAPI Generator CLI with the given arguments.
18
+
19
+ Args:
20
+ args (list[str], optional):
21
+ The list of arguments to pass to the Open
22
+ API Generator CLI. If not provided, the CLI will
23
+ be run without any arguments.
24
+
25
+ Returns:
26
+ subprocess.CompletedProcess[bytes]: The result of running the OpenAPI Generator CLI.
27
+
28
+ """
29
+ java_path: Path | str | None
30
+ try:
31
+ from jdk4py import JAVA
32
+
33
+ java_path = JAVA
34
+ except ImportError:
35
+ java_path = shutil.which("java")
36
+ if not java_path:
37
+ msg = "java runtime is not found in PATH"
38
+ raise RuntimeError(msg)
39
+
40
+ arguments = [java_path]
41
+
42
+ java_opts = os.getenv("JAVA_OPTS")
43
+ if java_opts:
44
+ arguments.append(java_opts)
45
+
46
+ arguments.append("-jar")
47
+
48
+ jar_path = importlib.resources.files("openapi_generator_cli") / "openapi-generator.jar"
49
+ arguments.append(str(jar_path))
50
+
51
+ if args and isinstance(args, list):
52
+ arguments.extend(args)
53
+
54
+ return subprocess.run(arguments, check=False) # noqa: S603
55
+
56
+
57
+ def cli() -> None:
58
+ """Run the OpenAPI Generator CLI with the arguments provided on the command line."""
59
+ args = []
60
+ if len(sys.argv) > 1:
61
+ args = sys.argv[1:]
62
+ run(args)
63
+
64
+
65
+ if __name__ == "__main__":
66
+ cli()
@@ -0,0 +1,94 @@
1
+ # TODO: In Poetry 2.0 move into PEP 621 compatible configuration
2
+
3
+ [build-system]
4
+ build-backend = "poetry.core.masonry.api"
5
+ requires = [
6
+ "poetry-core",
7
+ ]
8
+
9
+ [tool.poetry]
10
+ version = "5.0.0"
11
+ authors = [
12
+ "OpenAPI Generator community <team@openapitools.org>",
13
+ ]
14
+ classifiers = [
15
+ "License :: OSI Approved :: Apache Software License",
16
+ "Programming Language :: Python",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3 :: Only",
19
+ "Programming Language :: Python :: Implementation :: CPython",
20
+ "Programming Language :: Python :: Implementation :: PyPy",
21
+ ]
22
+ description = "CLI for openapi generator"
23
+ keywords = [
24
+ "openapi",
25
+ "generator",
26
+ "cli",
27
+ ]
28
+ name = "openapi-generator-cli"
29
+ packages = [
30
+ { include = "openapi_generator_cli" },
31
+ ]
32
+ include = [ "openapi_generator_cli/*.jar" ]
33
+ license = "APACHE 2.0"
34
+ readme = "README.md"
35
+ homepage = "https://openapi-generator.tech"
36
+ repository = "https://github.com/OpenAPITools/openapi-generator"
37
+ documentation = "https://github.com/OpenAPITools/openapi-generator#3---usage"
38
+
39
+ [tool.poetry.dependencies]
40
+ python = ">=3.9,<4"
41
+ jdk4py = { version = "^21.0.4.1", optional = true, python = ">=3.10" }
42
+
43
+ [tool.poetry.group.dev.dependencies]
44
+ mypy = ">=0.991,<1.14"
45
+ pre-commit = ">=2.20,<5.0"
46
+ taskipy = "^1.10.3"
47
+ pytest = ">=7.2.2,<9.0.0"
48
+ natsort = "^8.4.0"
49
+
50
+ [tool.poetry.extras]
51
+ jdk4py = [ "jdk4py" ]
52
+
53
+ [tool.poetry.scripts]
54
+ openapi-generator-cli = "openapi_generator_cli:cli"
55
+
56
+ [tool.black]
57
+ line-length = 120
58
+ target-version = [
59
+ 'py39',
60
+ ]
61
+
62
+ [tool.ruff]
63
+ line-length = 120
64
+
65
+ lint.select = [
66
+ "ALL",
67
+ ]
68
+ lint.ignore = [
69
+ "D211", # No blank lines allowed before class docstring
70
+ "D213", # Multi-line docstring summary should start at the second line
71
+ ]
72
+ lint.per-file-ignores."publish.py" = [
73
+ "D",
74
+ "S603", # `subprocess` call: check for execution of untrusted input
75
+ "T201", # `print` found
76
+ ]
77
+ lint.per-file-ignores."tests/*" = [
78
+ "D",
79
+ "S101", # Use of `assert` detected
80
+ ]
81
+
82
+ [tool.mypy]
83
+ pretty = true
84
+ python_version = "3.9"
85
+ show_error_codes = true
86
+ strict = true
87
+
88
+ [tool.taskipy.tasks]
89
+ download-latest-jar = "DOWNLOAD_LATEST_ONLY=1 task publish"
90
+ test = "pytest"
91
+ test-unpublished-versions = "DRYRUN=1 task publish"
92
+ lint = "pre-commit run -a"
93
+ publish = "python publish.py"
94
+ profile = "python -m cProfile"
@@ -1,64 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: openapi-generator-cli
3
- Version: 4.3.1
4
- Summary: CLI for openapi generator
5
- Home-page: https://github.com/OpenAPITools/openapi-generator
6
- Author: OpenAPI Generator community
7
- Author-email: team@openapitools.org
8
- License: APACHE 2.0
9
- Description:
10
- # OpenApi Generator PIP Package Generator
11
-
12
- [![Join the Slack chat room](https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange)](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM)
13
- <a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
14
-
15
- OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and
16
- configuration automatically given an OpenAPI Spec (both 2.0 and 3.0 are supported). Please see
17
- [OpenAPITools/openapi-generator](https://github.com/OpenAPITools/openapi-generator)
18
-
19
- ---
20
-
21
- This project checks the [maven repository](https://mvnrepository.com/artifact/org.openapitools/openapi-generator-cli)
22
- once a day for a new version and will publish this new version automatically as a python package.
23
-
24
- ## Installation
25
-
26
- You can install the package either in a virtual environment or globally.
27
-
28
- ```sh
29
- # install the latest version of "openapigenerator"
30
- pip install openapigenerator
31
-
32
- # install a specific version of "openapigenerator"
33
- pip install openapigenerator==4.2.0
34
- ```
35
-
36
- After installation `openapi-generator` command will be available in your virtual environment or globally
37
- depending on your installation
38
-
39
- To check the version, for example. Type the following command
40
-
41
- ```sh
42
- # this will print the correct version number
43
- openapi-generator version
44
- ```
45
-
46
- ## Further Documentation
47
-
48
- Please refer to the [official openapi-generator docs](https://github.com/OpenAPITools/openapi-generator#3---usage) for
49
- more information about the possible arguments and a detailed usage manual of the command line interface.
50
-
51
- ## Like the package?
52
-
53
- Please leave a star.
54
-
55
- ## Have suggestions or feedback?
56
-
57
- Please raise an issue, happy to hear from you :)
58
-
59
- Platform: UNKNOWN
60
- Classifier: License :: OSI Approved :: Apache Software License
61
- Classifier: Programming Language :: Python
62
- Classifier: Programming Language :: Python :: Implementation :: CPython
63
- Classifier: Programming Language :: Python :: Implementation :: PyPy
64
- Description-Content-Type: text/markdown
@@ -1,48 +0,0 @@
1
- # OpenApi Generator PIP Package Generator
2
-
3
- [![Join the Slack chat room](https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange)](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM)
4
- <a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
5
-
6
- OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and
7
- configuration automatically given an OpenAPI Spec (both 2.0 and 3.0 are supported). Please see
8
- [OpenAPITools/openapi-generator](https://github.com/OpenAPITools/openapi-generator)
9
-
10
- ---
11
-
12
- This project checks the [maven repository](https://mvnrepository.com/artifact/org.openapitools/openapi-generator-cli)
13
- once a day for a new version and will publish this new version automatically as a python package.
14
-
15
- ## Installation
16
-
17
- You can install the package either in a virtual environment or globally.
18
-
19
- ```sh
20
- # install the latest version of "openapigenerator"
21
- pip install openapigenerator
22
-
23
- # install a specific version of "openapigenerator"
24
- pip install openapigenerator==4.2.0
25
- ```
26
-
27
- After installation `openapi-generator` command will be available in your virtual environment or globally
28
- depending on your installation
29
-
30
- To check the version, for example. Type the following command
31
-
32
- ```sh
33
- # this will print the correct version number
34
- openapi-generator version
35
- ```
36
-
37
- ## Further Documentation
38
-
39
- Please refer to the [official openapi-generator docs](https://github.com/OpenAPITools/openapi-generator#3---usage) for
40
- more information about the possible arguments and a detailed usage manual of the command line interface.
41
-
42
- ## Like the package?
43
-
44
- Please leave a star.
45
-
46
- ## Have suggestions or feedback?
47
-
48
- Please raise an issue, happy to hear from you :)
@@ -1,24 +0,0 @@
1
- # coding=utf-8
2
- # !/usr/bin/env python
3
- import os
4
- import subprocess
5
- import sys
6
-
7
-
8
- def run():
9
- arguments = ["java"]
10
-
11
- if os.getenv("JAVA_OPTS"):
12
- arguments.append(os.getenv("JAVA_OPTS"))
13
-
14
- arguments.append("-jar")
15
-
16
- jar_path = os.path.join(
17
- os.path.dirname(os.path.realpath(__file__)), "openapi-generator.jar"
18
- )
19
- arguments.append(jar_path)
20
-
21
- if len(sys.argv) > 1:
22
- arguments.extend(sys.argv[1:])
23
-
24
- subprocess.call(" ".join(arguments), shell=True)
@@ -1,64 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: openapi-generator-cli
3
- Version: 4.3.1
4
- Summary: CLI for openapi generator
5
- Home-page: https://github.com/OpenAPITools/openapi-generator
6
- Author: OpenAPI Generator community
7
- Author-email: team@openapitools.org
8
- License: APACHE 2.0
9
- Description:
10
- # OpenApi Generator PIP Package Generator
11
-
12
- [![Join the Slack chat room](https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange)](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM)
13
- <a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
14
-
15
- OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and
16
- configuration automatically given an OpenAPI Spec (both 2.0 and 3.0 are supported). Please see
17
- [OpenAPITools/openapi-generator](https://github.com/OpenAPITools/openapi-generator)
18
-
19
- ---
20
-
21
- This project checks the [maven repository](https://mvnrepository.com/artifact/org.openapitools/openapi-generator-cli)
22
- once a day for a new version and will publish this new version automatically as a python package.
23
-
24
- ## Installation
25
-
26
- You can install the package either in a virtual environment or globally.
27
-
28
- ```sh
29
- # install the latest version of "openapigenerator"
30
- pip install openapigenerator
31
-
32
- # install a specific version of "openapigenerator"
33
- pip install openapigenerator==4.2.0
34
- ```
35
-
36
- After installation `openapi-generator` command will be available in your virtual environment or globally
37
- depending on your installation
38
-
39
- To check the version, for example. Type the following command
40
-
41
- ```sh
42
- # this will print the correct version number
43
- openapi-generator version
44
- ```
45
-
46
- ## Further Documentation
47
-
48
- Please refer to the [official openapi-generator docs](https://github.com/OpenAPITools/openapi-generator#3---usage) for
49
- more information about the possible arguments and a detailed usage manual of the command line interface.
50
-
51
- ## Like the package?
52
-
53
- Please leave a star.
54
-
55
- ## Have suggestions or feedback?
56
-
57
- Please raise an issue, happy to hear from you :)
58
-
59
- Platform: UNKNOWN
60
- Classifier: License :: OSI Approved :: Apache Software License
61
- Classifier: Programming Language :: Python
62
- Classifier: Programming Language :: Python :: Implementation :: CPython
63
- Classifier: Programming Language :: Python :: Implementation :: PyPy
64
- Description-Content-Type: text/markdown
@@ -1,8 +0,0 @@
1
- README.md
2
- setup.py
3
- openapi_generator_cli/__init__.py
4
- openapi_generator_cli.egg-info/PKG-INFO
5
- openapi_generator_cli.egg-info/SOURCES.txt
6
- openapi_generator_cli.egg-info/dependency_links.txt
7
- openapi_generator_cli.egg-info/entry_points.txt
8
- openapi_generator_cli.egg-info/top_level.txt
@@ -1,3 +0,0 @@
1
- [console_scripts]
2
- openapi-generator = openapi_generator_cli:run
3
-
@@ -1 +0,0 @@
1
- openapi_generator_cli
@@ -1,4 +0,0 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
@@ -1,78 +0,0 @@
1
- # coding=utf-8
2
- import io
3
- import os
4
- import sys
5
- from shutil import rmtree
6
-
7
- from setuptools import find_packages, setup, Command
8
-
9
- NAME = "openapi-generator-cli"
10
- DESCRIPTION = "CLI for openapi generator"
11
- URL = "https://github.com/OpenAPITools/openapi-generator"
12
- EMAIL = "team@openapitools.org"
13
- AUTHOR = "OpenAPI Generator community"
14
- VERSION = open("version").read()
15
- EXTRAS = {}
16
-
17
- here = os.path.abspath(os.path.dirname(__file__))
18
-
19
- try:
20
- with io.open(os.path.join(here, "README.md"), encoding="utf-8") as f:
21
- long_description = "\n" + f.read()
22
- except FileNotFoundError:
23
- long_description = DESCRIPTION
24
-
25
-
26
- class UploadCommand(Command):
27
- description = "Build and publish the package."
28
- user_options = []
29
-
30
- @staticmethod
31
- def status(s):
32
- print("\033[1m{0}\033[0m".format(s))
33
-
34
- def initialize_options(self):
35
- pass
36
-
37
- def finalize_options(self):
38
- pass
39
-
40
- def run(self):
41
- try:
42
- self.status("Removing previous builds…")
43
- rmtree(os.path.join(here, "dist"))
44
- except OSError:
45
- pass
46
-
47
- self.status("Building Source and Wheel (universal) distribution…")
48
- os.system("{0} setup.py sdist bdist_wheel --universal".format(sys.executable))
49
-
50
- self.status("Uploading the package to PyPI via Twine…")
51
- os.system("twine upload dist/*")
52
-
53
- sys.exit()
54
-
55
-
56
- setup(
57
- name=NAME,
58
- version=VERSION,
59
- description=DESCRIPTION,
60
- long_description=long_description,
61
- long_description_content_type="text/markdown",
62
- author=AUTHOR,
63
- author_email=EMAIL,
64
- url=URL,
65
- packages=["openapi_generator_cli"],
66
- extras_require=EXTRAS,
67
- package_data={"openapi_generator_cli": ["*.jar"]},
68
- include_package_data=True,
69
- license="APACHE 2.0",
70
- classifiers=[
71
- "License :: OSI Approved :: Apache Software License",
72
- "Programming Language :: Python",
73
- "Programming Language :: Python :: Implementation :: CPython",
74
- "Programming Language :: Python :: Implementation :: PyPy",
75
- ],
76
- cmdclass={"upload": UploadCommand},
77
- entry_points={"console_scripts": ["openapi-generator=openapi_generator_cli:run"]},
78
- )