Last active
February 26, 2017 20:56
-
-
Save clcain/f2ed17b20de7826f306dfeebdff35dd5 to your computer and use it in GitHub Desktop.
RabbitMQ Credentials
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
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