settings
pymonzo settings related code.
PyMonzoSettings
Bases: BaseSettings
pymonzo settings schema.
Attributes:
| Name | Type | Description |
|---|---|---|
token |
Dict[str, Union[str, int]]
|
OAuth token. For more information see |
client_id |
Optional[str]
|
OAuth client ID. |
client_secret |
Optional[str]
|
OAuth client secret. |
Source code in pymonzo/settings.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
load_from_disk(settings_path)
classmethod
Load pymonzo settings from disk.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings_path |
Path
|
Settings file path. |
required |
Returns:
| Type | Description |
|---|---|
Self
|
Loaded pymonzo settings. |
Source code in pymonzo/settings.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
save_to_disk(settings_path)
Save pymonzo settings on disk.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings_path |
Path
|
Settings file path. |
required |
Source code in pymonzo/settings.py
48 49 50 51 52 53 54 55 56 57 58 | |