Skip to main content

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

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unifi_ap-0.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

unifi_ap-0.0.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for unifi_ap-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8e7f19091de4d27c5547772a789f4a744836f3fe896bdc96c6d92049afea7530
MD5 a020b15e54bc64bd671cb5a31b732169
BLAKE2b-256 ddca783efbe0fb66f636d0f417098e235d82f123b63717ecfb39cd05907114bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for unifi_ap-0.0.2.tar.gz:

Publisher: publish.yaml on tofuSCHNITZEL/unifi_ap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for unifi_ap-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 551c28b5a652aa93efb749f86f584984f675eddb6a235e780568d1576e4cd112
MD5 b7fe5a2744273df991cb9d5c0b34e295
BLAKE2b-256 8f2a335bc0ca6d4bf87af597123699d25f9b04df4c014d0577d33cf79c131b14

See more details on using hashes here.

Provenance

The following attestation bundles were made for unifi_ap-0.0.2-py3-none-any.whl:

Publisher: publish.yaml on tofuSCHNITZEL/unifi_ap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page