ofxclient.config.OfxConfig(file_name=None)[source]¶Default config file handler for other tools to use.
This can read and write from the default config which is $USERS_HOME/ofxclient.ini
| Parameters: | file_name (string or None) – absolute path to a config file (optional) |
|---|
Example usage:
from ofxclient.config import OfxConfig
from ofxclient import Account
a = Account()
c = OfxConfig(file_name='/tmp/new.ini')
c.add_account(a)
c.save()
account_list = c.accounts()
one_account = c.account( a.local_id() )
Methods
__init__([file_name]) |
|
account(id) |
Get ofxclient.Account by section id |
accounts() |
List of confgured ofxclient.Account objects |
add_account(account) |
Add Account to config (does not save) |
reload() |
Reload the config file from disk |
remove_account(id) |
Add Account from config (does not save) |
save() |
Save changes to config file |