inventree / inventree-python

Python library for communication with inventree via API
https://docs.inventree.org/en/latest/api/python/python/
MIT License
26 stars 34 forks source link

Add functions to easily download template files, create new labels/reports, and update settings #212

Closed miggland closed 5 months ago

miggland commented 7 months ago

This adds convenience functions which make it easier to use the API to create and update labels and reports using local files. It allows downloading template files from the server, which can be a good starting point.

If you agree with adding these functions I can add some tests.

miggland commented 6 months ago

Well, I got it down to one error.. :)

It seems that the Build Report endpoint really doesn't allow PATCH, even though the API docs say it should.

This needs some more investigation, but not tonight. I'll get back on it soon.

miggland commented 5 months ago

Alright, tests added. I've skipped one due to https://github.com/inventree/InvenTree/issues/6213

This shouldn't stop the python binding, though. Ready!

SchrodingersGat commented 5 months ago

Nice work, thanks @miggland :)