Page 1 of 1

Python API and config/device info

Posted: Tue Jan 18, 2022 4:03 am
by smallsam
Hi All,

It would be great to see an official python API client but given the work on APIv3 it makes sense to base it on that.

In the meantime I had some specific use cases pulling the device information and backups from Unimus so wrote the following:
https://gist.github.com/smallsam/23e933 ... f5db16c9e3

If there's interest (and I find time), I'll wrap it in a python module so we can collaborate on it.

It's based on currently available APIs and might be useful if you're trying to get device lists or backups from Unimus. It has one notable feature that's currently a little tricky to automate, downloading a config from a device on demand. Rather than use other python ecosystem tools we find value in talking to unimus to get the config. A) it helps keep unimus up to date B) unimus is already configured to talk to all other different device platforms.

Sam

Re: Python API and config/device info

Posted: Tue Jan 18, 2022 6:11 pm
by mrhone
Hello,

We are currently working on a Python API client for Unimus. It should be released in the near future, and I will post an update here for you when it is. It is currently on API v2, but will be updated in the future to v3.

Re: Python API and config/device info

Posted: Tue Feb 08, 2022 2:38 am
by smallsam
So it turns out I did push up my work to github, but haven't pushed it all the way to pypi. https://github.com/smallsam/pyunimus

Would be happy for the Unimus team to take this on if it is useful.