-
Notifications
You must be signed in to change notification settings - Fork 2
/
consts.py
36 lines (28 loc) · 900 Bytes
/
consts.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
from enum import unique, Enum
from os import environ
# env variables
AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID', None)
AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY', None)
REGION_NAME = environ.get('REGION_NAME', None)
logging_lvl = environ.get("LOGGING_LEVEL")
LOGGING_LEVEL = logging_lvl if logging_lvl else 'INFO'
# TODO: should make configurable
OUTPUT_DIR = 'generated-reports'
CACHE_RESULTS_DIR = '.cache'
@unique
class ReportItemName(Enum):
REPORT_TITLE = "Report Title"
CURRENT_DATE = "Current Date"
FORECAST = "Forecast"
FORECAST_PER = "Forecast Percentage"
MONTHLY_COST = "Monthly Cost"
MONTHLY_TOTAL_COST = "Monthly Total Cost"
DAILY_COST = "Daily Cost"
SERVICES_COST = "Services Cost"
ACCOUNTS_COST = "Accounts cost"
@unique
class ItemType(Enum):
BAR = 'bar'
LINE = 'line'
STACK = 'stack'
VALUE = 'value'