Serverboards python bindings
Project description
# Python3 Serverboards bindings
This python module allows to create plugins in the Python programming language for Serverboards.
Serverboards is a Server Management, Automation and Monitoring platform.
It uses JSON RPC over stdin/stdout to allow plugins to extend the core functionality; even the core functionality is programmed using this very same bindings.
There are two versions:
sync.py – Classic Python. Blocks on every call although it does some tricks to allow some concurrent async code. It is very limited and its very difficult to do some kind of highly concurrent stuff. Only recommended as a basic start and for very simple plugins.
async.py – Curio based bindings that allow to reliably have several concurrent requests at the same time, each may be blocked doing some async work, as remote requests and so on.
Currently the sync version is more tested, but all future development will be done on the async version.
Both provide the following basic building blocks:
## @rpc_method
Decorator over every function that is exported to the RPC.
## rpc.call(method, *args, **kwargs) / rpc.event(method, *args, **kwargs)
Perform remote calls or events. Events do not wait for a response.
## rpc.subscribe(event, callback)
Subscribe to a remote event. The callback will be called when that event is emitted from the core.
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 serverboards-18.4b1.tar.gz
.
File metadata
- Download URL: serverboards-18.4b1.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20a455d7747964d24c0f90c4d1643344c2ad25b1e218ad29036dbcb44ed89376 |
|
MD5 | 968b3e096720d138e2462ae07a5de949 |
|
BLAKE2b-256 | 2c613041a9d65f7b5c7d17b685833c5ceaa83d5672b92eada4f2ed2883d2f459 |