Client for Mewa server
Project description
# pymewa
## About
This is Python library which simplifies connection to the [Channel Server](https://github.com/AnthillTech/mewa).
## Requirements
* [WebSocket client](https://github.com/liris/websocket-client)
## Instalation
```bash
pip install mewa
```
## Sample usage pattern
List all devices connected to the channel
```python
from mewa.client import Connection
connection = Connection("ws://mewa.cc/ws")
def onConnected():
connection.getDevices()
def onDevicesEvent(devices):
print("Found devices:")
print(devices)
if __name__ == "__main__":
connection.onConnected = onConnected
connection.onDevicesEvent = onDevicesEvent
connection.connect("test", "python", "pass")
```
## Redistributing
This code is distributed under BSD3 License. It may be freely redistributed, subject to the provisions of this license.
## About
This is Python library which simplifies connection to the [Channel Server](https://github.com/AnthillTech/mewa).
## Requirements
* [WebSocket client](https://github.com/liris/websocket-client)
## Instalation
```bash
pip install mewa
```
## Sample usage pattern
List all devices connected to the channel
```python
from mewa.client import Connection
connection = Connection("ws://mewa.cc/ws")
def onConnected():
connection.getDevices()
def onDevicesEvent(devices):
print("Found devices:")
print(devices)
if __name__ == "__main__":
connection.onConnected = onConnected
connection.onDevicesEvent = onDevicesEvent
connection.connect("test", "python", "pass")
```
## Redistributing
This code is distributed under BSD3 License. It may be freely redistributed, subject to the provisions of this license.
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 Distribution
mewa-0.2-dev.tar.gz
(2.1 kB
view details)
File details
Details for the file mewa-0.2-dev.tar.gz
.
File metadata
- Download URL: mewa-0.2-dev.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5f20079f76cf76a01529de537f1044559b390ae9996e24fd24d60af65fb2b4b |
|
MD5 | afe60883e720979db7619ce9d8406d7f |
|
BLAKE2b-256 | a48ae58b8c1e4681fa514aced62b39dc719a8d34370762f0d37fce78bf9def77 |