Giter Club home page Giter Club logo

sleekpubsub's Introduction

SleekPubsub is an XMPP Publish-Subscribe implementation that aims to be a creative and flexible solution to your publish-subscribe needs.
SleekPubsub implements a XEP-0060 interface, an HTTP RESTful interface, a XEP-0050 (Ad Hoc Commands) interface, and a bot/chat interface.

Credits
-------
Author: Nathan Fritz
jid: xmpp:[email protected]

Contributors: Michael Garvin

Unusual Features
----------------
- many node types -- start by overriding leaf and create your own behavior
- <body xmlns='jabber:client' /> payloads can optionally create chat IM without pubsub payload.
- subscribe to the component and it can automatically subscribe you to a node
- subscribe to a node and the full jid that you subscribe to can be the source of all of your updates, rather than the bare component jid

RESTful Interface
-----------------
All HTTP calls are protected with http-auth which is configured in the ini [rest] section

So far:

GET		/default/
	get the default config in json

POST	/node/[node]
	create or reconfigure node w/ config via json

GET		/node/[node]
	retrieve config in json

DELETE	/node/[node]
	remove a node

GET		/subscribe/[node]?jid=[jid]
	subscribe a jid to node

GET		/unsubscribe/[node]?jid=[jid]&subid=[subscription id]
	unsubscribe a jid from a node

POST	/publish/[node]
	publish to a node via xml body

GET		/affiliation/[node]
	get node affiliations

POST	/affiliations/[node]
	update node affiliations

**NOTE: POSTS needs to be content-type of text/json or text/xml


Usage: publish_subscribe.py [options]
-------------------------------------
Options:
  -h, --help            show this help message and exit
  --daemon              run as daemon
  -q, --quiet           set logging to ERROR
  -d, --debug           set logging to DEBUG
  -v, --verbose         set logging to COMM
  -c CONFIGFILE, --config=CONFIGFILE
                        set config file to use

Requirements
------------
SleekXMPP github master (will tag a release soon)
Python 3.x (will make 2.6 compatible soon)

Quickstart
----------
See INSTALL file

Gotchas
-------
- The sqlite3 db will not work if you switch between python2.6 and 3.x

sleekpubsub's People

Contributors

fritzy avatar saggim avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.