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
File details
Details for the file ubersmith-remote-module-server-1.1.2.tar.gz
.
File metadata
- Download URL: ubersmith-remote-module-server-1.1.2.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e4b7a54c34c66c939c499393057e59d05a79efeed97d48b710f15f143e8568b |
|
MD5 | 6dd8a1420db2c0a666c8faadd8b2b9e9 |
|
BLAKE2b-256 | fa77f14daa9801b730d2175cf03939de4ef98ed45fa554d4d1f1d78019454ed6 |