-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(python): add support for the upcoming auth update (#207)
Co-authored-by: Dominic Reber <[email protected]> Co-authored-by: Enrico Eberhard <[email protected]>
- Loading branch information
1 parent
eaf9d6c
commit f02d22d
Showing
5 changed files
with
395 additions
and
149 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,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')) |
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 |
---|---|---|
|
@@ -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" |
Oops, something went wrong.