laundrify-aio


Namelaundrify-aio JSON
Version 1.2.2 PyPI version JSON
download
home_pagehttps://github.com/laundrify/laundrify-pypi
SummaryA Python package to communicate with the laundrify API
upload_time2024-07-03 10:41:23
maintainerNone
docs_urlNone
authorMike Mülhaupt
requires_pythonNone
licenseMIT
keywords home-assistant laundrify
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # laundrify_aio

`laundrify_aio` is a python package to communicate with the [laundrify](https://laundrify.de) API.

It has primarily been developed for the Home Assistant integration.

## Usage Example

```python
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:

```bash
# 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/*
```




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/laundrify/laundrify-pypi",
    "name": "laundrify-aio",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "home-assistant, laundrify",
    "author": "Mike M\u00fclhaupt",
    "author_email": "mike@laundrify.de",
    "download_url": "https://files.pythonhosted.org/packages/85/85/652b1666284fd0fd98af73b7704afa55f2bc5d8a44616069a30f978e45b7/laundrify_aio-1.2.2.tar.gz",
    "platform": null,
    "description": "# laundrify_aio\n\n`laundrify_aio` is a python package to communicate with the [laundrify](https://laundrify.de) API.\n\nIt has primarily been developed for the Home Assistant integration.\n\n## Usage Example\n\n```python\nimport asyncio\nfrom laundrify_aio import LaundrifyAPI\n\nasync def main():\n\t# Generate a new AuthCode in the laundrify App (`Smart-Home Integration -> Home Assistant -> Integration aktivieren`)\n\tauth_code = '123-456'\n\n\t# exchange your auth code for a long-lived access token\n\taccess_token = await LaundrifyAPI.exchange_auth_code(auth_code)\n\n\t# initialize a new client with the previously obtained access token\n\tlaundrify_client = LaundrifyAPI(access_token)\n\n\t# get all machines\n\tmachines = await laundrify_client.get_machines()\n\nif __name__ == \"__main__\":\n\tloop = asyncio.get_event_loop()\n\tloop.run_until_complete(main())\n```\n\n## Development/Build\n\nTo build and publish the package, run the following:\n\n```bash\n# Use the custom `dist_wheel` command that stashes uncommitted changes and runs `sdist` and `bdist_wheel`\npython3 setup.py dist_wheel\n\n# Make sure the long description will render correctly\ntwine check dist/*\n\n# (optional) upload to TestPyPI\ntwine upload --repository-url https://test.pypi.org/legacy/ dist/*\n\n# upload to PyPI\ntwine upload dist/*\n```\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python package to communicate with the laundrify API",
    "version": "1.2.2",
    "project_urls": {
        "Homepage": "https://github.com/laundrify/laundrify-pypi"
    },
    "split_keywords": [
        "home-assistant",
        " laundrify"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f950884bcd931dcc27854a760a04df6fc03b71492f9e6db4cd4feae7bca0a312",
                "md5": "9c6178c41098850c53f7ab7323230bf6",
                "sha256": "613d3d3be3ec485919088ee7736c66bd1f5c53e9ddf1532aeffc0070b63d114c"
            },
            "downloads": -1,
            "filename": "laundrify_aio-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9c6178c41098850c53f7ab7323230bf6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5941,
            "upload_time": "2024-07-03T10:41:21",
            "upload_time_iso_8601": "2024-07-03T10:41:21.352627Z",
            "url": "https://files.pythonhosted.org/packages/f9/50/884bcd931dcc27854a760a04df6fc03b71492f9e6db4cd4feae7bca0a312/laundrify_aio-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8585652b1666284fd0fd98af73b7704afa55f2bc5d8a44616069a30f978e45b7",
                "md5": "c5a75529724b2636d9bded945e80ff65",
                "sha256": "dd6cc50dc0f9bd046ee501127cd13070e1878331a9627a16e61a45741ca5e0df"
            },
            "downloads": -1,
            "filename": "laundrify_aio-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c5a75529724b2636d9bded945e80ff65",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5391,
            "upload_time": "2024-07-03T10:41:23",
            "upload_time_iso_8601": "2024-07-03T10:41:23.681077Z",
            "url": "https://files.pythonhosted.org/packages/85/85/652b1666284fd0fd98af73b7704afa55f2bc5d8a44616069a30f978e45b7/laundrify_aio-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-03 10:41:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "laundrify",
    "github_project": "laundrify-pypi",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "laundrify-aio"
}
        
Elapsed time: 4.78051s