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.7-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 589fe7dbc835b74ac322b9655c95c3376d831279533abd3d592a3186762f244c |
|
MD5 | 2e8734d3fbde24b1a4261b215ffc5753 |
|
BLAKE2b-256 | 65122cd0d5c2be2d456570d71ccbc0a485bbf08dff6a953763f894e2e9b97763 |
Hashes for awscrt-0.13.7-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23115d039d64ccff143718b34a2fa1ec1104f121b6d86b1cfd079b21f84633e0 |
|
MD5 | 5abaf97ed2f41e34f10b816cf2c3e67f |
|
BLAKE2b-256 | 44e2c5f35a74506610f1f382e29606cbe873d066482ce31bc5b21ae4bdd2b1aa |
Hashes for awscrt-0.13.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1612a28af2b76103e52f20d74b608163634429918a68b0b2a207db0c82d63e30 |
|
MD5 | fa284ea9214ba4b3483c6b75e980d869 |
|
BLAKE2b-256 | 534703d0a408a3d8a6e5274ee5b331dc02c36a44c670035ba2a0f9234d529191 |
Hashes for awscrt-0.13.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af79a5ef855fb30e1151a21458c9a2186e62a7918ca8d0579a5fa987c4f6ce15 |
|
MD5 | af8fb96e4af86fc9c4fda7c20c730335 |
|
BLAKE2b-256 | 86f1cafefdfbfc74c87ae134d45d86d2ddcb5b78a4557051dac4087e8981b538 |
Hashes for awscrt-0.13.7-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6daaa9e01674fb548f619a2ff48158e0b1f9cfe029b61a78f386cda1f053854c |
|
MD5 | 92ecc74ebfaeec0602b0d27b2874ca4c |
|
BLAKE2b-256 | 6d9ff2f8980f7dd071aa6d6862c51904bc7932d55c41db95bd28eaef017b13bd |
Hashes for awscrt-0.13.7-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5017cc763c2a98f50dbed0ee38a7fb9d7ed8afad453730ecdc03174e5bd48521 |
|
MD5 | a9422bd1c771f8777c7fbae66a2690ea |
|
BLAKE2b-256 | d504b138027331bdd6db7555951d1e65438715b144e6baaff4e0238d9d578540 |
Hashes for awscrt-0.13.7-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40a58aab6448e6a167ea13aefe7bf801781760d43bd04d56e384a65b377d825c |
|
MD5 | e990842ed362beb92e25153c5660b865 |
|
BLAKE2b-256 | 76225c569c6da7fb5ed5d3cb4788888c43b383cfedde9488c2118a36eccb4548 |
Hashes for awscrt-0.13.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0268fa239e1bd64cd5f2d1feb8f54d6d4cc161a8908725dad21e78abe6f671f |
|
MD5 | 1f77330896447c98eb8c0fc7470fff22 |
|
BLAKE2b-256 | 2bd55b20b36275f23841126c22dd8602e618380807e8a3166e11e1ecacdc843c |
Hashes for awscrt-0.13.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b558535c2b6613eb3c4c3fe02f689b44179408574ac2f440dc67c28ede69e31 |
|
MD5 | fbe2b3d853e3416471b210a1b0206cd5 |
|
BLAKE2b-256 | cdd42c62832daaed34c3696cea6217c3cbf38a35f8afe118699ac486c13f95e2 |
Hashes for awscrt-0.13.7-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c205a8fd12de16c1bed5e94e720002ea23dddba9b4b1334025fa29d282a97e05 |
|
MD5 | c0fab94f851d059ab68f6146c45bbdbd |
|
BLAKE2b-256 | bda3d5a7de5fe01c23cbac56a220c4502bde3628176199837f4f97568b62bc85 |
Hashes for awscrt-0.13.7-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c0b9ef7e0cbf9aa22af1faaa3779dc47e7eda987c1e7ca1f375f701675a6e0a |
|
MD5 | eb13ec871e24ce69ae8873a7e2e7f3e8 |
|
BLAKE2b-256 | 13986f5411a4025a91c4b485af3faa4deaa2d6a319d1936abd5748612f4e0113 |
Hashes for awscrt-0.13.7-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9408971edd548500fd3bbd46cb348b2cc7aa75d4ed5132aaa5dc4b9356f2c674 |
|
MD5 | b1d79766eb4694c334f7dfbd92f2c645 |
|
BLAKE2b-256 | 74e53971bd1a20b8623f92bf83488bc4dac4d3da6d723470125a06bae3381b77 |
Hashes for awscrt-0.13.7-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb51b52e9480d854ed53aa557753e07e66dcec483397492f1951218c5ad707c3 |
|
MD5 | 445b65b9185ee549704662e8cdef90b8 |
|
BLAKE2b-256 | 9047b485b9f5d601b3a01b12236f90b84bf7c663a41f668ae57aedd98de1abb4 |
Hashes for awscrt-0.13.7-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 305362f97327947b277cff46e05a06fb83ccc9561a708f4c2476080cd10ff4ec |
|
MD5 | 9f07c666c00a9ef3be75f6a81f87e822 |
|
BLAKE2b-256 | 84c898c9f6b1bc2a7e88fd0424999bf9889bf6ea55c513a7675196765895df1e |
Hashes for awscrt-0.13.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 808005a0aa4b50e510781917d85dd58322c1dd09e9d80294272c953118ab6f71 |
|
MD5 | 03b18793f6e798da09ec84cb92b91370 |
|
BLAKE2b-256 | 20029d8b4fe87e4863df34ebd46fc6def169e6e35e89e94c7fc683df5bbc222f |
Hashes for awscrt-0.13.7-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed64ad24c71149d3fe8459d062a8dd1683ded161d6c91cb03b7efa56aead47fe |
|
MD5 | eb93d4b20fa52a801669fdfd5f61826f |
|
BLAKE2b-256 | d65b39d00329bcdbcfa915456c1c4adcd8173679f7d41e84b1818c4f3b8818fd |
Hashes for awscrt-0.13.7-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3692b174e9aa0a6fe6c2e622f84886cd2c93fd330013be4f29eade0534721537 |
|
MD5 | da7f0a2906dddf8f4f333df6e9b69ea8 |
|
BLAKE2b-256 | 6fd539cd9762d6f087c29a15dff0159f13c7cca94df64f60de400488a7139656 |
Hashes for awscrt-0.13.7-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a786ec9fb489d3d75d07aab8eab97dd3ba3fdee2b2e6402fe8f2134e6ab01909 |
|
MD5 | f72092e00708c9f3a62d65a613ee4274 |
|
BLAKE2b-256 | dc60fe2bb8fca2151a20da2162bb823fcb4f52f664543dc56a3b74b2ceb2a2d0 |
Hashes for awscrt-0.13.7-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed04531b04f45adfbe9659e4dca1c37f8210aeb54c8b1440be7509fdfa080755 |
|
MD5 | 475efedfc457fabadc0c7768e2a4c4e2 |
|
BLAKE2b-256 | 28b03648f140d3bb1b9be5a81e78a69173bdb70cd14dbb2719d1b253789b3a6d |
Hashes for awscrt-0.13.7-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83b1205f81345af77e92f5c38c48d6c04829b44cb92d9d1840a8aec7458ac228 |
|
MD5 | c179d90fb32d9f56993f2b1e77dd2911 |
|
BLAKE2b-256 | 8ccc0b8f8383e71733ccedcf60640d339ba2305854972d89fb092fd4880a66ff |
Hashes for awscrt-0.13.7-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5956b99e9e94ee7233a7f02423b8997e2a7c8cec9e7271089e4acffce73a8f82 |
|
MD5 | 125dbf2d301f6c0e6b5434720ff3c2b0 |
|
BLAKE2b-256 | 610c84707c5cac89b6931f219d379600e7f2d54b318177b7e562fd0161be6886 |
Hashes for awscrt-0.13.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f03dc61bdac379bc480ab9dd8f1a7abef7a562ed5b2673cf8a4f084410c124a |
|
MD5 | aebe654bf8dcc2699a80b03723dbeccc |
|
BLAKE2b-256 | 5219d17390d3093418ebac681cf2e8709b50ded48dd48a50de9ed89c655103c8 |
Hashes for awscrt-0.13.7-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d5c066e6e1b21b54ecaaf634c7d72a44abddd5519b8b4ba5312ce6d9ef5f445 |
|
MD5 | bcc650d6c549dbb704221b402529f453 |
|
BLAKE2b-256 | 72c2884486dfbccaf752476c03ce46455a077eb47007077d52258c959006f4c7 |
Hashes for awscrt-0.13.7-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 816c17fdd383dcb633bb22d2c80f4b4f66810e3eff76fa8987b23fdff4e4d1c2 |
|
MD5 | f12577bc42c8459c51162260edab5193 |
|
BLAKE2b-256 | 3463b7980a0feb130ba4f28a967d613d944fb8e5b16df4eb9df7c48594e54b52 |
Hashes for awscrt-0.13.7-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 948ac9aeef48a476b93eee49e0c6d6d4088ee2eef6a38f5efbc9465ee19a9cf9 |
|
MD5 | f0d684f606b923d4a6f055cdece57301 |
|
BLAKE2b-256 | 2a018cb759ea9c53ae0dc3c6ac47cd2cbd45ea5386d6579e984402a7e2bc858e |
Hashes for awscrt-0.13.7-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50448146d22bff3f478f66c2db377db19ad8eaea977e82df9178ebea9c18730c |
|
MD5 | a74df1686c79cf0e2bcea51ad6756211 |
|
BLAKE2b-256 | 78899d093a83e63f713634265ab59ed60aaa4719cf1802f816e82b2dcb2a3afe |
Hashes for awscrt-0.13.7-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 520c767ab7680135e2921a32b2dd658e312a08804772d76f64bef141d11a6381 |
|
MD5 | ba1d1e484750f37c1825d719be357c83 |
|
BLAKE2b-256 | 93635f46329dd69f5b06b04a45b2bd1e34e81b4e55d11058bf04a62d4d88c5c4 |
Hashes for awscrt-0.13.7-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27682bf687f7558a2b81e3c38cad26acfa023d591d1ab71633e619c36cddd964 |
|
MD5 | 2bbfa02ed9eaf44bf900968777d4266f |
|
BLAKE2b-256 | c5f5935bdd4314acbe130d784450227a35f3b116d88fb54c9815e19d672be041 |
Hashes for awscrt-0.13.7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c151cd4b55426a7657a65e7a44eb6ab4bb6004b930dd7c051d12f45fd007f4ba |
|
MD5 | 7676ebe28764851e6ba3883cc4b02ae5 |
|
BLAKE2b-256 | 8bd4f0e179a48fabd58a84039b4f643be415f1fece16e3542898572404856dbf |
Hashes for awscrt-0.13.7-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4617dd848818f5b81dd4c2b7d27fb71bee8e8b6790c2cf8d9a50c3f16c7f2a73 |
|
MD5 | 9c8d05a668d50df1d2f463fa89ace928 |
|
BLAKE2b-256 | 002ba7e0ddc3325a9d33b3b418d771c8c6f026c7d6e39b6a2e5c779185cbf94e |
Hashes for awscrt-0.13.7-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad697352080a363b1ae12fffb4a058eec58df4df10923dca347a0801978487f7 |
|
MD5 | 8cc3d7d433fa46bfb6e3c752ffb01b81 |
|
BLAKE2b-256 | b1ced53b223d592358926de6e57d6a88649f9c9635d8fce479b3ed10c4ecb3a5 |
Hashes for awscrt-0.13.7-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a5a90fa38629c887108ec6b3fce0112caf4c6fb6cea909a364a07960e3e034f |
|
MD5 | 28e58cd17491f8d3ba9ec74265567089 |
|
BLAKE2b-256 | 74176b630b75c471e7b28bf86c28717b24361897e9cfe0d43269abc692174017 |
Hashes for awscrt-0.13.7-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 006b497fba8357db2f1a7332efdca7231221a350d62ebd4c5d2193112813101c |
|
MD5 | f8b6ca05cdcfa7520c609130e11dc089 |
|
BLAKE2b-256 | 7c65362e745f4701b7f5aacef3c4e14169c8d15d2b356954ff3b5f0d775e1589 |
Hashes for awscrt-0.13.7-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2bf97ee89d8c49ae6837a116b613f0998edb852bc253c7acc070a6dee224ed2 |
|
MD5 | 6fe01ace480cca7eb5ba965268065a13 |
|
BLAKE2b-256 | 50c5dae1f21c8a9c626fb40bb3670f87c086e6091d9d454b89c3fd9057656120 |
Hashes for awscrt-0.13.7-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74412eef5b2c6f97c084623e7b2a72459b769213be098074a50cf67928380028 |
|
MD5 | 2cf1bd3a9b88bc4840449c5ffaae13bc |
|
BLAKE2b-256 | 4a0a0bffc9ab173776ee72feee5d64c407526f706f448c34b9a5b705ff2449c4 |