Skip to content

Commit

Permalink
feat(python): add support for the upcoming auth update (#207)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominic Reber <[email protected]>
Co-authored-by: Enrico Eberhard <[email protected]>
  • Loading branch information
3 people authored Jan 21, 2025
1 parent eaf9d6c commit f02d22d
Show file tree
Hide file tree
Showing 5 changed files with 395 additions and 149 deletions.
6 changes: 5 additions & 1 deletion python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Release Versions:
- [1.0.1](#101)
- [1.0.0](#100)

## Upcoming changes

- feat(python): add support for the upcoming auth update (#207)

## 3.0.0

Version 3.0.0 of the AICA API client is compatible with the new AICA Core version 4.0. It supports additional methods to
Expand Down Expand Up @@ -65,4 +69,4 @@ Version 1.0.1 fixes a relative import issue.
## 1.0.0

Version 1.0.0 marks the version for the first software release. From now on, all changes must be well documented and
semantic versioning must be maintained to reflect patch, minor or major changes.
semantic versioning must be maintained to reflect patch, minor or major changes.
12 changes: 12 additions & 0 deletions python/examples/with_api_key.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import os

from aica_api.client import AICA

client = AICA(
api_key=os.getenv('AICA_API_KEY'),
)

assert client.check()
print(f'Application state: {client.get_application_state().text}')
print(f'Application state: {client.load_component("def").text}')
print(client.wait_for_component('abc', 'loaded'))
30 changes: 19 additions & 11 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,33 @@ build-backend = "hatchling.build"
[project]
name = "aica_api"
version = "3.0.0"
authors = [
{ name="Enrico Eberhard", email="[email protected]" },
]
authors = [{ name = "Enrico Eberhard", email = "[email protected]" }]
description = "A client utility for the AICA API"
readme = "README.md"
requires-python = ">=3.7"
dependencies = [
"deprecation ~= 2.1.0",
"python-socketio[client] ~= 5.11.0",
"pyyaml ~= 6.0.1",
"requests ~= 2.28.1",
"semver ~= 3.0.2"
"deprecation ~= 2.1.0",
"python-socketio[client] ~= 5.11.0",
"pyyaml ~= 6.0.1",
"requests ~= 2.28.1",
"semver ~= 3.0.2",
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

[project.urls]
"Homepage" = "https://github.com/aica-technology/api"
"Bug Tracker" = "https://github.com/aica-technology/api/issues"


[tool.ruff]
line-length = 120

[tool.ruff.lint]
ignore = ["D212", "D400", "D415", "FA100", "G004"]

[tool.ruff.format]
quote-style = "single"
Loading

0 comments on commit f02d22d

Please sign in to comment.