Skip to main content

A ubersmith remote module server

Project description

https://travis-ci.org/internap/python-ubersmith-remote-module-server.svg?branch=master

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ubersmith-remote-module-server-1.1.1.tar.gz (11.7 kB view details)

Uploaded Source

File details

Details for the file ubersmith-remote-module-server-1.1.1.tar.gz.

File metadata

File hashes

Hashes for ubersmith-remote-module-server-1.1.1.tar.gz
Algorithm Hash digest
SHA256 fc013013c23692a18af82fafeb63c4e26036edc6deff1fe26cad0c8907cc772f
MD5 9ceeef9fa4f30709daf34e01e56dca51
BLAKE2b-256 d790878b04b89d2644900be6f1c5d2aa2895769a405aee7b5d1f68b98deabf21

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page