/python-bling

A simple Python API Wrapper for Bling ERP

Primary LanguagePythonMIT LicenseMIT

Bling ERP API Wrapper

A simple Python API Wrapper for Bling ERP.

Install

Via Pip:

$ pip install bling

Via GIT:

$ pip install git+https://git@github.com/tcosta84/python-bling.git

Usage

from bling import Api, ApiError

api = Api('your-api-key')

try:
	invoices = api.get_invoices(issued_date=['01/05/2019', '31/05/2019'], situation=7, type='S')
	for invoice in invoices:
		print(invoice['numero'])
except ApiError as e:
	print(e.response)

Testing

$ make test

Security

If you discover any security related issues, please email thiagodacostabr@gmail.com instead of using the issue tracker.

Contributing

Clone the repository:

$ git clone https://github.com/tcosta84/python-bling.git

Create an environment (e.g. with pyenv):

$ pyenv virtualenv bling
$ pyenv activate

Configure development requirements:

$ pip install -r requirements.txt

Credits

License

The MIT License (MIT). Please see License File for more information.