Hello Unraiders,
I've just a released a beta version of a Python module I've been working on for a while now. It's called pyunraid and allows you to communicate with your Unraid server using python. It supports Python 3.4 and up and is available to install via pip. Documentation can be found here: https://pyunraid.simse.io/docs. Pypi page is here: https://pypi.org/project/pyunraid/. Github is here: https://github.com/simse/pyunraid.
I'm not trying to promote myself or anything, I'd just be very happy if some of you would try it out and report any bugs, since I've only been able to test it against my own server.
Install using: pip install pyunraid OR python3 -m pyunraid OR pip3 install pyunraid
Small code sample:
from pyunraid import Unraid
# Connect to Unraid server
unraid = Unraid('192.168.0.4', USERNAME, PASSWORD)
# Get all Docker containers
containers = unraid.containers()
# Restart all containers
for container in containers:
container.restart()
# Get all plugins
plugins = unraid.plugins()
# Print all plugin names
for plugin in plugins:
print(plugin.name)