Created
May 13, 2018 14:05
-
-
Save davideuler/60c57bf6377360632a9985787623064c to your computer and use it in GitHub Desktop.
Script to publish message to NSQ by python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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