Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(api-python-sdk): generate client on build time #5

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/python/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
openapi.yaml
airthings_api_client/
11 changes: 8 additions & 3 deletions api/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@

API SDK for Airthings consumer products.

## Getting Started

Prerequisites:

- [Python](https://www.python.org/downloads/) with version 3.11 that is required by Home Assistant ([docs](https://developers.home-assistant.io/docs/development_environment?_highlight=python&_highlight=versi#manual-environment) or [reference](https://github.com/home-assistant/architecture/blob/master/adr/0002-minimum-supported-python-version.md))
- [Poetry](https://python-poetry.org/docs/#installation)

Install dependencies:
Then run following steps:

```bash
poetry install
```shell
poetry install # Install dependencies
./generate_client.sh # Generate REST API client code
python3 examples//fetch_devices_and_sensors.py CLIENT_ID CLIENT_SECRET # Run example to make sure all works
```


[logo]: https://upload.wikimedia.org/wikipedia/commons/d/d1/Airthings_logo.svg
7 changes: 0 additions & 7 deletions api/python/airthings_api_client/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion api/python/airthings_api_client/api/__init__.py

This file was deleted.

Empty file.
126 changes: 0 additions & 126 deletions api/python/airthings_api_client/api/accounts/get_accounts_ids.py

This file was deleted.

Empty file.
150 changes: 0 additions & 150 deletions api/python/airthings_api_client/api/device/get_devices.py

This file was deleted.

Empty file.
79 changes: 0 additions & 79 deletions api/python/airthings_api_client/api/health/get_health.py

This file was deleted.

Empty file.
Loading
Loading