Beta Open Bank Project Python Utilities
Project description
Open Bank Project CLI
A command line utility (CLI) to work with the Open Bank Project sandbox called obp
.
With the obp cli you can:
- Initiate an api connection to the sandbox
- note you still need to sign-up from the sandbox homepage first to create your username & password
- Get your DirectLogin token
- Get your user information
- Get your user id
- Get banks
- Get (your) accounts held at the bank
Also, depending on your account access you may:
- Create a bank account
- Add roles to a user
- Import/Delete branches
- Import dummy bank data
Install
- Requires python3
- Requires pip (see https://pip.pypa.io/en/stable/installing/)
pip install --user obp-python # Requires at least python 3
Warning: If your operating system defaults to python 2, your pip command might be:
pip3 install --user obp-python
#or
pip3.6 install --user obp-python
Usage
Usage: obp [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
addaccount 📁 Add a bank account
addrole 🚧 Add a role for current user
adduser 📝 Add a user
deletebranches ⚠️ 🏦 Delete all branches
getaccountsheld 📁 Get list of accounts held
getauth 🔑 Get your DirectLogin token
getbanks 🏦 Get list of banks
getuser 😃 Get your user info
getuserid 📋 Get your user id
importaccounts 🚜 Import accounts from spreadsheet template
importbranches 🚜 Import branches from spreadsheet template
importusers 🚜 Import users from spreadsheet template
init 💡 Initalize connection to your Open Bank Project instance
sandboximport 🚜 Bulk import sandbox data from json input
Examples
You must initalize the obp cli once, by doing:
obp init
Generate Direct Login Token
obp 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 token
Contributing
Note You 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 request
Update history
- 0.19 Added sandboximport utility
obp sandboximport --example
- 0.0.9
Switch to use
OBP_API_HOST
instead ofOBP_ENDPOINT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
obp_python-0.194.tar.gz
(19.0 kB
view details)
Built Distribution
File details
Details for the file obp_python-0.194.tar.gz
.
File metadata
- Download URL: obp_python-0.194.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc0aecd902e7977ae2de7b911243b0cb731c79a3fd19b57764e8ca37b4ae52a5 |
|
MD5 | 9ac911ee801bd98d2435f1cd5e520132 |
|
BLAKE2b-256 | 5aa0c764901849d4dbc458adc050592418feaff4312af4d4de6e3937f0c71e84 |
File details
Details for the file obp_python-0.194-py3-none-any.whl
.
File metadata
- Download URL: obp_python-0.194-py3-none-any.whl
- Upload date:
- Size: 36.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d27e0453273698f3d4b9f902a3c55c8546b972a7dbe9fe643456e48904cc81ec |
|
MD5 | 9e0cec8bb61cadce6c67259e3007947c |
|
BLAKE2b-256 | 60018e538e0bce1e5a97d75e551f62bc2b79275132722ea6479a4dc2e97ccd92 |