Skip to main content

Event notifier with many subscribers support

Project description

Upload Python Package

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 as url but with 4001 port
  • connectorUrl - string - optional, Connector API URL. By default, it's the same as url but with 4002 port
  • accessKey - 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


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.5.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

event_notifier-0.1.5-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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