-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_example.py
More file actions
48 lines (39 loc) · 960 Bytes
/
config_example.py
File metadata and controls
48 lines (39 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
'''
~~~ OPTIONAL ~~~~
example of the "config.py" file where you can store the
account credenitals or API token.
credentials variable may have two different format:
-------
1. Login/password
credentials = {
"email": "user@domain",
"password": "xxxxx",
"host": 'api.mist.com'
}
OR
credentials = {
"email": "user@domain",
"host": 'api.mist.com'
}
-------
2. API Token
credentials = {
"apitoken" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"host": "api.mist.com"
}
-------
OTHER
Log level: you can define the log level displayed on the console with the following variable (default
is 6):
log_level = 6
------
COMPLETE EXAMPLE
INFO: Be sure to uncomment the information to be used in your file!
The information in you config.py file should look like (of course, it depends on the authentication
method you chose):
credentials = {
"apitoken" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"host": "api.mist.com"
}
log_level = 6
'''