Python API for UniFi accesspoints
Project description
unifi_ap
Python API for UniFi accesspoints
Installation
- pip install unifi_ap
Usage
currently this package can only be used by importing it into own python files
import unifi_ap
ap = unifi_ap.UniFiAP("10.0.0.253", "admin")
clients = ap.get_clients()
ssids = ap.get_ssids()
clients_for_ssid = ap.get_clients(for_ssids=["guest"])
- Address/hostname and username are mandatory
- if you don't define a password, ssh keys from the local ssh authentication agent are used
- in addition/alternative to a password you can also define a private key file to be used for the authentication
UniFiAP("10.0.0.253", "admin", keyfile="my-rsa.key")
Features
- get a list of SSIDs that the accesspoint is serving
- get currently connected clients (you can specify the SSIDs for which you want to get the clients - default: all)
Credits
- inspired by https://pypi.org/project/unifi-tracker/
License
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
Built Distribution
File details
Details for the file unifi_ap-0.0.2.tar.gz
.
File metadata
- Download URL: unifi_ap-0.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8e7f19091de4d27c5547772a789f4a744836f3fe896bdc96c6d92049afea7530
|
|
MD5 |
a020b15e54bc64bd671cb5a31b732169
|
|
BLAKE2b-256 |
ddca783efbe0fb66f636d0f417098e235d82f123b63717ecfb39cd05907114bb
|
Provenance
The following attestation bundles were made for unifi_ap-0.0.2.tar.gz
:
Publisher:
publish.yaml
on tofuSCHNITZEL/unifi_ap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
unifi_ap-0.0.2.tar.gz
-
Subject digest:
8e7f19091de4d27c5547772a789f4a744836f3fe896bdc96c6d92049afea7530
- Sigstore transparency entry: 152968330
- Sigstore integration time:
-
Permalink:
tofuSCHNITZEL/unifi_ap@850fbed991f122c36871bd6bee74984fa9d98826
-
Branch / Tag:
refs/tags/v0.0.2
- Owner: https://github.com/tofuSCHNITZEL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yaml@850fbed991f122c36871bd6bee74984fa9d98826
-
Trigger Event:
release
-
Statement type:
File details
Details for the file unifi_ap-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: unifi_ap-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
551c28b5a652aa93efb749f86f584984f675eddb6a235e780568d1576e4cd112
|
|
MD5 |
b7fe5a2744273df991cb9d5c0b34e295
|
|
BLAKE2b-256 |
8f2a335bc0ca6d4bf87af597123699d25f9b04df4c014d0577d33cf79c131b14
|
Provenance
The following attestation bundles were made for unifi_ap-0.0.2-py3-none-any.whl
:
Publisher:
publish.yaml
on tofuSCHNITZEL/unifi_ap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
unifi_ap-0.0.2-py3-none-any.whl
-
Subject digest:
551c28b5a652aa93efb749f86f584984f675eddb6a235e780568d1576e4cd112
- Sigstore transparency entry: 152968331
- Sigstore integration time:
-
Permalink:
tofuSCHNITZEL/unifi_ap@850fbed991f122c36871bd6bee74984fa9d98826
-
Branch / Tag:
refs/tags/v0.0.2
- Owner: https://github.com/tofuSCHNITZEL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yaml@850fbed991f122c36871bd6bee74984fa9d98826
-
Trigger Event:
release
-
Statement type: