Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Seems like most people want to know about receiving before sending, a…

…ctually.
  • Loading branch information...
commit 494f2e83da1098d8711a5e0e68ec4f559776d1a2 1 parent 5bd75de
@ralphbean ralphbean authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 doc/index.rst
View
18 doc/index.rst
@@ -13,6 +13,24 @@ The quickest way to see what the bus is all about is to jump into
``#fedora-fedmsg`` on the freenode network. There's a firehose bot there
echoing messages to channel.
+Receiving Messages with Python
+------------------------------
+
+.. code-block:: python
+
+ import fedmsg
+
+ # Yield messages as they're available from a generator
+ for name, endpoint, topic, msg in fedmsg.tail_messages():
+ print topic, msg
+
+Receiving Messages from the Shell
+---------------------------------
+
+.. code-block:: bash
+
+ $ fedmsg-tail --really-pretty
+
Publishing Messages with Python
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please sign in to comment.
Something went wrong with that request. Please try again.