Skip to content

Python Hello World example of Microsoft Azure Event Hub.

License

Notifications You must be signed in to change notification settings

jx1226/python-azure-eventhub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-azure-eventhub

Python Hello World example of Microsoft Azure Event Hub.

Prerequisites

Setup

  • mkvirtualenv -p /usr/local/bin/python3 python-azure-eventhub
  • workon python-azure-eventhub
  • python setup.py develop
  • pytest
  • Set Environment Variables in .env

Run

Send Message

python spike-send.py

Receive Messages

python spike-receive.py

Example Output

➜ python spike-send.py
2019-08-25 15:56:43,183 - Send - INFO - Sending message: Hello, World!
2019-08-25 15:56:43,729 - Send - INFO - Runtime: 0.0870518684387207 seconds
➜ python spike-receive.py
Unable to set external certificates.
2019-08-25 15:56:51,842 - Receive - INFO - Received:<azure.eventhub.common.Offset object at 0x1086d8210>|0-Message:Hello, World!
2019-08-25 15:56:52,803 - Receive - INFO - Received 1 messages in 0.056581974029541016 seconds

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-work
  3. Commit your changes: git commit -am 'Add some work'
  4. Push to the branch: git push origin my-work
  5. Submit a pull request :D

About

Python Hello World example of Microsoft Azure Event Hub.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%