exactonline
exactonline copied to clipboard
Exact Online (accounting software) REST API Library in Python
the _rest_to_result_data_and_next in unwrap.py expects multiple results, and so this function does not work (valueerror) when only one entry/result is returned. This is because the "results" (and "__next") key is...
If I'm not mistaken a new connection (Request) is made for every request. Would you accept a PR to keep-alive existing connections (this creates a huge speedup on subsequent connections)?
- Added support for bulk API calls - Added support for beta API calls Example usage: **beta** - `api.restv1(GET('financial/GLAccountClassificationMappings'), beta=True)` **bulk** - `api.restv1(GET('Financial/TransactionLines'), bulk=True)` If you are routinely pulling all...
PRs are welcome!
Hello! We've been using this client in a Django application environment for quite some time now and several times we've had the issue that the connection was lost and we...
Hi, I recently needed to fetch some data only available via a `beta` API call. I have also added support for the Bulk API. The PR can be found here:...
We should move the ledger_lines from dicts() to proper objects. Right now this is a kludge: see 698d0233d4398a14f79064b2c519995b393263a3 and see bosso-commit: ``` commit 0437faaebffe56eba7f2fa065f03e10951bbfb20 Date: Tue Sep 4 14:23:24 2018...
``` for ledger_line in self.get_ledger_lines(): # We must use VATCode. It accepts VATPercentages, but only # when it is higher than 0. Not using: # 'VATPercentage': str(ledger_line['vat_percentage'] / 100) if...
Moving that code increases readability because it removes the long if-block.
By splitting the try/except/finally into a separate function, we get cleaner code at practically no cost.