Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit 8cb85ef

Browse files
authored
Merge pull request #35 from Azure/develop
Replacing proton layer with uAMQP
2 parents a1e0c3b + 3e3c569 commit 8cb85ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+3953
-2153
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ __pycache__/
88

99
# Distribution / packaging
1010
.Python
11-
env/
11+
env*/
1212
build/
1313
develop-eggs/
1414
dist/
@@ -36,6 +36,10 @@ pip-log.txt
3636
pip-delete-this-directory.txt
3737

3838
# Unit test / coverage reports
39+
azure/storage/
40+
azure/common/
41+
azure/profiles/
42+
3943
htmlcov/
4044
.tox/
4145
.coverage
@@ -99,3 +103,5 @@ ENV/
99103

100104
# mypy
101105
.mypy_cache/
106+
.pytest_cache/v/cache/lastfailed
107+
.pytest_cache/v/cache/nodeids

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: python
2+
cache: pip
3+
python:
4+
- "3.6"
5+
# command to install dependencies
6+
install:
7+
- pip install -r dev_requirements.txt
8+
- pip install -e .
9+
script:
10+
- pytest
11+
- python ./setup.py check -r -s
12+
- pylint azure.eventhub
13+
- pylint azure.eventprocessorhost

HISTORY.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
0.2.0b2 (2018-05-29)
7+
++++++++++++++++++++
8+
9+
- Added `namespace_suffix` to EventHubConfig() to support national clouds.
10+
- Added `device_id` attribute to EventData to support IoT Hub use cases.
11+
- Added message header to workaround service bug for PartitionKey support.
12+
- Updated uAMQP dependency to vRC1.
13+
14+
15+
0.2.0b1 (2018-04-20)
16+
++++++++++++++++++++
17+
18+
- Updated uAMQP to latest version.
19+
- Further testing and minor bug fixes.
20+
21+
22+
0.2.0a2 (2018-04-02)
23+
++++++++++++++++++++
24+
25+
- Updated uAQMP dependency.
26+
27+
28+
0.2.0a1 (unreleased)
29+
++++++++++++++++++++
30+
31+
- Swapped out Proton dependency for uAMQP.

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include *.rst

README.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

README.rst

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
Microsoft Azure SDK for Event Hubs
2+
==================================
3+
4+
A Python AMQP client for Azure Event Hubs the provides:
5+
6+
- A sender to publish events to the Event Hubs service.
7+
- A receiver to read events from the Event Hubs service.
8+
9+
On Python 3.5 and above, it also includes:
10+
11+
- An async sender and receiver that supports async/await methods.
12+
- An Event Processor Host module that manages the distribution of partition readers.
13+
14+
15+
Installation
16+
============
17+
18+
Wheels are provided for all major operating systems, so you can install directly with pip:
19+
20+
.. code:: shell
21+
22+
$ pip install azure-eventhub
23+
24+
25+
Examples
26+
+++++++++
27+
28+
- ./examples/send.py - use sender to publish events
29+
- ./examples/recv.py - use receiver to read events
30+
- ./examples/send_async.py - async/await support of a sender
31+
- ./examples/recv_async.py - async/await support of a receiver
32+
- ./examples/eph.py - event processor host
33+
34+
35+
Logging
36+
++++++++
37+
38+
- enable 'azure.eventhub' logger to collect traces from the library
39+
- enable 'uamqp' logger to collect traces from the underlying uAMQP library
40+
- enable AMQP frame level trace by setting `debug=True` when creating the Client
41+
42+
43+
Provide Feedback
44+
================
45+
46+
If you encounter any bugs or have suggestions, please file an issue in the
47+
`Issues <https://github.com/Azure/azure-uamqp-python/issues>`__
48+
section of the project.
49+
50+
51+
Contributing
52+
============
53+
54+
This project welcomes contributions and suggestions. Most contributions require you to agree to a
55+
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
56+
the rights to use your contribution. For details, visit `https://cla.microsoft.com <https://cla.microsoft.com>`__.
57+
58+
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
59+
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
60+
provided by the bot. You will only need to do this once across all repos using our CLA.
61+
62+
This project has adopted the `Microsoft Open Source Code of Conduct <https://opensource.microsoft.com/codeofconduct/>`__.
63+
For more information see the `Code of Conduct FAQ <https://opensource.microsoft.com/codeofconduct/faq/>`__ or
64+
contact `opencode@microsoft.com <mailto:opencode@microsoft.com>`__ with any additional questions or comments.

azure/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
__import__('pkg_resources').declare_namespace(__name__)

0 commit comments

Comments
 (0)