A lightweight command light interface to the Ubiquiti Networks Unifi REST API (tested with version 5).
For a more comprehensive interface, see unifi-api.
To install:
$ pip install --editable .
Run:
$ unicli --help
List all the clients:
$ unicli --host mycontroller --port 8443 --no-verify --user ubnt --site default list
Block a client:
$ unicli --host mycontroller --port 8443 --no-verify --user ubnt --site default block 01:23:45:67:89:ab