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.9-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52009ee295cdfea78854cc1fd28a8b58083fdda2656887bd401df4c6ecb83c4e |
|
MD5 | cf654ff9def6b93d00b49f344ecf4d92 |
|
BLAKE2b-256 | b2cdc589dff2b430ec3fded3124e90543a5fdef6a0ab9747c608da600f6718f0 |
Hashes for awscrt-0.13.9-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6e035154fc3337cd5e5089c6b1aaab5c7c6afa42300c4da209667ac2f646e88 |
|
MD5 | 28d5b867ce9759adb7584f92071ff8a7 |
|
BLAKE2b-256 | 0af671605a78a27a378184756ba8aead277fa56ce415c65a9b69183f30f9f3fc |
Hashes for awscrt-0.13.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3c2c4472b18c4c9377c8cfaa593e3211b4acd7b52846d83f22cae1d1e94bc53 |
|
MD5 | 68fe26fd2e760e68e81fa61083865e30 |
|
BLAKE2b-256 | 5a83488313a365d20027aedd78bc9cf9be5e43dcd3e893d98a58d30f5dea89c8 |
Hashes for awscrt-0.13.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 548575ed7e9b04d6dbfb8781cabdd582bbc9266f775fc53d54355f2ee80012cc |
|
MD5 | 1fe10926332483961874816e4182e05b |
|
BLAKE2b-256 | dc5b85ee4db883b3068fc377c77f6ccf3270d090d67bfd590f08e5c43868fd8d |
Hashes for awscrt-0.13.9-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63bbf1c35efda10bc36cd89c61177becef723bb6bbc35b27f1d64785a4a4d81d |
|
MD5 | 8102ca6d5e8a959bb9a3b28398a51965 |
|
BLAKE2b-256 | 1430bb0c91aa03f03a80bb8b8dc40869e426974d967c209ab7980b0269ad5672 |
Hashes for awscrt-0.13.9-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ad14aaf97824881df7ae08f8889d2eaaed356a0a809007621eab6179f913272 |
|
MD5 | cbb79963223d67ba413041183608e0bc |
|
BLAKE2b-256 | 7964f9f96160796c342a0715cd0db2f40471fb433af4c6d61939400e5325c8a2 |
Hashes for awscrt-0.13.9-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3e7bfb945c226e78382e77d46ade844dc571a92bb1583a5f15e9ad4850ffda8 |
|
MD5 | 686b1fca7819a156ec432ebac3ea1e7a |
|
BLAKE2b-256 | 96740468e4ac26c17e155adb0c7e675491d01b1decaf86ae321c14481d8331cc |
Hashes for awscrt-0.13.9-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 511399a95af216e5d92fbee4879a9da91d2df3a398f5ca2da89ed477059e2e4a |
|
MD5 | cc487dcfd68528dbe196d6f8873daec9 |
|
BLAKE2b-256 | a23b2bde893ba77959063847ae7bbf8ad0e3b1c0de347b0d767d3befa68996d7 |
Hashes for awscrt-0.13.9-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a18832380ca57839116d6209367acbb09c853d77b56ef26c081b276c5542019 |
|
MD5 | 6409d8c39d4b1b10659b974d893565c7 |
|
BLAKE2b-256 | e1d3e74d0852e3cda8b4e10f808e7dba89c1c540a809ee5faa25bc3e68676afc |
Hashes for awscrt-0.13.9-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a466a887265251d344af9defe18a0cdf5edcd5ff6c7660a8c2fad06be13b684 |
|
MD5 | 935c4f91b82e4390b964b3bfb4df5f5d |
|
BLAKE2b-256 | 5bffe7adba06a8747c2d33755190862b6616fd4e46ae87bd727864b6cc82d885 |
Hashes for awscrt-0.13.9-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ca3278bedb3605b4b3f081a69f7373e0b1f1efec800558c17617e377091d179 |
|
MD5 | 7b6a42dd2b4940e29e4d3b8ed33830a1 |
|
BLAKE2b-256 | 517881aa1ea32bfb0381c3d07b9f4ad4d015791f3646d786507ca56518c90dc6 |
Hashes for awscrt-0.13.9-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e5da0ea380272a0a5e843a730ecb10f0f02ee354f868f5fd8cb08a6d749a989 |
|
MD5 | c21f730a95a64355bd83b9cac1f83a0c |
|
BLAKE2b-256 | c400029af6db7ed27410f206b1c27de075ca4ca2f7b8d184fdac52889b08fa0e |
Hashes for awscrt-0.13.9-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71ba5fec107a48404cad64abac7a15771f9048111274981928ffac01b8c04ed9 |
|
MD5 | 136ab005217cb8e022770af08513bc84 |
|
BLAKE2b-256 | 12347b1a55844a21611559918fa150751880d004b064700b9b0a342ea2b2baf8 |
Hashes for awscrt-0.13.9-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce5b56b79bb89fba0a8976dc5bb382704148daaf818a29aa96a978a69b02d55b |
|
MD5 | 7e6365b29401288a0451186beda542a2 |
|
BLAKE2b-256 | 1dde8e04e04e2198c0b8548ea5d9f10fa33fecd0dd7639bb6c7f8b14069ac40d |
Hashes for awscrt-0.13.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00b104a20f2bf585bc11a9a2154d35d1d58c00620efbf6603c654ba5d42c6b63 |
|
MD5 | a43bf2df93b7b059996c47bce4549715 |
|
BLAKE2b-256 | f4dfb9b594aa2b3cdba2b04fbcc59b048aab3d931de4f485a5865865db7667a3 |
Hashes for awscrt-0.13.9-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e656eaf5e7d45d8f7657f15d2379a41665a8af3bd0cd3d45d62b05bf414b5358 |
|
MD5 | 3419dc353e4c4395fd69ba6a5e8b178b |
|
BLAKE2b-256 | e03604a9e0408d0b6a19a78cf977b9ae5dd93abb1ac53278e4bbbdb1c3165b69 |
Hashes for awscrt-0.13.9-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4803d4bb0cadef8153d42dd59ba0aacbdbe83f7911ab5e543522be1a37641d |
|
MD5 | 40c21d009500300ab0be9813e785a4aa |
|
BLAKE2b-256 | 80414bc766ee77e798ee4d4c9e49489a7f3fd6a0ff9430e5183cad57233fdda5 |
Hashes for awscrt-0.13.9-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6565f91f8fee311bd4f84527e06f0fd009981b0190b986e05fbb25e9962b1162 |
|
MD5 | cc6414fe9ac4fa86fba7c84b1789cd66 |
|
BLAKE2b-256 | b3312104397010ac50c3813f9a5c970e4a074a4c7b59fea4aab0af761a9a2a8b |
Hashes for awscrt-0.13.9-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 412345696d2480b59a4019fbce9e633462314041cdc596c1bd318d8cca65b73b |
|
MD5 | 82d25c1d23e2282989e5a51c32fe5d60 |
|
BLAKE2b-256 | 31cd28cb0d8bb37b552bc09c3838d425b5a3ceb3a25ba4cef9c594961f629e42 |
Hashes for awscrt-0.13.9-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e3085a543e159ddc02fc8e3d10f22a2bbefc837fb1f54826370933de4a202cb |
|
MD5 | 99208832f9bfe628a20b4f5f8c48252a |
|
BLAKE2b-256 | 0e0e285d9fe5196ce415daa65d0c4e913697b31ef8efad0fed9cf7a53e5ab97a |
Hashes for awscrt-0.13.9-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 930d5903bb06019194274bac186d2bb17cc771fdac1a47536ec1469aca447e7a |
|
MD5 | d68070183478d49d91746b193b2be5a0 |
|
BLAKE2b-256 | 094e800b5c2cf2454ea2e3061c88e6498438137f299a477f4c72f689ef4bddc0 |
Hashes for awscrt-0.13.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 233e35b376931941e8567064d854fe465e58c7de02afc0d0ea6c40aa2f2d1cc9 |
|
MD5 | 613554e83a3b98eb9eb1263c21a6de66 |
|
BLAKE2b-256 | 6d9537fb33b09da6d3db37eefe6ac6b7fb775ac05391ca146d7427aec4d357c1 |
Hashes for awscrt-0.13.9-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d714a35f6161db698558bc4ecc0b61fa40dd70f82697baf4778f6d742b755ce |
|
MD5 | fb069a5f275b0691dd5e34985f04295e |
|
BLAKE2b-256 | f109cf80d2c7299638be763b0312419e7eb698d24120c6b37a59579224fef72d |
Hashes for awscrt-0.13.9-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 823f197251adda635224d6c50152984257b1ddbe2a2c3a50b1049ba1365f9e15 |
|
MD5 | 66fd8afcdab84b5ee11d0db9504841e9 |
|
BLAKE2b-256 | 2882eedf236b85d9c5b0795e16678c485635598ac2755296f4fd41b3cc37640d |
Hashes for awscrt-0.13.9-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 986ba3866b74f83cb0aaf6ef0a18a47fe552c47b055d67d822bcdf5e6d91a44d |
|
MD5 | 2548e1ef4547e4e676bffd18948b6eac |
|
BLAKE2b-256 | dfbffa1624ca61eb40689c47fb16c4b484486a77a9b2613f2ddcbdf0c752b32b |
Hashes for awscrt-0.13.9-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26b77a593c898ec794406c704a0a124a72335fff37df46e207d66b081255972a |
|
MD5 | 6b130fb8681b83b31a344fd685c8153b |
|
BLAKE2b-256 | 71abe4ede72f3e22e0da9c989614a6dfc145ceecedbd76217f8eded44577d5cf |
Hashes for awscrt-0.13.9-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 459fddbe18e68b7683b36a012f7d71d8bcdb807166982d151d54b407dd2ac04e |
|
MD5 | c6d3cc8a53374166f7ff6e6876b40925 |
|
BLAKE2b-256 | 12f235a02836036f69989869253fea97afe8a6d1ebe9c9ccb2ad7bd796716327 |
Hashes for awscrt-0.13.9-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5301e42671eb2046c69a4ac93b05c8b416c33979eb4026c9cc1bddaa4a58b370 |
|
MD5 | 0923ca753f6d81f648ec68612e9d4c10 |
|
BLAKE2b-256 | a0b47b41587e6306baa904279647ce1108b12a8e5f08f638384a4a51c287f16d |
Hashes for awscrt-0.13.9-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68e9258afbd98e3a70804df5ed2ba1b542f0d87a625c1717322a87a3dc20218e |
|
MD5 | 3bb0814596b83605f61b7e748862e97b |
|
BLAKE2b-256 | 8e66894bf805faecf3a892b357d114903e3870c37c75abf8c8b3575e38d5d734 |
Hashes for awscrt-0.13.9-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8e28b2101497dbf9c2dc4d2279bee2f13e2e248eb5471d58d68d39f133914fc |
|
MD5 | 0c479a4b6f988b770d02dce8b5be6a3f |
|
BLAKE2b-256 | ad3a4b47fdf4604b0eb1f676770ab37852339f8610d76b5507bbc3157018f718 |
Hashes for awscrt-0.13.9-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1bec75d3aa252fb7f55bcfeb76de0425d794c848ab10e0c790eaccc7b0d7ac5 |
|
MD5 | a1b6951449d419c137ecad408541ce8d |
|
BLAKE2b-256 | 6a00dcfec3d23f74b5195738551658d485ec3876eb0cee464b7a11e6d27f62ed |
Hashes for awscrt-0.13.9-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14b96d77f2ae5e011861251116464d64c7f5ad9abf1870cbe0231252adce7b8c |
|
MD5 | d1589240a06d5b579cbe35ae39e9b231 |
|
BLAKE2b-256 | 399f6d0f323fff626bdf66481de78b4d953c70f4ce9fdb601f63bf2727644eb9 |
Hashes for awscrt-0.13.9-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 530d4324dcdd93e3d98c54b5b3efcf08074d7a006767fc5185d7a26437acb1b1 |
|
MD5 | 38a14abf896f10e5e48eba8fa72b7e7a |
|
BLAKE2b-256 | a9f391150f8cafb006f6550bd96e220aee457a584d729f0d76367ecc95586b20 |
Hashes for awscrt-0.13.9-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 251f8f54f4a68a4c7ee5a25e1fa43c0906e737352cfadac2013471abac28b28c |
|
MD5 | c2187269b246a542cc3be2b2f2029d35 |
|
BLAKE2b-256 | fa301c5b5e3089d76bc261f6175f665a4ed9a45d42331e03bcefd200063d4b00 |
Hashes for awscrt-0.13.9-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a8d734a5d4080ac75ec81e242db06cf813400c56b1e06656dcac451e97debb7 |
|
MD5 | 0cf1b2e73562e46cd4e77c019440e046 |
|
BLAKE2b-256 | bde63a156195e63358a91153099d30276f2dab15c590e0f80b871a1fed62a78f |