Permalink
Browse files

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

…ctually.
  • Loading branch information...
1 parent 5bd75de commit 494f2e83da1098d8711a5e0e68ec4f559776d1a2 @ralphbean ralphbean committed Mar 3, 2014
Showing with 18 additions and 0 deletions.
  1. +18 −0 doc/index.rst
View
@@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 comments on commit 494f2e8

Please sign in to comment.