From 7f0efe74a7f4fb6e4bb71188be7d819fae5dce5d Mon Sep 17 00:00:00 2001 From: haruna Date: Thu, 19 Dec 2024 15:12:36 +0900 Subject: [PATCH] Add PyPI installation to docs (#20350) --- docs/installation.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 39e93a7d529..fa62f6d9898 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -77,6 +77,22 @@ Then, **generate** a ruby client from a valid [petstore.yaml](https://raw.github openapi-generator-cli generate -i petstore.yaml -g ruby ``` +## PyPI + +> **Platform(s)**: Linux, macOS, Windows + +**Install** via [PyPI](https://pypi.org/) (`java` executable is needed to run): + +``` +pip install openapi-generator-cli +``` + +You can also install with [jdk4py](https://github.com/activeviam/jdk4py) instead of java binary. (python>=3.10 is required) + +``` +pip install openapi-generator-cli[jdk4py] +``` + ## Docker > **Platform(s)**: Linux, macOS, Windows