aioNanoleaf package
An async Python wrapper for the Nanoleaf API.
Installation
pip install aionanoleaf
Usage
Import
from aionanoleaf import Nanoleaf
Create a aiohttp.ClientSession to make requests
from aiohttp import ClientSession
session = ClientSession()
Create a Nanoleaf instance
from aionanoleaf import Nanoleaf
light = Nanoleaf(session, "192.168.0.100")
Example
from aiohttp import ClientSession
from asyncio import run
import aionanoleaf
async def main():
async with ClientSession() as session:
nanoleaf = aionanoleaf.Nanoleaf(session, "192.168.0.73")
try:
await nanoleaf.authorize()
except aionanoleaf.Unauthorized as ex:
print("Not authorizing new tokens:", ex)
return
await nanoleaf.turn_on()
await nanoleaf.get_info()
print("Brightness:", nanoleaf.brightness)
await nanoleaf.deauthorize()
run(main())
Metadata
Release files for aionanoleaf 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aionanoleaf-0.2.1.tar.gz | 23.8 kB | Without provenance | Details for aionanoleaf-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aionanoleaf-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for aionanoleaf-0.2.1-py3-none-any.whl |
Total release size: 50.9 kB
Release files / aionanoleaf-0.2.1.tar.gz
| Download URL | aionanoleaf-0.2.1.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e00ef56546ab7ed4a6e0897e8b9c7b290da44406d477361bbf5d31d04c454265
|
|
BLAKE2b-256 checksum How to use checksums |
7eb15bc4116e8fdbd7aa8d1660f9a9dbe3a794f7acb50dbdb5588660345cc52e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / aionanoleaf-0.2.1-py3-none-any.whl
| Download URL | aionanoleaf-0.2.1-py3-none-any.whl |
|---|---|
| Size | 27.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34061b35d9b50b528cc135455b0897538a6e5bd69b0775b0393b043cbca87853
|
|
BLAKE2b-256 checksum How to use checksums |
56d8971cb2ff9163bcf9d0100ec383944db2f0168673e8eead2a069ef1be82e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Security for aionanoleaf 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.