A common runtime for AWS Python projects
Project description
AWS CRT Python
Python 3 bindings for the AWS Common Runtime.
API documentation: https://awslabs.github.io/aws-crt-python/
License
This library is licensed under the Apache 2.0 License.
Minimum Requirements:
- Python 3.6+
Installation
To install from pip:
python3 -m pip install awscrt
To install from Github:
git clone https://github.com/awslabs/aws-crt-python.git
cd aws-crt-python
git submodule update --init
python3 -m pip install .
To use from your Python application, declare awscrt
as a dependency in your setup.py
file.
Mac-Only TLS Behavior
Please note that on Mac, once a private key is used with a certificate, that certificate-key pair is imported into the Mac Keychain. All subsequent uses of that certificate will use the stored private key and ignore anything passed in programmatically. Beginning in v0.6.2, when a stored private key from the Keychain is used, the following will be logged at the "info" log level:
static: certificate has an existing certificate-key pair that was previously imported into the Keychain. Using key from Keychain instead of the one provided.
Running tests
After install, run from project root:
python3 -m unittest discover --failfast --verbose
--failfast
stops after one failed test.
This is useful because a failed test is likely to leak memory,
which will cause the rest of the tests to fail as well.
--verbose
makes it easier to see which tests are skipped.
Many tests require an AWS account. These tests are skipped unless specific environment variables are set:
MQTT
- AWS_TEST_IOT_MQTT_ENDPOINT - AWS account-specific endpoint to connect to IoT core by
- AWS_TEST_TLS_CERT_PATH - file path to certificate used to initialize the TLS context of the MQTT connection
- AWS_TEST_TLS_KEY_PATH - file path to the private key used to initialize the TLS context of the MQTT connection
- AWS_TEST_TLS_ROOT_CERT_PATH - file path to the root CA used to initialize the TLS context of the MQTT connection
PKCS11
- AWS_TEST_PKCS11_LIB - path to PKCS#11 library
- AWS_TEST_PKCS11_PIN - user PIN for logging into PKCS#11 token
- AWS_TEST_PKCS11_TOKEN_LABEL - label of PKCS#11 token
- AWS_TEST_PKCS11_KEY_LABEL - label of private key on PKCS#11 token, which must correspond to the cert at AWS_TEST_TLS_CERT_PATH.
PROXY
- AWS_TEST_HTTP_PROXY_HOST - host address of the proxy to use for tests that make open connections to the proxy
- AWS_TEST_HTTP_PROXY_PORT - port to use for tests that make open connections to the proxy
- AWS_TEST_HTTPS_PROXY_HOST - host address of the proxy to use for tests that make TLS-protected connections to the proxy
- AWS_TEST_HTTPS_PROXY_PORT - port to use for tests that make TLS-protected connections to the proxy
- AWS_TEST_HTTP_PROXY_BASIC_HOST - host address of the proxy to use for tests that make open connections to the proxy with basic authentication
- AWS_TEST_HTTP_PROXY_BASIC_PORT - port to use for tests that make open connections to the proxy with basic authentication
- AWS_TEST_BASIC_AUTH_USERNAME - username to use when using basic authentication to the proxy
- AWS_TEST_BASIC_AUTH_PASSWORD - password to use when using basic authentication to the proxy
S3
- AWS_TEST_S3 - set to any value to enable S3 tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for awscrt-0.13.6-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c695f63fa2b3588829ae04f047dff1bf6812f68c26623f3b19209b6e2ea8ec9b |
|
MD5 | 6da370fcecfb934e2071407749815706 |
|
BLAKE2b-256 | a43cbfed326b1de1f08e429cde52227e3ec09127ba3161565269527edda944bf |
Hashes for awscrt-0.13.6-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 412cd5b6315779a687dd81e33306480e64b6ea4eb088f5d099cf405cca062507 |
|
MD5 | 4620d1e9e3cd2388a9427c7cf36455d2 |
|
BLAKE2b-256 | f542ac36ce13d930772068bd1f2bf4aea5971a62449e4d7d91a1b7e2d6b21709 |
Hashes for awscrt-0.13.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee1a9803ed6373924a9c52439d099035fd9ca73dd8b16cb591d82d7c1aa27551 |
|
MD5 | 380985db0505c13feaa69a813f2d736c |
|
BLAKE2b-256 | 338d8791c06dfba668f49d809dfb39b5696eebe76cbfef7306db086702192773 |
Hashes for awscrt-0.13.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4c9988976d66fbc0b4d3545f238332a60f6084ed993b89e0966c0f4b258293f |
|
MD5 | 16ea786f63f982fba152102d12ed5a4f |
|
BLAKE2b-256 | 51c48893c7c029a43f9a42b0fda6704910968bd2d7686783f5f08aa4af5742d2 |
Hashes for awscrt-0.13.6-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1a772d55c36847dc2ce455ba515cc981927738fe3e60192a19d9a668d3da79f |
|
MD5 | 939d353825dad3359950f1bf3a7f72ea |
|
BLAKE2b-256 | 0ed7480734f5255cd4d73c631e464b8fb5c8e6d17ef5a87aa18d05085b779109 |
Hashes for awscrt-0.13.6-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c58458fd85832a3d3ee6af6668ce05737d1a31fc72ae10d4ffaa2a13c88b2e0 |
|
MD5 | 4a4940319e861f0258bb1f65b798892d |
|
BLAKE2b-256 | f089d2b9512013ae0f10f1b5a4e760c50cd9c6cfb3b28d854c30b26d4f671a8c |
Hashes for awscrt-0.13.6-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d80ff847b69f266a06c6eecfe5bb902a657dad0ddd611550820a6dbecad1457 |
|
MD5 | dca46bbfd0e429edb992453eb5e9b6fc |
|
BLAKE2b-256 | d45f8f69a424ae3f01a2f93333899d6b63f478cdb66d2f47bcad006f3a3becc4 |
Hashes for awscrt-0.13.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcb0382bea9dfb2d466f01f82b67d6af4417dbaf0d21d9397fe0c3214e82bb0d |
|
MD5 | 24451c85e58e31c5d5b3e40f1322ee72 |
|
BLAKE2b-256 | 39c139a213180bc2da3aff4062a70c46bdfaea4007a006c68654d5958cea29c6 |
Hashes for awscrt-0.13.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fab6d2b3ac7392062de5d7e3453d52710aed349dd362d303db37ee7dcb278bb6 |
|
MD5 | 38f644ed7eb8243b62a71eefd04e4944 |
|
BLAKE2b-256 | e155c662b24143a77da1a1910cfd6baa4a9da07d10573da3333abe66137a7f2b |
Hashes for awscrt-0.13.6-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa852cd2339ad337d02e636ed4d92e40bcd9802d0f036c1438815f1c5276388c |
|
MD5 | 4b22b569ff91a54938d5d566f66c48e0 |
|
BLAKE2b-256 | 9f308dc4822efff580c48b5f914e0f722639cf2a926844ccbcc17c6da9e2b771 |
Hashes for awscrt-0.13.6-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82439fd30a359904689799b917f45f2dfb4721412958932b1e44c0444668a0b1 |
|
MD5 | c12820d0f05872114f8b38e0552686a1 |
|
BLAKE2b-256 | 92c0e882e9bd7eaec63883ca542fb47885215b9304be1ef3bbcbef8ff02bbd94 |
Hashes for awscrt-0.13.6-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57329300a32b773a4db2bfd921861961c39c0f8dd95ab6daf4b33be34cb3766f |
|
MD5 | f7f84c8b305b6b9c4c1379d500ee082e |
|
BLAKE2b-256 | c6f54aedddc328690267104c97ad699699fc3b3dfff4dedac5a5939a8d1d4fdc |
Hashes for awscrt-0.13.6-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce6c37111a76070423dbfa70c3db1984a90bec43479e5c92e417239f253dc29d |
|
MD5 | 03c747f8d87489bda058c434b4a53031 |
|
BLAKE2b-256 | 1505db0e12b8158ea8e5017a7ebde8a8d2fcb6ee35e8a03d473a792573dc21a8 |
Hashes for awscrt-0.13.6-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a853b35b0f9f8b390d007c5162922e6f6c1adc108a1048dd10e4921b7d35ae42 |
|
MD5 | 8b7692ee412d4ec64480c5f993760cb1 |
|
BLAKE2b-256 | 53a95b77c234f3e721582e68a1ffe81e693f4dae7738e5942eeec6ab3fbef607 |
Hashes for awscrt-0.13.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a54172574469abb5ad3103b7d7b6be4956558f0b808e94e8c6736402e372ba4 |
|
MD5 | 34b1db9cb6c75788bcf89a68166f6405 |
|
BLAKE2b-256 | cdf13b9c202caf259f8760d249d6388528b639376d423d5e2756b3f628d15a71 |
Hashes for awscrt-0.13.6-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c7163f30687912e75903690c894fd6261a947f3f377324a040769f80b1ef87a |
|
MD5 | 8e7203843d09fadf4e6870af6a2fbe6d |
|
BLAKE2b-256 | 855e2080d8dc3d2828f03ccbd0d587f655155f30d2ba827e36486c4cb55687a0 |
Hashes for awscrt-0.13.6-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60f2f1af2fd2a18d8435aa3a9775eabb6f30748b28f288309a603ab52c7db0be |
|
MD5 | 15d08634261f8ff5b79b4a3c045169be |
|
BLAKE2b-256 | f85ed8ed9e2af6883d1fa73e199471fcc2cc38f4ae2b36a897f71064ead18670 |
Hashes for awscrt-0.13.6-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bdc2b4f900fdc5f326202dad3034083fb9a9ec42d60ea655703fdbcca4bdc89 |
|
MD5 | a59a7d6359d71a7bfd76d1566e5e00c9 |
|
BLAKE2b-256 | 62592b9d4bc7403207e33dbf3d8701d8ccb314da22321399befafe0d5139c9f0 |
Hashes for awscrt-0.13.6-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 631dd7e6c02e1735a0a3b12d36307281a7240699753ecb3982bc4eb5f2657547 |
|
MD5 | abbbbc847b1a6d7f567980abbb9b5222 |
|
BLAKE2b-256 | faafd0aff5dc27328d70b323f9a709d95b1fcce9692eeb645193916927bd88ca |
Hashes for awscrt-0.13.6-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32996a94c9fa87ed19a1e3e750fa22277ec6bb87e0c6724e4ec6a490b7ba9e75 |
|
MD5 | f8e30ffb46ae987bd026821b5fa792f1 |
|
BLAKE2b-256 | 3167adf6f2a8ab6cf69f72e4b280fd04fa5b496dc561810cc8d6a09d23623fbf |
Hashes for awscrt-0.13.6-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e4a0a5f4efcfe784dd9054f35bba0af78fc79ab614975b924c101477562be5f |
|
MD5 | 173153f83cf67230afcc9dec636e8498 |
|
BLAKE2b-256 | a722fe889b8d33540e4e3f6b0f232c88f0b11863cfe19ec1d87d6cfb8c4ec702 |
Hashes for awscrt-0.13.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 337449f2a70100211b8614a87f16d7486f2a04a624bafb972f42109b58776e81 |
|
MD5 | 0f176bddf02e53dd1381da1152527c6b |
|
BLAKE2b-256 | 028e48106e2ecfaa5e828a5d3c2194e63a343bfd3b6f3677bc40de33431a805c |
Hashes for awscrt-0.13.6-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 725c3e8302b99ae87d3bf5b056187e572ad68d69dcf81d8a140e71a314a4dff9 |
|
MD5 | 7c4cf0160f3b0867eb98e6ba27fbb2db |
|
BLAKE2b-256 | 768edb3a23189e7fceb302e7c2f7f7ff951d2fd0a74b65a64e1e9232f7748d25 |
Hashes for awscrt-0.13.6-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27554baa9f0f58d0799351e2482d489132c00778cef973dfb161803487f23e1e |
|
MD5 | e0b90e196faa1ff5a4567e7a6277dd55 |
|
BLAKE2b-256 | ff08160527c572fa8ded5a8ec846566e6027ba1f60725ece816ab72befffc5dd |
Hashes for awscrt-0.13.6-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07c2267146209ff745b083f11226e88c12ab8a8bd34d2feb2a6b752a118d3f9f |
|
MD5 | a2f31dccd6dbe6fb63830eb7830c254d |
|
BLAKE2b-256 | 7d8881d555c8ae66d76da6c3a5c8e35cc9d98257d1ab953702b24dcb48c4a857 |
Hashes for awscrt-0.13.6-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccd5684402f33f77278a4d3a446a45e98187d8bdc6022bdca1013503a7d48403 |
|
MD5 | 3ebcf5056758b88fed71b78f66efc43f |
|
BLAKE2b-256 | 845406e8f02c847e175201a97a489d3105927238fe11caeca4bfaa8c7ccadf94 |
Hashes for awscrt-0.13.6-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 521fc68b8504a73f0f9b9c943b29bc199a73757439caafd921fb74dc737d37c7 |
|
MD5 | 44d2f7f2bc0268701f2d4f985b715244 |
|
BLAKE2b-256 | 2a625072bb917cec73dbd87ea6c9323f7911922028f85c4c7a5a9841049b654e |
Hashes for awscrt-0.13.6-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a456f98355ca27e43f1def3a686f997d0a193b1da4a078a73a1dd4efd9859dcc |
|
MD5 | 293734a491eece552fae585b628ce631 |
|
BLAKE2b-256 | 4cb602e09ebab93cd5dcfc9b1ed58e66877aa472e6dca260bd23cc3ad574e41f |
Hashes for awscrt-0.13.6-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b2146891b16d3d7115d6310e66ffa9d5e308a7be5c1b8bbe5b7948f5a1ba74a |
|
MD5 | bb2663c219f892183fcd0b852bae0905 |
|
BLAKE2b-256 | d6f27ee4f655b8fc964e09a026b72caeb741683e7a94ca145551e1e1526c856f |
Hashes for awscrt-0.13.6-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4b18676dd4c8b407d9a1facdc27efe57dcad4dbdd33cb43270627954a6ec637 |
|
MD5 | a12747e4e41234edd2c54e6fd68f399e |
|
BLAKE2b-256 | 6b6f7f31ac0249094cce07065b38626437551e788dacec523733da3cdf687341 |
Hashes for awscrt-0.13.6-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f023aa4d05e0e9a66d7e3b6155702c75859d4f5d7ad5b98a0f81da3108418ad6 |
|
MD5 | 23ba92931d4bff57817df6d48fe52956 |
|
BLAKE2b-256 | 2a6f240d40708313d9f1cc2bab6ecc24065c5acec374b1906d9847d8e7e005e6 |
Hashes for awscrt-0.13.6-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdd768b35d8b7d11d228c7cac9f1215868c67ff13dc8d87c2977e3ba7d1e3e88 |
|
MD5 | dddcfb72337623683718dcdb90b31900 |
|
BLAKE2b-256 | c349fc25d969f5ff0667fde3c1b0335885c4a1f86c18b0226b0c22f70528d9b7 |
Hashes for awscrt-0.13.6-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d71ee3195ed378e42ee288d80a614418d4ccc779754fcdcef2ec76dcc0d804cc |
|
MD5 | 8087ea9a9aa8f4d44f566422d58203cb |
|
BLAKE2b-256 | ef059939593eafe88c7bb6bdf8ae25e5b828113c0c5d3fa3f53ed85c238347d4 |
Hashes for awscrt-0.13.6-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8226f396a59de84dadae0560308e97debbd29831795ac6d78cd6b8e7ca76fa6 |
|
MD5 | eacd10d0fded315b0c6b4fabd3c7e47d |
|
BLAKE2b-256 | a3204358071328250aaa9a445340ca27291039f3775b7f2ce3320b129740c665 |
Hashes for awscrt-0.13.6-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8db89881580ef14f7e575dd89330be38445f948b5a74a098e6d7ff9c1288ec4d |
|
MD5 | b0a5910c703fb8c84541c6e4c4f7800d |
|
BLAKE2b-256 | 6bce7b9221ff1c94effe7c62fe708132a2084550607159f1d05ac26dd374dbe6 |