-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix/database initialization improvements (#217)
* Fix docker compose command * Add sqlachemy-utils python package * Update init database script * Improve setup script so test database is also configured * Rework python client info into separate readme * Update curl commands * Update init db and testing text * Update text * Remove unused docker compose * Improve readme
- Loading branch information
1 parent
b345f37
commit 577f028
Showing
8 changed files
with
154 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Python client | ||
|
||
[![PyPI version](https://badge.fury.io/py/geoapi-client.svg)](https://badge.fury.io/py/geoapi-client) | ||
|
||
The python package can be found at [PyPi](https://pypi.org/project/geoapi-client/). | ||
|
||
**Note:** This Python client is no longer actively maintained or updated. | ||
|
||
### Python client generation | ||
|
||
Python client is generated from the swagger definition of GeoAPI. The following steps can be used to get swagger definition: | ||
``` | ||
docker exec -it geoapi python output_swagger.py swagger.json | ||
docker cp geoapi:/app/geoapi/swagger.json . | ||
``` | ||
|
||
Using the swagger definition, the following steps create python client and upload the python client to PyPi | ||
``` | ||
git clone --depth 1 https://github.com/swagger-api/swagger-codegen.git client/swagger-codegen | ||
cp client/*.mustache client/swagger-codegen/modules/swagger-codegen/src/main/resources/python/. | ||
# Convert | ||
docker run --rm -v ${PWD}:/local -w=/local swaggerapi/swagger-codegen-cli generate -i swagger.json -l python -o client/geoapi_client -c client/config.json -t client/swagger-codegen/modules/swagger-codegen/src/main/resources/python/ | ||
cd client/geoapi_client | ||
python3 setup.py sdist bdist_wheel | ||
twine check dist/* | ||
python3 -m twine upload dist/* | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.