Skip to content

Commit

Permalink
Add human-readable logs
Browse files Browse the repository at this point in the history
  • Loading branch information
artsmolin committed Sep 30, 2023
1 parent cf2e88e commit bb41c67
Show file tree
Hide file tree
Showing 14 changed files with 152 additions and 93 deletions.
27 changes: 15 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@ install-pre-commit:
format: install-pre-commit clean
pre-commit run --all-files

async-client:
@python pythogen/main.py tests/docs/openapi.yaml tests/clients/async_client.py

clients:
# async clients for tests
python pythogen/main.py tests/docs/openapi.yaml tests/clients/async_client.py
python pythogen/main.py tests/docs/openapi.yaml tests/clients/async_client_with_metrics.py --metrics
python pythogen/main.py tests/docs/openapi.yaml tests/clients/async_client_with_headers.py --headers X-API-KEY,X-API-SECRET

# sync clients for tests
python pythogen/main.py tests/docs/openapi.yaml tests/clients/sync_client.py --sync
python pythogen/main.py tests/docs/openapi.yaml tests/clients/sync_client_with_metrics.py --sync --metrics

# clients for examles
python pythogen/main.py examples/petstore/openapi.yaml examples/petstore/client_async.py
python pythogen/main.py examples/petstore/openapi.yaml examples/petstore/client_sync.py --sync
@# async clients for tests
@python pythogen/main.py tests/docs/openapi.yaml tests/clients/async_client.py
@python pythogen/main.py tests/docs/openapi.yaml tests/clients/async_client_with_metrics.py --metrics
@python pythogen/main.py tests/docs/openapi.yaml tests/clients/async_client_with_headers.py --headers X-API-KEY,X-API-SECRET

@# sync clients for tests
@python pythogen/main.py tests/docs/openapi.yaml tests/clients/sync_client.py --sync
@python pythogen/main.py tests/docs/openapi.yaml tests/clients/sync_client_with_metrics.py --sync --metrics

@# clients for examles
@python pythogen/main.py examples/petstore/openapi.yaml examples/petstore/client_async.py
@python pythogen/main.py examples/petstore/openapi.yaml examples/petstore/client_sync.py --sync

requirements:
pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion examples/petstore/client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# Generator info:
# GitHub Page: https://github.com/artsmolin/pythogen
# Version: 0.2.29
# Version: 0.2.30
# ==============================================================================

# jinja2: lstrip_blocks: "True"
Expand Down
2 changes: 1 addition & 1 deletion examples/petstore/client_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# Generator info:
# GitHub Page: https://github.com/artsmolin/pythogen
# Version: 0.2.29
# Version: 0.2.30
# ==============================================================================

# jinja2: lstrip_blocks: "True"
Expand Down
Loading

0 comments on commit bb41c67

Please sign in to comment.