Ubiquiti Unifi REST API Client.
Project description
# unifi_client
Install it via
```bash
pip install unifi_client
```
## Usage
```python
from unifi_client import AirMaxAPIClient
unifi = AirMaxAPIClient(
url="https://air.max.example.com",
username="username",
password="password",
verify=False,
proxy="socks5h://localhost:5050"
)
unifi.login() # Login to device
unifi.statistics() # Get all the statistics from device
unifi.logout() # Logout from device
```
Install it via
```bash
pip install unifi_client
```
## Usage
```python
from unifi_client import AirMaxAPIClient
unifi = AirMaxAPIClient(
url="https://air.max.example.com",
username="username",
password="password",
verify=False,
proxy="socks5h://localhost:5050"
)
unifi.login() # Login to device
unifi.statistics() # Get all the statistics from device
unifi.logout() # Logout from device
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
unifi_client-0.0.1.2.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file unifi_client-0.0.1.2.tar.gz
.
File metadata
- Download URL: unifi_client-0.0.1.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d9cd1f2759b81d4fce9b276ab528cb64848f60a3b0d1258780b0eb928499264 |
|
MD5 | 40aa8331f22081598b5da354e876df57 |
|
BLAKE2b-256 | 03d699cd7d8e492a069aa0ff075b5c2dcdf31004a054845d759c1773d906f402 |
File details
Details for the file unifi_client-0.0.1.2-py3-none-any.whl
.
File metadata
- Download URL: unifi_client-0.0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7da404ad0c8b90c3e654ad08f1760a152189230f6a7ae43e3417efdee891f600 |
|
MD5 | df84d293e17bb0daf281ffc13023fd1a |
|
BLAKE2b-256 | f0cbe23a467a6453fd574fa377fe48de4fbfc8066734281cb31eb61b3e37c486 |