Skip to content

brutasse/python-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

PuSH

A python PubSubHubbub library.

  • Author: Bruno Renié and contributors
  • Licence: BSD
  • Compatibility: Python 2.X where X >= 6

This library provides some helpers for implementing PubSubHubbub-enabled applications in python.

Publishing

Publishing some content is as easy as:

Declaring a hub

This is done in your RSS/Atom feed:

<?xml version="1.0"?>
<atom:feed>
  <link rel="hub" href="http://hub.example.com/endpoint" />
…

Pinging the hub

Whenever the content is updated, issue a ping request to the hub you use:

from push.pub import ping_hub, PingError

try:
    ping_hub(topic_url, hub_url)
except PingError as e:
    print "Error while pinging hub, more info available in e.response

Subscribing

Running a hub

About

PubSubHubbub library for Python

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages