From 3b3c64bf89781ae85436eb7262fefe77e58c4e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Foellmi?= Date: Sun, 26 Jul 2020 17:39:36 +0200 Subject: [PATCH 1/2] Adding api_key accessor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric Foellmi --- arcsecond/api/main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arcsecond/api/main.py b/arcsecond/api/main.py index f9ea748..7dabf6b 100644 --- a/arcsecond/api/main.py +++ b/arcsecond/api/main.py @@ -100,6 +100,10 @@ def is_logged_in(cls, state=None, **kwargs): def username(cls, state=None, **kwargs): return ArcsecondAPI.username(state, **kwargs) + @classmethod + def api_key(cls, state=None, **kwargs): + return ArcsecondAPI.api_key(state, **kwargs) + @classmethod def memberships(cls, state=None, **kwargs): return ArcsecondAPI.memberships(state, **kwargs) @@ -257,6 +261,11 @@ def username(cls, state=None, **kwargs): state = get_api_state(state, **kwargs) return config_file_read_username(section=state.config_section()) or '' + @classmethod + def api_key(cls, state=None, **kwargs): + state = get_api_state(state, **kwargs) + return config_file_read_api_key(section=state.config_section()) or '' + @classmethod def memberships(cls, state=None, **kwargs): state = get_api_state(state, **kwargs) From 8adac152fd328c42a151a3e33a37bee2d0971184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Foellmi?= Date: Sun, 26 Jul 2020 17:40:07 +0200 Subject: [PATCH 2/2] Bumping version number MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric Foellmi --- arcsecond/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arcsecond/__init__.py b/arcsecond/__init__.py index 8cd9001..d607568 100644 --- a/arcsecond/__init__.py +++ b/arcsecond/__init__.py @@ -7,4 +7,4 @@ "ArcsecondConnectionError", "ArcsecondInvalidEndpointError"] -__version__ = '0.9.7' +__version__ = '0.9.8'