Skip to content

Instantly share code, notes, and snippets.

@clcain
Last active February 26, 2017 20:56
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 clcain/f2ed17b20de7826f306dfeebdff35dd5 to your computer and use it in GitHub Desktop.
Save clcain/f2ed17b20de7826f306dfeebdff35dd5 to your computer and use it in GitHub Desktop.
RabbitMQ Credentials
username = ''
password = ''
host = ''
virtual_host = ''
credentials = pika.credentials.PlainCredentials(username=username, password=password)
connection = pika.BlockingConnection(pika.ConnectionParameters(host=host,
virtual_host=virtual_host,
credentials=credentials))
channel = connection.channel()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment