biweeklybudget.settings module

biweeklybudget.settings.BIWEEKLYBUDGET_TEST_TIMESTAMP = None

int - FOR ACCEPTANCE TESTS ONLY - This is used to “fudge” the current time to the specified integer timestamp. Used for acceptance tests only. Do NOT set this outside of acceptance testing.

biweeklybudget.settings.CURRENCY_CODE = 'USD'

An ISO 4217 Currency Code specifying the currency to use for all monetary amounts, i.e. “USD”, “EUR”, etc. This setting only effects how monetary values are displayed in the UI, logs, etc. Currently defaults to “USD”. For further information, see Currency Formatting and Localization.

biweeklybudget.settings.DB_CONNSTRING = 'sqlite:///:memory:'

string - SQLAlchemy database connection string. See the SQLAlchemy Database URLS docs for further information.

biweeklybudget.settings.DEFAULT_ACCOUNT_ID = 1

int - Account ID to show first in dropdown lists. This must be the database ID of a valid account.

biweeklybudget.settings.DISTANCE_UNIT = 'Miles'

The full written name of your unit of distance for fuel economy calculations and the Fuel Log. As an example, Miles or Kilometers.

biweeklybudget.settings.DISTANCE_UNIT_ABBREVIATION = 'Mi.'

Abbreviation of biweeklybudget.settings.DISTANCE_UNIT, such as Mi. or KM.

biweeklybudget.settings.FUEL_BUDGET_ID = 1

int - Budget ID to select as default when inputting Fuel Log entries. This must be the database ID of a valid budget.

biweeklybudget.settings.FUEL_ECO_ABBREVIATION = 'MPG'

Abbreviation for your distance-per-volume fuel economy measurement, such as MPG or KM/L.

biweeklybudget.settings.FUEL_VOLUME_ABBREVIATION = 'Gal.'

Abbreviation of biweeklybudget.settings.FUEL_VOLUME_UNIT, such as Gal. or L.

biweeklybudget.settings.FUEL_VOLUME_UNIT = 'Gallons'

The full written name of your unit of measure for volume of fuel, to be used for the Fuel Log feature. As an example, Gallons or Litres.

biweeklybudget.settings.LOCALE_NAME = 'en_US'

A RFC 5646 / BCP 47 Language Tag with a Region suffix to use for number (currency) formatting, i.e. “en_US”, “en_GB”, “de_DE”, etc. If this is not specified (None), it will be looked up from environment variables in the following order: LC_ALL, LC_MONETARY, LANG. If none of those variables are set to a valid locale name (not including the “C” locale, which does not specify currency formatting) and this variable is not set, the application will default to “en_US”. This setting only effects how monetary values are displayed in the UI, logs, etc. For further information, see Currency Formatting and Localization.

biweeklybudget.settings.PAY_PERIOD_START_DATE = datetime.date(2017, 3, 17)

datetime.date - The starting date of one pay period (generally the first pay period represented in data in this app). The dates of all pay periods will be determined based on an interval from this date. This must be specified in Y-m-d format (i.e. parsable by datetime.datetime.strptime() with %Y-%m-%d format).

biweeklybudget.settings.PLAID_CLIENT_ID = None

Plaid Client ID

biweeklybudget.settings.PLAID_COUNTRY_CODES = None

PLAID_COUNTRY_CODES is a comma-separated list of countries for which users will be able to select institutions from.

biweeklybudget.settings.PLAID_ENV = None

Plaid environment name. Use ‘sandbox’ to test with Plaid’s Sandbox environment (username: user_good, password: pass_good). Use development to test with live users and credentials and production to go live

biweeklybudget.settings.PLAID_PRODUCTS = 'transactions'

PLAID_PRODUCTS is a comma-separated list of products to use when initializing Link. Note that this list must contain ‘assets’ in order for the app to be able to create and retrieve asset reports.

biweeklybudget.settings.PLAID_SECRET = None

Plaid Secret (client secret)

biweeklybudget.settings.PLAID_USER_ID = '1'

PLAID_USER_ID is a unique per-user ID for users of Plaid applications. Since this is a single-user app, we just hard-code to “1”

biweeklybudget.settings.RECONCILE_BEGIN_DATE = datetime.date(2017, 1, 1)

datetime.date - When listing unreconciled transactions that need to be reconciled, any transaction before this date will be ignored. This must be specified in Y-m-d format (i.e. parsable by datetime.datetime.strptime() with %Y-%m-%d format).

biweeklybudget.settings.STALE_DATA_TIMEDELTA = datetime.timedelta(days=2)

datetime.timedelta - Time interval beyond which OFX data for accounts will be considered old/stale. This must be specified as a number (integer) that will be converted to a number of days.

biweeklybudget.settings.STATEMENTS_SAVE_PATH = '/home/docs/ofx'

string - (optional) Filesystem path to download OFX statements to, and for backfill_ofx to read them from.

biweeklybudget.settings.TOKEN_PATH = 'vault_token.txt'

string - (optional) Filesystem path to read Vault token from, for OFX credentials.

biweeklybudget.settings.VAULT_ADDR = 'http://127.0.0.1:8200'

string - (optional) Address to connect to Vault at, for OFX credentials.