============
A basic framework for building RMAS adapters
This package will create for you a skeleton rmas adapter, it will know how to connect to
and poll an rmas bus for events, and when an event is detected, it can be configured to
send the payload of those events to the event handlers that you specify.
Installation
============
Either clone from github: [git://github.com/UoK-Psychology/rmas_adapter.git](git://github.com/UoK-Psychology/rmas_adapter.git) then do
`python setup.py install`
or:
`pip install RMASAdapter`
Configuring
===========
To create your adapter skeleton, you will need to run the `rmas_adapter_admin.py` script
as follows:
```
python rmas_adapter_admin.py create --name <adapter name>
--target <directory to generate code into>(optional)
```
When this command has run, it will have created the adapter skeleton in a directory with the
same name as the `--name` argument. This adapter skeleton contains:
* runner.py - Use this to start your adapter running
* settings.py - Basic settings for the adapter, and configuration point for adding your functionality
The settings file must contain valid settings for:
RMAS\_BUS\_WSDL : the url to the RMAS ESB
POLL\_INTERVAL : the number of milliseconds to wait between polling
If you want your adapter to do anything then you will need to also specify:
EVENTS: this configures the events that you want your adapter to respond to and looks like:
`[('<RMAS_EVENT_NAME>,'path.to.handler.module'),]`
Your handler module must specify a function that has the following signature, when the configured event is received the poller will send the payload to this function for you to handle as you wish:
```
def handle_event(payload):
'''
Do something cool!
'''
```
Metadata
Release files for RMASAdapter 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| RMASAdapter-0.1.4.tar.gz | 6.5 kB | Without provenance | Details |
Release files / RMASAdapter-0.1.4.tar.gz
| Download URL | RMASAdapter-0.1.4.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5d8b20531316c9ee5316cd4ebc723b28c77d4ed4943135d2c0aefd77f86491c
|
|
BLAKE2b-256 checksum How to use checksums |
cc9afe127205572d33dd0c0aaa753578fc2d59be6099dc1adbf6c5930297bc1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for RMASAdapter 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.