Skip to main content

AMQP 1.0 Client Library for Python

Project description

uAMQP for Python
================

An AMQP 1.0 client library for Python.


Installation
============

Wheels are provided for all major operating systems, so you can install directly with pip:

.. code:: shell

$ pip install uamqp


If you are running a Linux distro that does not support `ManyLinux1<https://www.python.org/dev/peps/pep-0513>`__, you can install from source:

.. code:: shell

$ apt-get update
$ apt-get install -y build-essential libssl-dev python3-dev uuid-dev cmake python3-pip
$ pip3 install uamqp --no-binary


Python 2.7 support
++++++++++++++++++
Coming soon...


Developer Setup
===============
In order to run the code directly, the Cython extension will need to be build first.

Pre-requisites
++++++++++++++

- Windows: None
- Linux: Install dependencies as descriped above in the installation instructions.
- MacOS: Install OpenSSL and UUID using Homebrew:

.. code:: shell

$ brew install openssl@1.1
$ brew install ossp-uuid

Building the extension
++++++++++++++++++++++

This project has two C library dependencies:

- `Azure uAMQP for C <https://github.com/Azure/azure-uamqp-c>`__
- `Azure Shared Utility <https://github.com/Azure/azure-c-shared-utility>`__

They are vendored in this repository in these versions:
- Azure uAMQP @1.2.0
- Azure C Shared Utility @2018-03-07-temp-pod

To build, start by creating a virtual environment and installing the required Python packages:

.. code:: shell

$ python -m venv env
$ env/Scripts/activate
(env)$ pip install -r requirements.txt

Next, run the build command:

.. code:: shell

$ python setup.py built_ext --inplace

Tests
+++++

The tests can be run from within the virtual environment. The extension must be built first using the instructions above.

.. code:: shell

(env)$ pytest


Provide Feedback
================

If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-uamqp-python/issues>`__
section of the project.


Contributing
============

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.


.. :changelog:

Release History
===============

0.1.0a2 (2018-03-12)
++++++++++++++++++++

- Exposed OPEN performative properties for connection telemetry.
- Exposed setters for message.message_annotations and message.application_properties.
- Made adjustments to connection open and close to facilitate sharing a connection object between send/receive clients.
- Support for username/password embedded in connection URI.
- Clients can now optionally leave connection/session/link open for re-use.
- Updated build process and installation instructions.
- Various bug fixes to increase stability.


0.1.0a1 (2018-03-04)
++++++++++++++++++++

- Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uamqp-0.1.0a2.tar.gz (2.6 MB view hashes)

Uploaded Source

Built Distributions

uamqp-0.1.0a2-cp36-cp36m-win_amd64.whl (699.6 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

uamqp-0.1.0a2-cp36-cp36m-win32.whl (625.1 kB view hashes)

Uploaded CPython 3.6m Windows x86

uamqp-0.1.0a2-cp36-cp36m-manylinux1_x86_64.whl (2.8 MB view hashes)

Uploaded CPython 3.6m

uamqp-0.1.0a2-cp36-cp36m-manylinux1_i686.whl (2.9 MB view hashes)

Uploaded CPython 3.6m

uamqp-0.1.0a2-cp36-cp36m-macosx_10_6_intel.whl (2.1 MB view hashes)

Uploaded CPython 3.6m macOS 10.6+ intel

uamqp-0.1.0a2-cp35-cp35m-win_amd64.whl (692.6 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

uamqp-0.1.0a2-cp35-cp35m-win32.whl (618.7 kB view hashes)

Uploaded CPython 3.5m Windows x86

uamqp-0.1.0a2-cp35-cp35m-manylinux1_x86_64.whl (2.7 MB view hashes)

Uploaded CPython 3.5m

uamqp-0.1.0a2-cp35-cp35m-manylinux1_i686.whl (2.5 MB view hashes)

Uploaded CPython 3.5m

uamqp-0.1.0a2-cp35-cp35m-macosx_10_6_intel.whl (2.0 MB view hashes)

Uploaded CPython 3.5m macOS 10.6+ intel

uamqp-0.1.0a2-cp34-cp34m-win_amd64.whl (710.9 kB view hashes)

Uploaded CPython 3.4m Windows x86-64

uamqp-0.1.0a2-cp34-cp34m-win32.whl (631.2 kB view hashes)

Uploaded CPython 3.4m Windows x86

uamqp-0.1.0a2-cp34-cp34m-manylinux1_x86_64.whl (2.7 MB view hashes)

Uploaded CPython 3.4m

uamqp-0.1.0a2-cp34-cp34m-manylinux1_i686.whl (2.5 MB view hashes)

Uploaded CPython 3.4m

uamqp-0.1.0a2-cp34-cp34m-macosx_10_6_intel.whl (2.0 MB view hashes)

Uploaded CPython 3.4m macOS 10.6+ intel

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page