models
ArkProfileLoader
¶
Source code in ark_sdk_python/models/ark_profile.py
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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
|
clear_all_profiles()
staticmethod
¶
Clears all profiles.
Source code in ark_sdk_python/models/ark_profile.py
156 157 158 159 160 161 162 163 164 165 |
|
deduce_profile_name(profile_name=None)
staticmethod
¶
Deduces the profile name from the env.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
profile_name |
Optional[str]
|
Defaults to |
None
|
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
description |
Source code in ark_sdk_python/models/ark_profile.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
default_profile_name()
staticmethod
¶
Getter for the default profile name.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
description |
Source code in ark_sdk_python/models/ark_profile.py
45 46 47 48 49 50 51 52 53 |
|
delete_profile(profile_name)
staticmethod
¶
Deletes the specified profile.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
profile_name |
str
|
The name of the profile to delete |
required |
Source code in ark_sdk_python/models/ark_profile.py
142 143 144 145 146 147 148 149 150 151 152 153 154 |
|
load_all_profiles()
staticmethod
¶
Loads all the profiles that exist on the machine.
Returns:
Type | Description |
---|---|
Optional[List[ArkProfile]]
|
Optional[List[ArkProfile]]: description |
Source code in ark_sdk_python/models/ark_profile.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
|
load_default_profile()
staticmethod
¶
Loads the default profile, either from the OS or creates a new one.
Returns:
Name | Type | Description |
---|---|---|
ArkProfile |
ArkProfile
|
description |
Source code in ark_sdk_python/models/ark_profile.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
load_profile(profile_name)
staticmethod
¶
Loads the specified profile from the OS.
Returns None
when a profile is not found with the specified name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
profile_name |
str
|
description |
required |
Returns:
Type | Description |
---|---|
Optional[ArkProfile]
|
Optional[ArkProfile]: description |
Source code in ark_sdk_python/models/ark_profile.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
|
profile_exists(profile_name)
staticmethod
¶
Checks if the specified profile exists.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
profile_name |
str
|
description |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
description |
Source code in ark_sdk_python/models/ark_profile.py
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
|
profiles_folder()
staticmethod
¶
Retrieves the profiles folder pathname, from the environment variable when set; otherwise, from the default location.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
description |
Source code in ark_sdk_python/models/ark_profile.py
35 36 37 38 39 40 41 42 43 |
|
save_profile(profile)
staticmethod
¶
Saves the profile to the profiles folder on the filesystem.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
profile |
ArkProfile
|
description |
required |
Source code in ark_sdk_python/models/ark_profile.py
107 108 109 110 111 112 113 114 115 116 117 118 119 |
|