This is a python library that gives an interface for implementing various API providers.
Reach us out at hello@aerele.in to connect with our team.
GNU/General Public License (v3) (see license.txt)
The Banking API code is licensed as GNU General Public License (v3) and the copyright is owned by Aerele Technologies Pvt Ltd (Aerele) and Contributors.
To install Python package from github, you need to clone the repository
git clone https://github.com/aerele/bankingapi.git
Then just run the setup.py file from the repo directory
sudo python setup.py install
Create the CommonProvider object and you will be ready to call api.
The following is an example code block on how to use bankingapi.
import banking_api
from banking_api.common_provider import CommonProvider
prov = CommonProvider('Test')
balance = prov.fetch_balance()
stmt = prov.fetch_statement()
print(balance)
print(stmt)
- Provider name - Capitalize the first letters eg: Test Provider
- Provider's python file name - Snake Case eg: test_provider
- Class name - Camel Case eg: TestProvider
Just create a provider's api python file inside banking_api module
fetch_balancefetch_statementinitiate_transaction_without_otpinitiate_transaction_with_otpget_transaction_statussend_otpfetch_statement_with_pagination
- Refer Common Provider and Test API Provider for request and response format.
- If
transaction_type_mappingnot found for your api provider. Just include it under theCommon Providerinit function.
- Need to test
fetch_statement_with_paginationAPI.