forked from loafle/openapi-generator-original
minor fix to python readme
This commit is contained in:
parent
ba74c69fdb
commit
56d1a11df5
@ -25,9 +25,9 @@ If the python package is hosted on Github, you can install directly from Github
|
|||||||
```sh
|
```sh
|
||||||
pip install git+https://github.com/{{{gitUserId}}}/{{{gitRepoId}}}.git
|
pip install git+https://github.com/{{{gitUserId}}}/{{{gitRepoId}}}.git
|
||||||
```
|
```
|
||||||
(you may need to run the command with root permission: `sudo pip install git+https://github.com/{{{gitUserId}}}/{{{gitRepoId}}}.git`)
|
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/{{{gitUserId}}}/{{{gitRepoId}}}.git`)
|
||||||
|
|
||||||
Import the pacakge:
|
Then import the package:
|
||||||
```python
|
```python
|
||||||
import {{{packageName}}}
|
import {{{packageName}}}
|
||||||
```
|
```
|
||||||
@ -41,19 +41,11 @@ python setup.py install --user
|
|||||||
```
|
```
|
||||||
(or `sudo python setup.py install` to install the package for all users)
|
(or `sudo python setup.py install` to install the package for all users)
|
||||||
|
|
||||||
Import the pacakge:
|
Then import the package:
|
||||||
```python
|
```python
|
||||||
import {{{packageName}}}
|
import {{{packageName}}}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Manual Installation
|
|
||||||
|
|
||||||
Download the latest release to the project folder (e.g. ./path/to/{{{packageName}}}) and import the package:
|
|
||||||
|
|
||||||
```python
|
|
||||||
import path.to.{{{packageName}}}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
Please follow the [installation procedure](#installation--usage) and then run the following:
|
Please follow the [installation procedure](#installation--usage) and then run the following:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user