Event notifier with many subscribers support
Project description
event-notifier
Simple python notifier.
Contents
Background
This is the
Installation
pip install event-notifier
Usage
import Notifier
TBD
Example taken from the internet showing how to mark it down inside .md file:
The emit()
function takes three arguments:
- an
event
which is a valid CloudEvent, - a
path
which is the path associated to the function (default:/
) - a
headers
object that represents the headers sent to the gateway (default:{"Content-type": "application/json"}
)
The function returns a request object. If your event has a sync
subscription attached, the fetch
response will have the status code and body from the subscription. If not, the response will return a 202 Accepted
status code with an empty body.
Constructor
TBD
Parameters
url
-string
- optional, Events API URL, default:http://localhost:4000
space
-string
- optional, space name, default:default
configurationUrl
-string
- optional, Configuration API URL. By default, it's the same asurl
but with4001
portconnectorUrl
-string
- optional, Connector API URL. By default, it's the same asurl
but with4002
portaccessKey
-string
- optional, access key for hosted Event Gateway. Access key is required for using Configuration API methods on hosted Event Gateway
Example
import Notifier
notifier = Notifier(["onCreate", "onOpen", "onModify", "onDelete"])
Available Functions
TBD
some Function Name here
TBD
Example
#TBD
some other Function Name here
Utility to print the current configuration.
Example
#TBD
Contribute
TBD
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
event-notifier-0.1.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for event_notifier-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08d3e2a8a1d0c52105a566fc3e56c48f483e282b4640c69d6ca41d89574c5192 |
|
MD5 | 9632cb5edea999d97d08bb7ebf4250c7 |
|
BLAKE2b-256 | 5ee0b83ca8c7564bd6d0937f2ef0299368222713c3039135b462d38fee1701a0 |