New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

laundrify-aio

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laundrify-aio

A Python package to communicate with the laundrify API

  • 1.2.2
  • PyPI
  • Socket score

Maintainers
1

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/*

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc