Skip to content

Instantly share code, notes, and snippets.

@joestringer
Created January 22, 2013 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joestringer/4592811 to your computer and use it in GitHub Desktop.
Save joestringer/4592811 to your computer and use it in GitHub Desktop.
from pymongo import MongoClient
c = pymongo.Connection('127.0.0.1', 27017)
c.db.collection_names()
chan1 = c.db['rfclient<->rfserver']
chan2 = c.db['rfserver<->rfproxy']
for entry in chan1.find():
print(entry)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment