A ubersmith remote module server
Project description
ubersmith-remote-module-server
Standardizing on the proposed ubersmith webhook format (method, params, env and callback), this aims to be an easy way to serve any python object as a Übersmith remote module.
Mission
Offer an easy way to write device, order and service modules, in python, with as few lines of code as possible.
Vision
A remote “hello world” device module should fit under 20 lines.
Values
Everything should be tested and easy to understand.
Example
>>> from ubersmith_remote_module_server import server >>> class MyDeviceModule(object): ... def hello(self, env): ... return "world" ... >>> s = server.Server({'my_device_module': MyDeviceModule()}) >>> s.run() * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
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
Close
Hashes for ubersmith-remote-module-server-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e68d66d58e39782f78d49277e4fab40a157b371f0bc4a03bba5bd994a4f21a8f |
|
MD5 | 6dfa94b33654604b9b95c1e89d646005 |
|
BLAKE2b-256 | 66de992ca8911357a48a50691e59e5622d35c86a7a0695e70b39d653bca02fc7 |