PyHodl  0.2.8
Framework to download, update, analyze and plot your crypto-transactions. Completely off-line and security-oriented.
pyhodl.config Namespace Reference

Classes

class  RunMode
 

Functions

def get_coin_historical_data_file (currency)
 

Variables

string APP_NAME = "Pyhodl"
 
string APP_SHORT_NAME = "pyhodl"
 
 THIS_FOLDER = os.path.dirname(os.path.realpath(__file__))
 
 HOME_FOLDER = os.getenv("HOME")
 
 APP_FOLDER
 
 API_FOLDER
 
 API_CONFIG
 
 DATA_FOLDER
 
 HISTORICAL_DATA_FOLDER
 
string DATE_TIME_FORMAT = "%Y-%m-%d %H:%M:%S %z"
 
string DATE_TIME_KEY = "datetime"
 
string VALUE_KEY = "val"
 
 INFINITY = float("inf")
 
 NAN = float("nan")
 
 RAW_DATA_FOLDER
 
 COINS_DATABASE
 
dictionary DEFAULT_PATHS
 
int SECONDS_IN_MIN = 60
 
int SECONDS_IN_HOUR = 60
 

Function Documentation

def pyhodl.config.get_coin_historical_data_file (   currency)
:param currency: str
    Currency to get
:return: str
    Path to file containing currency historical data

Variable Documentation

pyhodl.config.API_CONFIG
Initial value:
1 = os.path.join(
2  API_FOLDER,
3  "config.json"
4 )
pyhodl.config.API_FOLDER
Initial value:
1 = os.path.join(
2  APP_FOLDER,
3  "api"
4 )
pyhodl.config.APP_FOLDER
Initial value:
1 = os.path.join(
2  HOME_FOLDER,
3  "." + APP_SHORT_NAME
4 )
string pyhodl.config.APP_NAME = "Pyhodl"
string pyhodl.config.APP_SHORT_NAME = "pyhodl"
pyhodl.config.COINS_DATABASE
Initial value:
1 = os.path.join(
2  RAW_DATA_FOLDER,
3  "coins.json"
4 )
pyhodl.config.DATA_FOLDER
Initial value:
1 = os.path.join(
2  APP_FOLDER,
3  "data"
4 )
string pyhodl.config.DATE_TIME_FORMAT = "%Y-%m-%d %H:%M:%S %z"
string pyhodl.config.DATE_TIME_KEY = "datetime"
dictionary pyhodl.config.DEFAULT_PATHS
Initial value:
1 = {
2  RunMode.STATS: DATA_FOLDER,
3  RunMode.DOWNLOAD_HISTORICAL: HISTORICAL_DATA_FOLDER,
4  RunMode.UPDATER: API_CONFIG
5 }
pyhodl.config.HISTORICAL_DATA_FOLDER
Initial value:
1 = os.path.join(
2  APP_FOLDER,
3  "historical"
4 )
pyhodl.config.HOME_FOLDER = os.getenv("HOME")
pyhodl.config.INFINITY = float("inf")
pyhodl.config.NAN = float("nan")
pyhodl.config.RAW_DATA_FOLDER
Initial value:
1 = os.path.join(
2  THIS_FOLDER,
3  "data",
4  "raw"
5 )
int pyhodl.config.SECONDS_IN_HOUR = 60
int pyhodl.config.SECONDS_IN_MIN = 60
pyhodl.config.THIS_FOLDER = os.path.dirname(os.path.realpath(__file__))
string pyhodl.config.VALUE_KEY = "val"