Skip to content

Instantly share code, notes, and snippets.

@davideuler
Created May 13, 2018 14:05
Show Gist options
  • Save davideuler/60c57bf6377360632a9985787623064c to your computer and use it in GitHub Desktop.
Save davideuler/60c57bf6377360632a9985787623064c to your computer and use it in GitHub Desktop.
Script to publish message to NSQ by python
import gnsq
conn = gnsq.Nsqd(address='localhost', http_port=4151)
conn.publish('topic_name', 'hello gevent!')
conn.publish('topic_name', 'hello nsq!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment