-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcfg.py
37 lines (31 loc) · 1.77 KB
/
cfg.py
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
from implementation.app_constants import *
APP_CFG = {
# Path where downloaded files will get stored
IMAGE_SAVE_DIR: './downloaded_images',
# URL_TIMEOUT parameter specifies Requests to stop waiting for a response after a \
# specified number of seconds. It avoids the application to hang indefinitely.\
# In case of timeout, it reattempts to download the URL path "MAX_DOWNLOAD_ATTEMPTS_PER_URL" times.
# If you need to configure the application to wait for a response indefinitely, please assign None to it.
# You are strongly advised to provide a timeout value.
URL_TIMEOUT: 2,
# In case of URL_TIMEOUT, MAX_DOWNLOAD_REATTEMPTS specifies number of maximum attempts to \
# download an URL resource. Set it to None, if you prefer not to reattempt. \
# If "URL_TIMEOUT" is already set to None, application ignores this configuration.
MAX_DOWNLOAD_REATTEMPTS: 2,
# If you need to use a proxy, assign a dictionary (e.g; using proxies argument) mapping protocol \
# or protocol and host to the URL of the proxy to be used on each Request using SYSTEM_PROXY configuration. \
# Otherwise, configure it to a None.
# For detailed info, please visit http://docs.python-requests.org/en/master/user/advanced/#proxies
# proxies = {
# 'http': 'http://10.10.1.10:3128',
# 'https': 'http://10.10.1.10:1080',
# }
SYSTEM_PROXY: None,
# Path of log file of the application
LOG_DIR: './logs',
# Set the level of logs which will be collected by this application.
# Available options are "NOTSET", "DEBUG", "INFO", "WARNING", "ERROR", and "CRITICAL".
# All the options are case-insensitive.
# If an invalid option is provided, then by default application will configure itself with "INFO".
LOG_LEVEL: "INFO",
}