Skip to main content

Event Fabric API client library

Project description

Python 2 and 3 implementation of Event Fabric API to send events.


The library dependes on the Requests HTTP library, install it with:

pip install requests


see the examples folder for more usage examples

# import the library
>>> import eventfabric as ef

# create a client instance specifying username and password
>>> client = ef.Client("username", "password")

# authenticate, should return True and 200, if not there was an error
>>> client.login()
(True, <Response [200]>)

# create an event instance

# the first parameter is a free form JSON
# value that contains information about the event

# the second is the name of the channel where that event will go to

# the channel is used to subscribe to a stream of events with the same
# channel id
>>> event1 = ef.Event({"name": "Bob", "count": 10}, "")

# send the event, it should return True and 201, if not there was an error,
# make sure to check for authentication errors on long running agents to
# reauthenticate in case your credentials expire
>>> client.send_event(event1)
(True, <Response [201]>)


python tests/



Release history Release notifications

This version


Download files

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

Files for eventfabric, version 0.1.0
Filename, size & hash File type Python version Upload date
eventfabric-0.1.0.tar.gz (3.1 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page