Python library for connecting and interacting with an EMO pet
Project description
emo-connect-python
Python library for connecting and interacting with an EMO pet
Usage
pip install emo-connect-python
Example
import asyncio
import json
import logging
from emoconnect.EmoConnectManager import EmoConnectManager
from emoconnect.ble.request import StateRequest
logging.basicConfig(format='[EMO] %(asctime)s %(levelname)s %(message)s')
logger = logging.getLogger()
# can be changed to logging.DEBUG for debugging issues
logger.setLevel(logging.INFO)
async def main():
ecm = EmoConnectManager()
await ecm.connectToEmo()
state = await ecm.sendRequest(StateRequest.everything())
print(state)
await ecm.disconnect()
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emo_connect_python-0.1.1-py3-none-any.whl.
File metadata
- Download URL: emo_connect_python-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cef87f156d36148c756ffaa0107a927749afdb004016147cbda0bb7d1877dc86
|
|
| MD5 |
60d1eda64cb68ea206a10fb189173865
|
|
| BLAKE2b-256 |
8a0144865a143347b17d4767dd8aa5066458c9618e7c7bd85a32e9cb20c67822
|