Skip to content

Repository files navigation

Unifi Python API

A python implementation of the Unifi controller API

Instalation

$ pip install unifi-python-api

Progress

For now, only the guest manager calls have been implemented (because that's my current use for this API). I'm working on the tests then i'll move on to the statistics calls.

Example usage

fromunifi_apiimportUnifiClientunifi_controller_url='https://example.com:8443'# Create the client then loginclient=UnifiClient(unifi_controller_url)
client.login(username="example", password="example")
# Or both at onceclient=UnifiClient(unifi_controller_url, username="example", password="example")
# Then use freely, if the session expires another login will be made automatically# Example: authorize client for an hourclient.authorize_guest("AA-BB-CC-DD-EE-FF", 60)

TODO:

  • make tests with pytest
  • statistics calls

Credits

Translated from the Unifi API client in php:

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages