Code is under development and not suitable for inclusion in other projects. If you'd like to contribute, fork and submit a PR with your changes. If there is a feature you'd like to see, open a feature request in the issues section.
import unifi
client = unifi.Client('username', 'password', 'unifi_controller_ip')
# Get Sites
print(client.get_sites())
# Get Networks
print(client.get_networks())
# Get sysinfo for all sites
print(list(map(lambda site: client.get_system(site), client.get_sites())))
# Get sysinfo for a single site
site = client.get_site('default')
print(client.get_system(site))