laundrify_aio
laundrify_aio is a python package to communicate with the laundrify API.
It has primarily been developed for the Home Assistant integration.
Usage Example
import asyncio
from laundrify_aio import LaundrifyAPI
async def main():
# Generate a new AuthCode in the laundrify App (`Smart-Home Integration -> Home Assistant -> Integration aktivieren`)
auth_code = '123-456'
# exchange your auth code for a long-lived access token
access_token = await LaundrifyAPI.exchange_auth_code(auth_code)
# initialize a new client with the previously obtained access token
laundrify_client = LaundrifyAPI(access_token)
# get all machines
machines = await laundrify_client.get_machines()
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Development/Build
To build and publish the package, run the following:
# Use the custom `dist_wheel` command that stashes uncommitted changes and runs `sdist` and `bdist_wheel`
python3 setup.py dist_wheel
# Make sure the long description will render correctly
twine check dist/*
# (optional) upload to TestPyPI
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# upload to PyPI
twine upload dist/*
Metadata
Release files for laundrify-aio 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| laundrify_aio-1.2.2.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| laundrify_aio-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / laundrify_aio-1.2.2.tar.gz
| Download URL | laundrify_aio-1.2.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd6cc50dc0f9bd046ee501127cd13070e1878331a9627a16e61a45741ca5e0df
|
|
BLAKE2b-256 checksum How to use checksums |
8585652b1666284fd0fd98af73b7704afa55f2bc5d8a44616069a30f978e45b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.8.10
|
Release files / laundrify_aio-1.2.2-py3-none-any.whl
| Download URL | laundrify_aio-1.2.2-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
613d3d3be3ec485919088ee7736c66bd1f5c53e9ddf1532aeffc0070b63d114c
|
|
BLAKE2b-256 checksum How to use checksums |
f950884bcd931dcc27854a760a04df6fc03b71492f9e6db4cd4feae7bca0a312
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.8.10
|