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.12-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7615b90fa056b3df0485615e165c08c2f03ade0aceb2a8b6ee955dd32d330520 |
|
MD5 | 4e2795ec053b5de73c451c6d65d98e3a |
|
BLAKE2b-256 | dd927f4be35daadabc75d05fff7a5f5d3f008134ef709866ceb8cbb4ec478832 |
Hashes for awscrt-0.13.12-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab1691f663d59fd22a17bad9eb308cc79b5b61e8f3f542417b7e668f623aa6ea |
|
MD5 | a0d9ec812797a272ee701dbc512b81bf |
|
BLAKE2b-256 | a044af857446977ce2cf3bcc897488a494e6228297980a2e5cdd9de505d0251e |
Hashes for awscrt-0.13.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b2f93bea62a71fa66abc370e6884259ab37f9fbab0fbf37c7ccc4c6c2684c84 |
|
MD5 | 56517be70e47165725f33bc95a282ded |
|
BLAKE2b-256 | 0ac9f50fb9db193897f7e9cf93eeb28078d0b0bd39099f8b34faa5b1a5163e10 |
Hashes for awscrt-0.13.12-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aff6f9bb9d73765cb8af3b28660e40591474d797e5c77a595ef2eefbfc9a18e0 |
|
MD5 | 64f003edfff3a0448151f14b36959a36 |
|
BLAKE2b-256 | 579e589919319f1bb2e746ecd0aed944a0fb6523f224ec971433936ffb770480 |
Hashes for awscrt-0.13.12-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f30382baedfb98da782f83525e44edc520808802b146805905510ed467139ba8 |
|
MD5 | 0b7b53cd3ec1237b2e76cb3ce5f5dc61 |
|
BLAKE2b-256 | cc2889479e752d35555ed364faa17cf1c2c4c1d64ab827070cc62e9f1b3855fa |
Hashes for awscrt-0.13.12-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a57edf7eb9e1eaae3d6e8418cf6fa664e8d3c94162265e525b572b75058f40ca |
|
MD5 | 56fa53ae5d60bf5b2984075d5623fa97 |
|
BLAKE2b-256 | fea2be7dac69885026a60da61969a1a3945098c8cee6f06f40356a5088e8391d |
Hashes for awscrt-0.13.12-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 343b8cd751f4a486993ffac471900b13d0b454c3baa08b0f4ee24f2027f59130 |
|
MD5 | 09423df8e4c78270784d5cfa60425a76 |
|
BLAKE2b-256 | c2afe9086e082da760ccdcec10607f4d56f37ae6a4966b4ee548090e03d612c2 |
Hashes for awscrt-0.13.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ede95e454b1c906a9d4e14351d37cc71c080d20f771f679f4fd3227046e6881f |
|
MD5 | 45ed728c587e5ac94b2a5dd40ee3ce3e |
|
BLAKE2b-256 | ba9fef117bfa82274c9ba0bbf72beeae321d88db17ad1ac24a30efd97a6b7a78 |
Hashes for awscrt-0.13.12-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f62ac35e9de0960b926e6c57e8530c2e286f44b01e0fd3acd2e6ea8e489fe941 |
|
MD5 | b2aeb282ef03230cdbdef21a00579f7b |
|
BLAKE2b-256 | 1c1b127c0d1bd0514fee8d40d5da32fcf4844fc7aa220b749661e01bbce74c2d |
Hashes for awscrt-0.13.12-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a836865afe8ff437cd6a0d726417f95f3b79ab123cd3737ecf26061d040ea86 |
|
MD5 | f03b1400f1cbabbb9f2981b48b1a7d04 |
|
BLAKE2b-256 | bb449286589019f88c9480be2aaeb5fa522bb4c9f752983c23386bcf595dc253 |
Hashes for awscrt-0.13.12-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c65fbe3ff607a55f54b97b9d3b467fc68b9a66e0596afe9a6d36b3479c5be0 |
|
MD5 | acaebde296adac96794d5ee13b5350b7 |
|
BLAKE2b-256 | 2741c1ab23025b2ae852e4c066a1f9d5ac9d0fa61f1624f94b5a911606c8c7bc |
Hashes for awscrt-0.13.12-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70318df1f453905e7d562c3633aa93f85e8ab0e70a299771472e09cdd7955486 |
|
MD5 | a4ab078bfcbaef8107b08ccb8220b8a1 |
|
BLAKE2b-256 | 0f724ee776e722aedeb18bfddf34f655e491711ecd495553a4344c177369afbc |
Hashes for awscrt-0.13.12-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0276247de5814157e43e16fce96451990f21ce38416a1cc94f78206cc5f06f51 |
|
MD5 | 5fdb4fef0860322a3dc688eec16e56ff |
|
BLAKE2b-256 | 06ebfde0d430b710858e901d05f4ff41788b55f156548b76a9ec88f9b15b7a97 |
Hashes for awscrt-0.13.12-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 854f92f052a6d22db2526fb0057df32bb02318708e37bc92acef754c68aee2a6 |
|
MD5 | 876a2192eabaf56d2e070127566b447f |
|
BLAKE2b-256 | 314c9c35a4bb87b6d6134afc5fd412caa2879126ffcb4eccfcbaec11cfcf9987 |
Hashes for awscrt-0.13.12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e72c50ed8d52ecbef2880f7d97b98deb917edb9ae7c962832895d6a644613891 |
|
MD5 | cd1fde1d1e69d46c898483e6190268ce |
|
BLAKE2b-256 | b51e9c8d69ba17824ca64db85fccf8a624a8d93e8cdae5a708d73a7c956c2123 |
Hashes for awscrt-0.13.12-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfd9406ca481f9f92e9bd923b3a53f1aa4d43227c79515b6219de1ea4c740823 |
|
MD5 | 32c7a4d4ae1b11d80bdac5a4464d72f9 |
|
BLAKE2b-256 | b83fc20ef818777413c3d853c63345b19ba051ee3c03d2075fa2e4b6aaefb232 |
Hashes for awscrt-0.13.12-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dbde8a54d36877116e2616a7badfafbccdb7152d53ccae0d3e74f02d1abfc9b |
|
MD5 | 70946b27252ed7bdc959f99e9b54b186 |
|
BLAKE2b-256 | 5faa81a02810c5cd19652b883125588ec8e2e61a991bd58756800f1bfe49821a |
Hashes for awscrt-0.13.12-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdb9be6d9078d41632091827d189a46e0106596f5d08781fcffa731c4c72a96f |
|
MD5 | 177b9e0ec4f6571482ea8fa2b1c326a7 |
|
BLAKE2b-256 | b144ee114ed0829a4acfbdd52ddb73881b282e41a51718e5e70d7e7e1e69fc34 |
Hashes for awscrt-0.13.12-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f0288564d9ba8fda3a48101146388c6c6432bc0e60ea09d15ae932bc6c2e6f6 |
|
MD5 | df9f9eb9eb830cac5f1d33d71277948f |
|
BLAKE2b-256 | f7e18ff86ee9fe630a8c0f6a4b1337a2fed425c62d83e007640774320c36a81e |
Hashes for awscrt-0.13.12-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dca04d8ef9fe8ff861ddf37c8a82e712322767b825b2619432a44796329538f7 |
|
MD5 | 5412c38d384046d31a7e640a89e2dc7f |
|
BLAKE2b-256 | 889e9f1dead2d139546a184f792232c8876384922ce9d71a5752680bc302916a |
Hashes for awscrt-0.13.12-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd55411e5db7529bc6f279276367b63208dd10471d6f0388bdc034d9c1875f66 |
|
MD5 | e63db14d43897749ede2bec27458b16d |
|
BLAKE2b-256 | 7b1ea255d9f10531ff6e9702e267240a0a0b27eae8bb88c108428f96b265881b |
Hashes for awscrt-0.13.12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59e28ff89a274dd96e153abd41cb37cc5c04f53494426828d0a6d0aeb503a01b |
|
MD5 | dde70cfb67e9d65375f759982608f61b |
|
BLAKE2b-256 | ef954ba77b11d8425ed5000de7b89f25c76d61b2eaa9cbb6b18ae41619b88b7f |
Hashes for awscrt-0.13.12-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 794962d77fbe92d78c5e432b6d9b07e8637edc25b6539bee517d64361559a358 |
|
MD5 | f14fbd5867e33fcbf72fbab576e53c45 |
|
BLAKE2b-256 | c13f404fdf2822a0f3ae21cfe2c37a2556ba6be4be234aa5c35f5fdfe5386cc4 |
Hashes for awscrt-0.13.12-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6f4e08931ec19421513c95502a6b6b3e805c8c0ddbd3c811e79142fcb775d8f |
|
MD5 | 013276d048313b378e74f83483dc7382 |
|
BLAKE2b-256 | 9981b9d0a831e4928d8a45f8b422f8ef6105e07c72ad2d30a0d47846573dd7b1 |
Hashes for awscrt-0.13.12-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cf4248ddca1629689bb9e21e6fb3a69e137254e3696d823e772cda8c2a025c8 |
|
MD5 | f5a83bbac3e39d85476d33f3903561b2 |
|
BLAKE2b-256 | 9fbc8c06d36be379836f309195be5dd666554bc37be0436fa5d302735372d586 |
Hashes for awscrt-0.13.12-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2bd19a18c4639948b4009c4e9aefd51e214bec98c42f58b5ea3ee298892e0a4 |
|
MD5 | 8ae7108dd799ae53aa9c784aaec2665e |
|
BLAKE2b-256 | e9b4ec216e30ab89715ce1d38e7a0e9cb3d8d3a9cbe5ec05659911b0a1c28463 |
Hashes for awscrt-0.13.12-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 953cde702e4a2c9fc459ca5f943769178b32a0b57ab2c5ce961e791dd8801d31 |
|
MD5 | a1f7507cdb334444cdce0c466ce7a599 |
|
BLAKE2b-256 | adb7cd6594480c8c81b317f8631f2e7b33c5558bb0c0e9950960a2817fcfc5eb |
Hashes for awscrt-0.13.12-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ab0087166aa5ed50c9fce3cc677b4c27b2dd10e431d1d1b0583653ecbbe2d35 |
|
MD5 | ed82bb4d0937a54be0e3a937e9bdb0ea |
|
BLAKE2b-256 | 597ee9a0df4c316a8860e8ae7acf73ef2822191d12b7138cb14033a6e65dbd65 |
Hashes for awscrt-0.13.12-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3fc9effbb6b5437d89c49cfe97f7b02b98aba84842be2a56c1d8e00338e976 |
|
MD5 | 9fe0534fa434e694e7d42d71fd53f6e2 |
|
BLAKE2b-256 | afed68fb3827e2af4f364244e0c48babf207b154e9984d5e5a33daf6b6b19f0a |
Hashes for awscrt-0.13.12-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f66aa79a8a48d57eb7b3d31b772318e28b92090ddfc686e7e70294bf7bcb2c86 |
|
MD5 | c097078d5e40b65e13db2f70a352f66c |
|
BLAKE2b-256 | ed5aeed2023d49a12c2226d9588551f9d35b802f372e924ea1a5afdbb6948789 |
Hashes for awscrt-0.13.12-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce8bc872d2c31c0a288258704f2ef5768524be8af9f623eed4b8c0f476b06ae5 |
|
MD5 | 26afbec921a8553133a9b3956f1d465f |
|
BLAKE2b-256 | e0e089f1533d88379c60de096b7e0ba94bdf637025eae5894ed20d50a443b2b7 |
Hashes for awscrt-0.13.12-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57871ba482e9e4ba7f9d96c121849ec66f04117011112f705d2be24cc5a0ee4f |
|
MD5 | 5668b2b669db884cb7784c770723eb43 |
|
BLAKE2b-256 | 698806a2abfafaa4a70612e4eea6e8149bddf0a431ba936561c5aac5791171eb |
Hashes for awscrt-0.13.12-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 289942740bb1a9be183001dcfc9250a8dc3e503ce76aadda4289db8ee713d34c |
|
MD5 | 2978bf9e11aa35b0e5f4bf2ce6fda281 |
|
BLAKE2b-256 | 341903955837f97dc9e5e903a1976f75c3e80be02e0c24a0009e4d514b2daa61 |