Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .openapi-generator/VERSION

This file was deleted.

31 changes: 29 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ DOCKER ?= docker


.PHONY: gen-api-client
gen-api-client: fetch-spec
gen-api-client: fetch-spec gen-api-client-sync gen-api-client-async

.PHONY: gen-api-client-sync
gen-api-client-sync:
mkdir -p koyeb/api/.openapi-generator
$(DOCKER) run --rm \
-v `pwd`/spec:/spec \
-v `pwd`:/builder openapitools/openapi-generator-cli:${OPENAPI_GENERATOR_VERSION} \
-v `pwd`:/builder \
-v `pwd`/koyeb/api/.openapi-generator:/builder/.openapi-generator \
openapitools/openapi-generator-cli:${OPENAPI_GENERATOR_VERSION} \
generate \
--git-user-id ${GIT_USER_ID} \
--git-repo-id ${GIT_REPO_ID} \
Expand All @@ -24,6 +30,27 @@ gen-api-client: fetch-spec
--additional-properties generateSourceCodeOnly=true
git checkout -- koyeb/__init__.py

.PHONY: gen-api-client-async
gen-api-client-async:
mkdir -p koyeb/api_async/.openapi-generator
$(DOCKER) run --rm \
-v `pwd`/spec:/spec \
-v `pwd`:/builder \
-v `pwd`/koyeb/api_async/.openapi-generator:/builder/.openapi-generator \
openapitools/openapi-generator-cli:${OPENAPI_GENERATOR_VERSION} \
generate \
--git-user-id ${GIT_USER_ID} \
--git-repo-id ${GIT_REPO_ID} \
-i /spec/openapi.json \
-g python \
-o /builder \
--package-name koyeb.api_async \
--additional-properties packageVersion=${PACKAGE_VERSION} \
--additional-properties licenseInfo="Apache-2.0" \
--additional-properties generateSourceCodeOnly=true \
--additional-properties library=httpx
git checkout -- koyeb/__init__.py


.PHONY: gen-docs
gen-docs:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ This is the official Python SDK for Koyeb, a platform that allows you to deploy

# Modules

- `koyeb.api`: Contains the API client and methods to interact with Koyeb's REST API. [Documentation](./docs/api.md)
- `koyeb.api`: Contains the synchronous API client and methods to interact with Koyeb's REST API. [Documentation](./docs/api.md)
- `koyeb.api_async`: Contains the asynchronous API client (httpx-based) and methods to interact with Koyeb's REST API. [Documentation](./docs/api_async.md)
- `koyeb.sandbox`: Contains the Sandbox module. [Documentation](./docs/sandbox.md)

## Koyeb Sanboxes
Expand Down
3 changes: 3 additions & 0 deletions bumpver.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ push = false
"koyeb/api/api_client.py" = ['OpenAPI-Generator/{version}']
"koyeb/api/configuration.py" = ['SDK Package Version: {version}']
"koyeb/sandbox/__init__.py" = ['__version__ = "{version}"']
"koyeb/api_async/__init__.py" = ['__version__ = "{version}"']
"koyeb/api_async/api_client.py" = ['OpenAPI-Generator/{version}']
"koyeb/api_async/configuration.py" = ['SDK Package Version: {version}']
Loading
Loading