A simple python client for Bestoon Project
- Install
pythonin your system. - Clone the project using:
git clone https://github.com/Nimaebrazeh/bestoon-python-client. - Install requirements package using
pip install -r requirements.txt
You can set your API token key first with instance of client:
bestoon = Bestoon(YOUR-TOKEN) # make an Bestoon object and set API token to YOUR-TOKENIf you forgot API token key, use login() method instead of above way (This method returns your API token):
bestoon = Bestoon() # make an Bestoon object
bestoon.login(YOUR-USERNAME, YOUR-PASSWORD) # return API token
bestoon.set_token(YOUR-TOKEN) # set API token to YOUR-TOKENSet your expense with amount and text in arguments
bestoon.set_expense('30000', 'Test')Set your income with amount and text in arguments
bestoon.set_income('50000', 'Test')Get your expenses with number(optional) in arguments
bestoon.get_expenses() # return all expenses as json format
bestoon.get_expenses(5) # return last 5 expenses as json formatGet your incomes with number(optional) in arguments
bestoon.get_incomes() # return all incomes as json format
bestoon.get_incomes(5) # return last 5 incomes as json formatYou can manage your general status of expenses and incomes.
bestoon.get_general_status() # return amount count and amount sum of all incomes and expenses- add fromdate and todate arguments to get_general_status() method
- export data to csv
- export data to chart
The MIT License (MIT). Please see License File for more information.