Auth
Handles authentication and creates requests session.
Source code in akapy/auth.py
host_url
property
Returns the base API host URL.
__init__(EDGERC_PATH='~/.edgerc', SECTION='default', RETRY_ITERATION=5, RETRY_BACKOFF=1)
Initialize authentication and create requests session.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
EDGERC_PATH |
str
|
Path to .edgerc file |
'~/.edgerc'
|
SECTION |
str
|
Section in .edgerc file |
'default'
|
RETRY_ITERATION |
int
|
Number of retries |
5
|
RETRY_BACKOFF |
int
|
Backoff factor between retries |
1
|