spotware_connect
A python client wraper for Spotware Open API 2 https://connect.spotware.com/docs/open_api_2
Free software: GNU General Public License v3
Documentation: https://spotware_connect.readthedocs.io.
Quickstart
Install with pip:
$ pip install spotware-connect
A sample to request server version:
import spotware_connect as sc
c = sc.Client()
@c.event
def connect():
c.emit("VersionReq")
@c.message(msgtype="VersionRes")
def version(msg, payload, version, **kargs):
print("Server version: ", version)
c.stop()
c.start(timeout=5) # optional timeout in seconds
See the usage in docs for a complete example with App Authorization.
Features
Simple client for connecting, sending and receiving Protobuf Messages
Use decorators to specify wich messages to process
No need to worry about sockets, bytes and message structure
Use abbreviated names for sending and receiving payloads: VersionReq translates to ProtoOAVersionReq
Requests limit 5/second more information about limits here
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Using twisted for network layer
History
0.1.0 (2020-02-25)
First release on PyPI.
Metadata
Release files for spotware-connect 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spotware_connect-0.1.2.tar.gz | 55.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spotware_connect-0.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 107.7 kB
Release files / spotware_connect-0.1.2.tar.gz
| Download URL | spotware_connect-0.1.2.tar.gz |
|---|---|
| Size | 55.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a08cc7b9b7e906c112399c7bf938af91b1bed60d4f68058e9afc42371b296d5f
|
|
BLAKE2b-256 checksum How to use checksums |
0978e2bfbdc62d9ab4145b95ff6f0a771bf4ab828b45b147b1c1c827dd91fcdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1
|
Release files / spotware_connect-0.1.2-py2.py3-none-any.whl
| Download URL | spotware_connect-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 52.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
016bce755426b9b50b1fa81e6121401f4f6dd7aa67485b8356230358797ace73
|
|
BLAKE2b-256 checksum How to use checksums |
21ee431c4dd28f35fcdff575c342c1f663c5214672730a63a0ab180b969a5e42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1
|