Package: obp-python
Open Bank Project CLIA command line utility (CLI) to work with the Open Bank Project sandbox calledobp.With the obp cli you can:Initiate an api connection to the sandboxnoteyou still need to sign-up from the sandbox homepage first to create your username & passwordGet your DirectLogin tokenGet your user informationGet your user idGet banksGet (your) accounts held at the bankAlso, depending on your account access you may:Create a bank accountAdd roles to a userImport/Delete branchesImport dummy bank dataInstallRequires python3Requires pip (seehttps://pip.pypa.io/en/stable/installing/)pip install --user obp-python # Requires at least python 3Warning: If your operating system defaults to python 2, your pip command might be:pip3 install --user obp-python
#or 
pip3.6 install --user obp-pythonUsageUsage: obp [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  addaccount              📁 Add a bank account
  addbank                 🏦 Add a bank
  addcustomer             🧙 Add a customer
  addfx                   📉 Add exchange rate (FX)
  addrole                 🚧 Add a role for current user
  adduser                 📝 Add a user
  addview                 🧐 Add a view
  answerconsent           🚧 Answer consent
  createconsent           🚧 Add a consent
  deletebranches          ⚠️ 🏦 Delete all branches
  deletecardbyid          ⚠️ 💳 Delete card by id
  getaccountbyid          📁 Get account by id (includes balance)
  getaccountsheld         📁 Get list of accounts held
  getaccounttransactions  📁 Get transactions for an account
  getauth                 🔑 Get your DirectLogin token
  getbanks                🏦 Get list of banks
  getcardbyid             💳 Get card by id
  getcardbynumber         💳 Get card by card number
  getcards                💳 Get list of cards at bank
  getconsents             🚧 Get consents
  getconsentstatus        🚧 Get consent status- with certificate
  getcustomers            👥 Get list of customers
  getuser                 😃 Get your user info
  getuserid               📋 Get your user id
  getuseridbyusername     📋 Get user id by username
  getusers                😃 Get all users
  importaccounts          🚜 Import accounts from spreadsheet template
  importbranches          🚜 Import branches from spreadsheet template
  importcardattribues     🚜 Import card attributes from spreadsheet template
  importcards             🚜 Import cards from spreadsheet template
  importcustomers         🚜 Import customers from spreadsheet template
  importfx                🚜 📉 Load all foreign exchange rates (FX) to all...
  importtransactions      🚜 Import transactions from spreadsheet template
  importusers             🚜 Import users from spreadsheet template
  init                    💡 Initalize connection to your Open Bank Project...
  linkusertocustomer      🔗 Link user to a customer
  revokeconsent           🚧 Revoke consent
  sandboximport           🚜 Bulk import sandbox data from json inputExamplesYou must initalize the obp cli once, by doing:obp initGenerate Direct Login Tokenobp init 
Please enter your API_HOST: api.example.com
Please enter your username:
Please enter your password: : 
Repeat for confirmation: 
... generating direct login token
Please enter your OBP_CONSUMER_KEY: # Go to api.example.com, then "Get API Key" to generate consumer key.
obp getauth # Displays your DirectLogin tokenContributingNoteYou can ignore this is your just using the utlity. This is
just for developing the utlity.To work on this utility as a developer:Building# Setup python3 environment
virtualenv -p python3 venv
. venv/bin/activate
git clone <this-repo>
# Building wheels etc
python setup.py sdist bdist_wheel
# Installing your edits locally:
pip install -e <path-to-this-repo> # -e means Install  a  project  in editable mode (i.e.  setuptools "developmode")
# Work on utility..submit pull requestUpdate history0.19 Added sandboximport utilityobp sandboximport --example0.0.9
Switch to useOBP_API_HOSTinstead ofOBP_ENDPOINT