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:

$ pip install uamqp

If you are running a Linux distro that does not support ManyLinux1, you can install from source:

$ 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: Setup a build environment.

  • Linux: Install dependencies as descriped above in the installation instructions.

  • MacOS: Install OpenSSL and UUID using Homebrew:

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

Building the extension

This project has two C library dependencies. They are vendored in this repository in these versions:

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

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

Next, run the build command:

$ 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.

(env)$ pytest

Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the 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. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Release History

0.1.0b1 (unreleased)

  • Added management request support.

  • Fixed message-less C operation ValueError.

  • Store message metadata in Python rather than C.

  • Refactored Send and Receive clients to create a generic parent AMQPClient.

  • Fixed None receive timestamp bug.

  • Removed async iterator queue due to instabilities - all callbacks are now synchronous.

0.1.0a3 (2018-03-19)

  • Added support for asynchronous message receive by iterator or batch.

  • Removed synchronous receive iterator, and replaced with synchronous batch receive.

  • Added sync and async context managers for Send and Receive Clients.

  • Fixed token instability and added put token retry policy.

  • Exposed Link ATTACH properties.

  • A connection now has a single $cbs session that can be reused between clients.

  • Added C debug trace logging to the Python logger (‘uamqp.c_uamqp’)

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.0b1.tar.gz (2.6 MB view details)

Uploaded Source

Built Distributions

uamqp-0.1.0b1-cp36-cp36m-win_amd64.whl (714.0 kB view details)

Uploaded CPython 3.6m Windows x86-64

uamqp-0.1.0b1-cp36-cp36m-win32.whl (637.2 kB view details)

Uploaded CPython 3.6m Windows x86

uamqp-0.1.0b1-cp36-cp36m-manylinux1_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.6m

uamqp-0.1.0b1-cp36-cp36m-manylinux1_i686.whl (2.5 MB view details)

Uploaded CPython 3.6m

uamqp-0.1.0b1-cp36-cp36m-macosx_10_6_intel.whl (2.1 MB view details)

Uploaded CPython 3.6m macOS 10.6+ intel

uamqp-0.1.0b1-cp35-cp35m-win_amd64.whl (706.9 kB view details)

Uploaded CPython 3.5m Windows x86-64

uamqp-0.1.0b1-cp35-cp35m-win32.whl (631.7 kB view details)

Uploaded CPython 3.5m Windows x86

uamqp-0.1.0b1-cp35-cp35m-manylinux1_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.5m

uamqp-0.1.0b1-cp35-cp35m-manylinux1_i686.whl (2.5 MB view details)

Uploaded CPython 3.5m

uamqp-0.1.0b1-cp35-cp35m-macosx_10_6_intel.whl (2.0 MB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

uamqp-0.1.0b1-cp34-cp34m-win_amd64.whl (723.8 kB view details)

Uploaded CPython 3.4m Windows x86-64

uamqp-0.1.0b1-cp34-cp34m-win32.whl (643.2 kB view details)

Uploaded CPython 3.4m Windows x86

uamqp-0.1.0b1-cp34-cp34m-manylinux1_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.4m

uamqp-0.1.0b1-cp34-cp34m-manylinux1_i686.whl (2.5 MB view details)

Uploaded CPython 3.4m

uamqp-0.1.0b1-cp34-cp34m-macosx_10_6_intel.whl (2.1 MB view details)

Uploaded CPython 3.4m macOS 10.6+ intel

File details

Details for the file uamqp-0.1.0b1.tar.gz.

File metadata

  • Download URL: uamqp-0.1.0b1.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for uamqp-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 231fe3791592a03be5f281efd54cfb638bc9b2801ffcd9bb7111e65ac64110e9
MD5 aa2fba7640a832b82c6a2c0e3f63b7ad
BLAKE2b-256 ce89df3228b9619ee15f6e24d0e50acfe944d6102fdccbf4a142baf3cae7c11f

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d7bf0900041c77bf75db8d448ae2fbd5dce990a54e67cf06618775cfc142cecf
MD5 63f4b7dbc0436e6c20f6daa7a6887f79
BLAKE2b-256 aaebc20618879fe2a7924d5a0d23dafe9c8efcd67437e9b58167ef93bf3020c9

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 9506505533db15df01e6804130a590c9139dbeba38671238a37a8199d4c15447
MD5 e6fc19e2330c8d2e1381b0cdf94d31f7
BLAKE2b-256 29935fb47f142e052479c0130a07e936a5f61cc5919a2e1d6b26137986a309dc

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 eb86a8a0f4e3ad6e3b9458909c7c691d15b6470e6da30d1dbda1d2e85d7510be
MD5 642b6553d82743c35e3d48b918a26762
BLAKE2b-256 08359f7bf36c1672c253b2e7391b2a7def8309bd2c5681c18290afdb67d8efa8

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp36-cp36m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 33fb472661e02ec54458375b5933fd074215e4c4e875a294921e63737c5adaf1
MD5 4f2ed65e0729aca71d7731d73734a91e
BLAKE2b-256 ea2ff4e5bf95564ce7b7d810b6bf207ac46c3f26514a47fa7acea723206bffdf

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 57d33a76e5dfd7205f838d3911ed610d227b901221289061c7445cdc54ef7a2d
MD5 1f82f4506e81df4c1c32adfd1827fa9d
BLAKE2b-256 4b2431fcac69ef11b12213f356277895590eeb0c270a02d46aa34971a7381838

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 37253439eaf1f71493e56192f935474d27ff3936fe3859a392c5e97492677de9
MD5 990d833d5096baa08a510e4a5f620aab
BLAKE2b-256 365ce2f78232817f038df486971e74ad362215c5b0ee7dc9ac9e34dc53cf6342

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 e64bf9322218145e25d7830ffba959197719a6eacfcd73e055826f51d6ce4970
MD5 7adee99ed316f78119a6803d551a1408
BLAKE2b-256 98a1aa240200f0c4b35ccc6be36c6ed31837cc1c8dddc99b54861c90ce5c7c2b

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7bc1596e213bc047413d5921ebb6a18cce92c24cb131b196651069fc9e27c9e5
MD5 3046427321f038f43c57e81c5f19d2a9
BLAKE2b-256 ec3fa374f35d6980c83e510e1bb44b1d083ed3b71e854ea4288c9e4979c281e5

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp35-cp35m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 d63411244155b9b825ad6d48ded60bf78108f61bc3f87caf33b5d06449376486
MD5 e387fd3c0a097b52c39461d2a2b506b0
BLAKE2b-256 4a4c0e6bee818f4d2527ca5678fae953a9e4821af2106efb1748f85c9e4c1cca

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 1f94dcd36af36bdb5bc1e96d1799b4108ec0284ce2dd03931e08169e7376188e
MD5 600fd1781e04b721940ee759d257f568
BLAKE2b-256 2ca50aa0dbf4491bbd0af47cb5254f7ad29c32b98f260e5e10baffa584f10824

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 940f44d9364c24df97989b46cf6127bcfa19e8a8f327b722700eb17a3f45631e
MD5 de8eaa6932caa379df04f9087934df65
BLAKE2b-256 9fb046205b3913d43f4e7861bc9233e4d5dbf548b1a903c260c448cc56310e70

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 18f8991c10f836c4bd0ebef35a737954a8e5a18979815f4c1156a8ab6dba3d09
MD5 c99deacc68ed8c86db58cba380f9c3b7
BLAKE2b-256 c2b330bdb9faef24dffca2d29f2fbd38f4c3d91bdc04c7d9ad9c68e386604d99

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 73c38d9a1fa23f1e0137e772bc783721eabc236dffd79786a125597ff76eeada
MD5 8769633b39c663980d6d772763d62faf
BLAKE2b-256 0fa75267497a65d2e011fc2495d9e2d4d9307acf5ca87a069dd55f228af1aefe

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp34-cp34m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 f972ba236dea0c8149f7c54c97cb3890da0c8e7fd2f4ffdd70b119f1c71c0e5c
MD5 05014cec8567357d3102ede32c234009
BLAKE2b-256 ea4a64d6a761f62953968b6c03fc93f9dd98e3afb3b70a84a6a075d57d2545fd

See more details on using hashes here.

File details

Details for the file uamqp-0.1.0b1-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for uamqp-0.1.0b1-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 48a1b10044a80345122b5fc097bc6613dc7c854555497783bf15dc5f7d65d589
MD5 c1e47e2c4f5d60f11f8bc3485a1d50c8
BLAKE2b-256 127e470401efe7d724cdb1b2bc6b567a62c9ee2884b33086a5a53059217564bf

See more details on using hashes here.

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