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.14-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e7b58841347103d8033ef0f8b847d32249108e1b4c2d0d9bf9c7c9c4ba3b2e2 |
|
MD5 | 79e90d67ca369a6da8b1a60eda278724 |
|
BLAKE2b-256 | 27a686e6ace899b162f8a32593fa1f0fb7b06a9b30a6b409cc18463f40064054 |
Hashes for awscrt-0.13.14-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d830d568087201c951096400ad6ce68faf7ff85f340f5ddeaa8d9aac3eabf9e |
|
MD5 | 0506488d37ff7b1bc3481f1920721abe |
|
BLAKE2b-256 | ee5ad472d01ad070bc6aeb6a58b4470af4cdc60482e413edc6a036fd221ff55c |
Hashes for awscrt-0.13.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87eb9c5e5f4004ad27aac1da0a41469cc90be9ece6ef84e91732b3246d6a1e16 |
|
MD5 | 8b7a2fb3079016dddfbbb3cc8484d345 |
|
BLAKE2b-256 | 6c9c3bf482fbd65b3379bb8c82f2375f854416e726be5181b524b64873b27a80 |
Hashes for awscrt-0.13.14-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df7208f19dc3c864d5cc3b12545114ccf0f8a1acdc4e555f676d0f96b94f180 |
|
MD5 | 1c329d119b0c8dd6a585aacaea3529f6 |
|
BLAKE2b-256 | 61c8864b84428f83bfd428c5495b2cf74c61022f9aecb87ed8ffdc3ba0b87bd0 |
Hashes for awscrt-0.13.14-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce09362b8ac5d6716fee1e50332e91e9513cf20bb2d785c44459ef2cd4650051 |
|
MD5 | b5ab800eacd91531f456debf0df60e7b |
|
BLAKE2b-256 | a81feb091ee4d002b1339d023da5a64a9a8e9587874a748169d042aa60fbf400 |
Hashes for awscrt-0.13.14-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93445d5f770db068680e58c9c8b30f844843877751ebd20b675d861746ec18db |
|
MD5 | 65a99eecb8218fbc54d9d7425193a513 |
|
BLAKE2b-256 | 28be0c057fd4d4fd8a2e8e31b2dfcec15ed82bb219b757df867f80dd3e9e79e4 |
Hashes for awscrt-0.13.14-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be0c53de07361466fe884d860a46afb17ffccf5de20962774245cadba1aa4b0f |
|
MD5 | c9cd890c85768814adbf827cfdb93527 |
|
BLAKE2b-256 | da42d6a63feea7fa00d7a5e539256528f6c2bc0280ead9999888baae728f8f27 |
Hashes for awscrt-0.13.14-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 079833bb631a60f44e625aaaee73c74394c8de182b688e9e78a8b9644d51c450 |
|
MD5 | 63b592df1222c2002eb0e77f5a38600f |
|
BLAKE2b-256 | f8ef6c6db51798665062979015a61667b2b9d39cb139787fa5806327a9541c0f |
Hashes for awscrt-0.13.14-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eceb17294b1046ec7aaff5511dd16b2c48cb41e71caa46106e455bfc63766ff |
|
MD5 | 65aad2d5c8505d240e68a58e80363228 |
|
BLAKE2b-256 | 575f8bc21ea3b0f5affb37a040c21ac101b6fb332d9d93f5a0af70d022c3a32f |
Hashes for awscrt-0.13.14-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da541649e071b1a2c12c279e5e3c2c1c3416dc1c5a412904413ec10e70e69fae |
|
MD5 | af6f7b430814fa5bbdabdbfee4641fde |
|
BLAKE2b-256 | 350f53605a19f7768df18132db5fc044f27bf99cd6106b8740ea9a8264218789 |
Hashes for awscrt-0.13.14-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 636d72fd0c002ea60560c60a56dff398202f0307da5b04f42715725515405fde |
|
MD5 | 4528bfa335fe26f09bc7b0c80154787d |
|
BLAKE2b-256 | 47c97bb377658d47da84d64d4d753a54b1a0cf1373f7868baaa8f7ba68366d69 |
Hashes for awscrt-0.13.14-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e70a6d0666452db5eba7f221cbd702808c8e9236b3d268e2e270136a902a57b |
|
MD5 | ef3a9014a31f7d0e346badfd1589d53e |
|
BLAKE2b-256 | 754727daaf69367bc54310692e2c6c2d1437712a14f474bf8675c21db1f77a09 |
Hashes for awscrt-0.13.14-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4969f2d61cdcd5045709b217089ea6e5fdce0bf1cbb5b9ea1956a0c0c4bcae45 |
|
MD5 | 03d35f419bde368f9880d5ee5088c390 |
|
BLAKE2b-256 | 49e820b722d179e18f2d41c052ce5f02b0609025edbf6023897d472ef6d0fddb |
Hashes for awscrt-0.13.14-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3888bde2f4d6d769f81d08e456840ad52f5f0b018358b9de54f40b6272599c46 |
|
MD5 | 20953d73714ee1256f794a5d27e0f743 |
|
BLAKE2b-256 | 0fab13153b49452db7dc8c985e897d074c3e61175ab9f4335e119f5ee5940d52 |
Hashes for awscrt-0.13.14-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a603850dd8168a909181a627a16dbaef3dff846885a4cab7db2fd9830b850edf |
|
MD5 | 59c1c20b95c5128d2662def00872d7f9 |
|
BLAKE2b-256 | 4486eb3fe6f23a255fb779deb3bbe2754f3fd5d2024b2ac76146a5e47e1337e2 |
Hashes for awscrt-0.13.14-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ffc8e4afa13b143b688ea4b236112138cc34b315e306be82b8e7681fb0a4289 |
|
MD5 | 05dda5b5cf5407cb374f9959f93d01de |
|
BLAKE2b-256 | d761676ad917e3ecc5b8b0868e69ed853f4cc3c17d5b00facd11d538c7dd3da0 |
Hashes for awscrt-0.13.14-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a70306768076c1522a6f607fdc0b7312765ca79adf404e5b99d55f2836dce69 |
|
MD5 | e79c8a0ff630de2ab7f8d13cc335fce6 |
|
BLAKE2b-256 | 93118cc153d9b5686c9b651fecea09ff3d9a4c7b3bbac5250e9424192e10d615 |
Hashes for awscrt-0.13.14-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ede6257f75cdcc9390fa5a7f580fc37e461c98220c93af930dd86728e5d18105 |
|
MD5 | 3396f725ea57a60eee701f4cb9953b3a |
|
BLAKE2b-256 | 2aceb3441d3a88e525456c4fc8b849410c043c9e018845fceaa5d57a1f11d813 |
Hashes for awscrt-0.13.14-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eb5f95ff5f302c18f730657b67b0160d26be4245ac3c186075c0f8f1c15400f |
|
MD5 | 09f1c5f22270104211dcb2336d37a1a2 |
|
BLAKE2b-256 | fc3d34f045732667175800baf6af0c01dbfa3971c2dc759a8c40fa82c05964d8 |
Hashes for awscrt-0.13.14-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7310ab34fdd4ccc4b615f7ada8695bcacd3eb45599312ba0784a42e1cbd50035 |
|
MD5 | 2f768cfe4092f3a684bddc1c4db0dc91 |
|
BLAKE2b-256 | 666f3798ab6d1e0e089a8727d72df41c32e6022257cdaecbc0fd58cf037213c9 |
Hashes for awscrt-0.13.14-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d70ae5c098495830937c36aa9d22da8935460c76ffcfaf37e1af53da717b6fe6 |
|
MD5 | b55361a6bdb115d3dcd465402c407ebf |
|
BLAKE2b-256 | eada9a59ed922c6285097f112907bc8e85d94e186cd6b3c05bbcd9b49119de72 |
Hashes for awscrt-0.13.14-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e34b98c01be3b4796ba74ab69d6fa2ef1aa15f8177a35cfebb15bc7bc1de70 |
|
MD5 | d928a1ea097e0fec5f12d9bab4f6f6e1 |
|
BLAKE2b-256 | 28f0b570f86f74eda4748bd5a8f53e2f8b84f7380bf8ef1920d85d5a01b2b00a |
Hashes for awscrt-0.13.14-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c705bd52d0b64963fbf30e2881c0b68210f7e9977ed0a1a782f2c088fba7b5bf |
|
MD5 | a4a9775b31441d69f7c45e0c77f6ad96 |
|
BLAKE2b-256 | c7cf855f216935bb87dd4dad3978fc0c2efff6c69d6e16b464178329451459c9 |
Hashes for awscrt-0.13.14-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 762f5c5bdb8d091273e4fde1296b2fb354fc7f7c185bd33dd666aaaddf2eba28 |
|
MD5 | c669452e29b24017906a1ece2a1d0334 |
|
BLAKE2b-256 | 51d4ab66f3bea0b25f54ba7baa0a0a2d93645ddce005ce67bfd72e1018f9eda8 |
Hashes for awscrt-0.13.14-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5936565ffbae54b5898c94ed854da13d0084f081acc9c2bc3246aa895f99bf2 |
|
MD5 | 21578d57c29a93ad33a4d3c1cbd15d3c |
|
BLAKE2b-256 | a9c8771e382e1400eefddd04600fda8ad380ac26cc885358e8fe624eea6f7023 |
Hashes for awscrt-0.13.14-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea5947593c1065c776f77e9fd9860274144511038c0c0bf5fa126c19cbe46d27 |
|
MD5 | dacfe0fe679080c34b2d47b3974f7667 |
|
BLAKE2b-256 | f78f16328a91230221437df8c752d88b3b2eece84bcff6dda45cecd4a0915ffb |
Hashes for awscrt-0.13.14-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bfb50b600872c2ec7451e552fb3f382dc389e167dfb8b84dade97f7587521ea |
|
MD5 | e01ad76b953f6f7d9351e4f3c90a0f6a |
|
BLAKE2b-256 | 82d173c3bdf5403922eace3894ba425126577ccde0f7f3e7222d98f29c9ea395 |
Hashes for awscrt-0.13.14-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d5a76a27815b22efa4c237f85715e5fe68b50741db86d6f5b90a84ba73ae84d |
|
MD5 | d1f3ff5440dfda6ccafbf2bc551ef196 |
|
BLAKE2b-256 | 2347e9dd3f914d6421d5cb8e234eae3a6fb2ab3f03011977ea17eb93133ae59c |
Hashes for awscrt-0.13.14-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6ade490322c3c6a58d4c0612e88d7fdb236848b78f761d2c94e910db99f9de3 |
|
MD5 | 725eb8fcca34a50c6752e88f97e15a41 |
|
BLAKE2b-256 | 60575378c778421182115da8fe7d0fc84ce7301c36ed30a066ae629a4f8073fa |
Hashes for awscrt-0.13.14-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029410181cb675bfe8fc43fd84d51e2b4352b7abbffd1f85adf171cbfde88bac |
|
MD5 | d94ea4747875e80f39abeeb9dbecf762 |
|
BLAKE2b-256 | d0684503f3a754e68e5a1599482e9c4ab763753a1e2ffd8821ef2391cd91eba4 |
Hashes for awscrt-0.13.14-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5629e73cbc8f04cedbe59dd51121e02ffea4cf1a456893a519a2482708ab6863 |
|
MD5 | 216c75bdfa0b2de7c6887a1c5fd12aba |
|
BLAKE2b-256 | e4971f7486f13f3d7bf411a4688b153f05f69924d4ea8940f9fe156506145b20 |
Hashes for awscrt-0.13.14-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 134cf38e638c8325f98da60c6b3f959bb872843d95eb475ec817b998bc8539fd |
|
MD5 | a92e36dc4f94ea635467a374974200f4 |
|
BLAKE2b-256 | 41e1bf9d33db6c193e05972b71abc41a54703835ee07b3dd367a8e31033d137c |
Hashes for awscrt-0.13.14-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7b147b7df2c3b1bc38f4c9de1b367c1b6dbb55f4f0a7cf7244bf005a431798c |
|
MD5 | 04de95333b5a8bbc53023679f51631b5 |
|
BLAKE2b-256 | ed353a1a53d57b52cc4ff35079e13d20f7f306e2ed4660d6f96bfb242e19d03d |