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():
auth_code = '123-456'
access_token = await LaundrifyAPI.exchange_auth_code(auth_code)
laundrify_client = LaundrifyAPI(access_token)
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:
python3 setup.py dist_wheel
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*