# pyMAdot2
<img src="https://xom.malighting.com/xom-rest/assets/da4da7d0-4cfe-40da-9023-4fa866e38f25/preview?access_token=A9OYsVma9vxvXaaqzsVFtsR6K14&mimeType=image%2Fpng&width=1170&height=700" width=20% height=20%>
Asynchronous library to control [MA Lighting dot2](https://www.malighting.com/de/produktarchiv/produkt/dot2-core-120211/) light console.
**This library is under development**
## Requirements
- Python >= 3.10
- aiohttp
## Install
```bash
pip install pyMAdot2
```
## Example
```python
from pymadot2 import Dot2
import asyncio
import aiohttp
async def main():
async with aiohttp.ClientSession() as session:
await run(session)
async def run(session):
console = await Dot2.create(
session,
"127.0.0.1",
"test"
)
await console.command("Fixture 1")
await console.command("At 100")
await asyncio.sleep(1)
await console.disconnect()
asyncio.run(main())
```
Raw data
{
"_id": null,
"home_page": "https://github.com/elektr0nisch/pyMAdot2",
"name": "pyMAdot2",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "",
"author": "Linus Groschke",
"author_email": "linus@elektronisch.dev",
"download_url": "https://files.pythonhosted.org/packages/2a/22/52b3ecda12532991f96301ed68cef239cc2b3cd405408455774266692d20/pyMAdot2-0.0.3.tar.gz",
"platform": "any",
"description": "# pyMAdot2\r\n\r\n<img src=\"https://xom.malighting.com/xom-rest/assets/da4da7d0-4cfe-40da-9023-4fa866e38f25/preview?access_token=A9OYsVma9vxvXaaqzsVFtsR6K14&mimeType=image%2Fpng&width=1170&height=700\" width=20% height=20%>\r\n\r\nAsynchronous library to control [MA Lighting dot2](https://www.malighting.com/de/produktarchiv/produkt/dot2-core-120211/) light console.\r\n\r\n**This library is under development**\r\n\r\n## Requirements\r\n\r\n- Python >= 3.10\r\n- aiohttp\r\n\r\n## Install\r\n```bash\r\npip install pyMAdot2\r\n```\r\n\r\n## Example\r\n\r\n```python\r\nfrom pymadot2 import Dot2\r\n\r\nimport asyncio\r\nimport aiohttp\r\n\r\nasync def main():\r\n async with aiohttp.ClientSession() as session:\r\n await run(session)\r\n\r\nasync def run(session):\r\n console = await Dot2.create(\r\n session,\r\n \"127.0.0.1\",\r\n \"test\"\r\n )\r\n\r\n await console.command(\"Fixture 1\")\r\n await console.command(\"At 100\")\r\n await asyncio.sleep(1)\r\n await console.disconnect()\r\n\r\nasyncio.run(main())\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python library for MA Lighting dot2 console",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/elektr0nisch/pyMAdot2"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2a2252b3ecda12532991f96301ed68cef239cc2b3cd405408455774266692d20",
"md5": "e714074718fe30f178291c0d9e455142",
"sha256": "da269deb721c029b9ea4e9594cabd2e3ef74ba86b79c23f54493d7314e6a9a6c"
},
"downloads": -1,
"filename": "pyMAdot2-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "e714074718fe30f178291c0d9e455142",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 3502,
"upload_time": "2023-05-20T08:22:01",
"upload_time_iso_8601": "2023-05-20T08:22:01.279475Z",
"url": "https://files.pythonhosted.org/packages/2a/22/52b3ecda12532991f96301ed68cef239cc2b3cd405408455774266692d20/pyMAdot2-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-20 08:22:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "elektr0nisch",
"github_project": "pyMAdot2",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pymadot2"
}