Skip to main content

Unifi Python API

Project description

Unifi Python Voucher API

PyPI PyPI - License

This API contains a Unifi API wrapper specifically for creating vouchers programmatically.

Usage

from unifi import unifi
api = Unifi("foo", "bar", "http://unifi.local")
vouchers = api.generate_voucher(expire=42, usages=23)
for voucher in vouchers:
    print(voucher["code"])

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

unifipy-1.0.4.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unifipy-1.0.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file unifipy-1.0.4.tar.gz.

File metadata

  • Download URL: unifipy-1.0.4.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for unifipy-1.0.4.tar.gz
Algorithm Hash digest
SHA256 bb3615715886ddd5419f75783c39a17421088ab64a4616b86b9fa98501bef3e7
MD5 f72e39a785c1b3d3a11aded03cfb3989
BLAKE2b-256 b58f658e406e0d03003a0d180f394fe8bc1fe1ea048404e33f2bc7899dc615cb

See more details on using hashes here.

File details

Details for the file unifipy-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: unifipy-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for unifipy-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 377a90fd7cfcfb6375f8790af98b9c843f5185aa2f344160efb867edd7984fe2
MD5 94769e381e380d081f122bd5adad8618
BLAKE2b-256 493018eb6fe7fe94ce10302b2d5a488c3375cf550181f813e4790725885da381

See more details on using hashes here.

Supported by

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