BdREN Finance
Project description
Setup
you need to add 3 variables in your settings.py file:
# settings.py
BDREN_FINANCE_URL = 'https://finance.bdren.net.bd'
BDREN_FINANCE_AUTH_EMAIL = 'your_username'
BDREN_FINANCE_AUTH_PASSWORD = 'your_password'
Usage
from bdren_finance import finance_login_session
finance_request = finance_login_session()
Example
from django.conf import settings
from bdren_finance import finance_login_session
finance_request = finance_login_session()
def get_accounts(session, query: str, _type: str = "all", field: str = "no") -> dict:
"""
Get accounts from BdREN Finance API
:param session:
:param query:
:param _type: all, parent, sub
:param field: no, name
:return: Dict
"""
url = settings.BDREN_FINANCE_URL + 'account/search/?q=' + query + '&type=' + _type + '&field=' + field
res = session.get(url)
return res.json()
print(get_accounts(finance_request))
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
bdren_finance-1.0.6.tar.gz
(2.0 kB
view hashes)