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.8-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d0722164b156e7e69a075e7a1ad4c434a62066c335f575eacb8dce7c4e83269 |
|
MD5 | 66fdb420036f55344eaae37f65ca7aae |
|
BLAKE2b-256 | b5968ad089462747c31680117e1a28cea6572e81ce4d280f46cfad94a2c9cd72 |
Hashes for awscrt-0.13.8-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80a78d830db6480c8529e4890820976fe0861d3089c73d33f447641e218232e2 |
|
MD5 | 5acbd8deffaab829ee732268db573953 |
|
BLAKE2b-256 | 2bcaf480e4e1a46cf3c083155db27462372b085d1e99283e15b497033dfa9d0b |
Hashes for awscrt-0.13.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96fd1a41f4352e097801a2e52c5ebb26f2a8fe42808a1f7e8286676932324dc9 |
|
MD5 | 43e53bbe25419edd189013bbbe629b53 |
|
BLAKE2b-256 | cade503f795d55e9c51ed1ddafbb285e069ae55aa31856b15f7e2032600b62b3 |
Hashes for awscrt-0.13.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 960e31911f9c4e9276e91e37c93be41fb70b1f8f899b7fb7b879ff14bc5e8566 |
|
MD5 | d4df99c45f06028d5943ce961cfe7e53 |
|
BLAKE2b-256 | 6be3f0faed41dfa20ddeca427758702d755dfa3e2ce3690931e038dcf6d7279c |
Hashes for awscrt-0.13.8-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcf89e6296a27a283098e8507ef527cebbc657fe8dc43835a7dd703abd368b00 |
|
MD5 | bc6b6ff4870b32f057ba260cdbbfbc7c |
|
BLAKE2b-256 | 2f511aba497b937c2c61e1ec5868c2732d703de4ea674f8f537ef7e47eef8dbe |
Hashes for awscrt-0.13.8-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d350562743d1fdf3223b442c3b8e45e438d003d640ce40f0ffe7be2ea314ef2 |
|
MD5 | f3055ef706953c86c4c274f9a86be937 |
|
BLAKE2b-256 | 8c8f6968a960e94472fdb62621268cf57ee0b959d97dd9a1a4fae56a4ec7fc3c |
Hashes for awscrt-0.13.8-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 339bf8ac195950cbdef2c36376fba23667c348085e7a86234d25be107775e156 |
|
MD5 | ddb5d8ea8af5ff65993491287fe3aa17 |
|
BLAKE2b-256 | 24601f62fab0d08e8d2921ee40d792444502b0aaa4acc49a24c551d56219c22c |
Hashes for awscrt-0.13.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea073fa3ef3efb7700c536f8673f7952cb58deeeef627b0b322a19cfc517a456 |
|
MD5 | 744aeaa21b8332cbd93ba2ddfc0cbed3 |
|
BLAKE2b-256 | ef0e74555d3bc5e2e14c19d62135673138069f786a32d606ec4a664eead1b47e |
Hashes for awscrt-0.13.8-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c540aeabdde42ecf05ac499bcde09695636ab8b97ec3e43b45a709247587d476 |
|
MD5 | 5e8f2539427ae382a1b220fed197f4d9 |
|
BLAKE2b-256 | a003d95aa9d4dc433dc32113d789e7cb10a6d0cd2e25df827dd351192660a422 |
Hashes for awscrt-0.13.8-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c3de367f3fc5bbc1afc1e04b3dc352db2b89e655509574e92ab6ced0f7ee386 |
|
MD5 | adb9df0a30534b2d9ab0a3926d5624f7 |
|
BLAKE2b-256 | 664ebf3a13beeee2e134a015273ef1478493b2d60f02959d5113f1c6ec669c96 |
Hashes for awscrt-0.13.8-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fd114b358a363e744ec559f5035b5bf1bbe70159682d1ff454bfa145cfe9fdf |
|
MD5 | 021af86bb4897fd87e17e1dd4d78c9dc |
|
BLAKE2b-256 | d05836f24280898383f25af47be1e37218f3fcd574c3d1b522b0f554f6e34731 |
Hashes for awscrt-0.13.8-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0606018249976b8a0d8333744a9b8220541808da6f482ad1baccde94e3fb8688 |
|
MD5 | 11f1854f6277b39f984caa113066abc7 |
|
BLAKE2b-256 | b56a08d1058125db8906bc28d0cdeddf7bd3933203c1a3b84a22c134f9662b25 |
Hashes for awscrt-0.13.8-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 547c3b72c779e5f3261a8c0832bca4f750c1b8844d7b157c906233bd960978d8 |
|
MD5 | a452660f4d11fa17a41967843d1ed7ce |
|
BLAKE2b-256 | 678e250dd727a9e03892ab48d38c2ee85e2aa309f709e018518c6ebeb0504b0c |
Hashes for awscrt-0.13.8-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f660ff9fef359d1f19c6737ddf5054b72a632e5c93b6975e34d3bbc94360489 |
|
MD5 | 09ad6acc91c0c08c104ee67fa4a14a6d |
|
BLAKE2b-256 | 9d6a4ba61493b2b2beb7c9fd73b36da681fcee21c19ecf8a132c5b88a1a66e8b |
Hashes for awscrt-0.13.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86e02c1d00af52780cecb0b2647fca9c88991b1da5faf45f7a6e5e8f0f7e25ec |
|
MD5 | 0025ed519dc6f40183536658dd4c78f9 |
|
BLAKE2b-256 | 60c22a5d573c790c92928a7aff06fd2b852d0dfbc806f9e0649cb749edef45b2 |
Hashes for awscrt-0.13.8-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaecd6f0a3af351670aaf40f7fd3b2268cccd8d75dc8162f9314d4a910d34e88 |
|
MD5 | c7d6860dde01fcc8665c7e8c6d125322 |
|
BLAKE2b-256 | 19d25677421db1c678c7d1e17d593577fdb151b2bd8ad57f90e544abc2d43c0c |
Hashes for awscrt-0.13.8-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94da5b0bfd6fa3baa6360ce36cd0a7d1879d524d65f9a98c5b685d31a2174be9 |
|
MD5 | 0c1c79cc867f55f37ce9241595b6fda6 |
|
BLAKE2b-256 | 2d85d6dddd9ccff0ae05519d5d36c6d80013c93c4993d8718709dd49c46a7405 |
Hashes for awscrt-0.13.8-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78eae0bebfef58dc00000394f26da90a7e7d1027bc75f6415c70f9d61af87361 |
|
MD5 | 9c59273da8fdfa63a319aa8e1aa74517 |
|
BLAKE2b-256 | f072977a2b6d5bd50f22fc6b2a1c1b48ba4396e517b3bbc4ad7e23ef2d941d65 |
Hashes for awscrt-0.13.8-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9866100a5095dcd092a263ec37e1f5c3718675891ee81c358b4480d69c4bbc2e |
|
MD5 | ba219e79e78055b0ecfe897d7e31cc97 |
|
BLAKE2b-256 | e24714027b7afef94555bc9cc1db50444bafeb00239d620f7e26c8996d344f89 |
Hashes for awscrt-0.13.8-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e686907c3b0a5e6dcd7be670a6ef097dae3b5f516778dceb9c8057e22b3d37d |
|
MD5 | 6ee224744c5b64ca88497e76affc9c53 |
|
BLAKE2b-256 | e7f5a1ebca1090ae790f7b9010c863cd9048128398a128363eba6f2f48519fbc |
Hashes for awscrt-0.13.8-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24c707ea9f117d4dc1433e91901c2ff3a650265f89b0980f3ab1c8eb3d50e746 |
|
MD5 | 0eb5b11025c8891f3dc2802ee61af108 |
|
BLAKE2b-256 | 16266141dd96ec4b0d70e03d250a5bf7687188b2903f0396db76757b02adcca7 |
Hashes for awscrt-0.13.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e494d2781ef5263665ffc665a5cbab0a7ed22f7c02a2ce92982791b0958666b |
|
MD5 | 801d6ac7b1bc6fbd78ad6c289b895246 |
|
BLAKE2b-256 | 2644365c20f15bd465d6746740b6eb954cedef263c147415f5ddc471551b4300 |
Hashes for awscrt-0.13.8-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70a5a684e95df54e948c762452183cd13011c5ffc5ce8fb0d4e65836bfd7319a |
|
MD5 | 98c820454b67d1944a9857527451c0d8 |
|
BLAKE2b-256 | ac1a46d317bada5d3bb935436c181993da3b2698931bbbaa5644dda3307ff96d |
Hashes for awscrt-0.13.8-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79b7f559d49aa37d7dbfd555d27d7bd3ff5e5d402790ced53678e84a55c5682d |
|
MD5 | 98735d59ba4880c1636129f1a073e0a9 |
|
BLAKE2b-256 | e989b4d12e4bd09d7603df62eac6e0194d8cb13c4ea0a4dcc57b7b9338bff28b |
Hashes for awscrt-0.13.8-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e70c760b6a82b3d9b1166540592600f85ed5da7a7fc9f16913b16dae6932ef79 |
|
MD5 | 1724d4240a40d4985979c433d0ab89dd |
|
BLAKE2b-256 | 86133f1747538ee3df9d3875e546cb6f1a8290d0d2d8490143b1216fb98b75ea |
Hashes for awscrt-0.13.8-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f5c51c3985c07ea4861574084886508056f14863c45c096154f73e5ea594d4c |
|
MD5 | e6e834715b101d0d21109876c3957114 |
|
BLAKE2b-256 | 5010a564a84cfa73c4fbdf137c6fcbf94475a85347420f1bd0a3f4f0b25cd550 |
Hashes for awscrt-0.13.8-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fed5b0d70b4485dfca0f9db72ec25a8396eff090feec9269c63772f4406279e |
|
MD5 | c28e82a04d4eb5c6e373eeff539c47a7 |
|
BLAKE2b-256 | c4bb616c64c61c8f0ea9563e859d205ae4d5ac880eee49aed385e93f7c58ee32 |
Hashes for awscrt-0.13.8-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56270397a7464c81dba21a072dd2f89dc6425af3f6b5fe83685d44c436af37cf |
|
MD5 | 027ff7b5a804515787e6c882b34ddbd6 |
|
BLAKE2b-256 | 0a902b847c93cc1d92d737749a0e389f5a25989a90ec86079a58d2ac012ad9bd |
Hashes for awscrt-0.13.8-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 320435f0d49bc1bd83eeb958f7790c5826920b2c7ea8bbf7ebfd88d14fe69f58 |
|
MD5 | 318aaad1b426cb0e07657d1ba9db23e1 |
|
BLAKE2b-256 | 92809cc4e69d12b817a5a46150ba90782d7e2d503cb510d857d9547fac6d39ea |
Hashes for awscrt-0.13.8-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef93eb4f22d46563d5d5b090ce958b65ede8c620c93b49f2bf289a4065a2204a |
|
MD5 | b715bb20ac4a67dd4ed620a86b6e701a |
|
BLAKE2b-256 | 389ff605a92ec3b6586d4bdddfe393b738b2de0c97822c259269b2463af05c09 |
Hashes for awscrt-0.13.8-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af7e50ffe858d0093e97b2c80c587f4c55a3e33a9a738f5bc404ad1ee390eaac |
|
MD5 | 56484b4d8477dfa1beafde1ba2af5e3f |
|
BLAKE2b-256 | df7619aded6836c31b94c8517a336c5350e66a66a5b96c8a4df136dbc5a3a06a |
Hashes for awscrt-0.13.8-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42563b5f395ac3feb960ac0034b99bf917fe54d305868549c92f3028a9dea2b6 |
|
MD5 | 9549c709b700e7b30e5074e1539cd550 |
|
BLAKE2b-256 | 91019494fcf1898291c4b3b1d0180ea35872a642e17e56aa1ac49226c1c6cd35 |
Hashes for awscrt-0.13.8-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e189af34af5eab00448583a6084d08ade0acf83e77892e6add8d35c4033e9215 |
|
MD5 | df71d6f7fad7924f25d82b18ecacabdd |
|
BLAKE2b-256 | 9d3d6dcb0bd844396b708451827026f7742db4ee37081dc86b7a74dd0e68945d |
Hashes for awscrt-0.13.8-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6341686bcd584c59af88a4f1ec10483008a298e99e6e1331ff35c268f61501b1 |
|
MD5 | 9535daf5c4da1982caa8a79e94ef12b6 |
|
BLAKE2b-256 | 55ca3e263efcc068100344aa639135922935e5b0949bfb3b5ab57ac7a51fa15f |
Hashes for awscrt-0.13.8-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b550bfccc314a5c1160febf8c6961fb31a1f42b7fb18427ea6fe6cf1e29dd633 |
|
MD5 | a08e94f7fb0e7bc1c55505839faa80c8 |
|
BLAKE2b-256 | c7bf8ebd3c9fde019fce670c378570ed7205d0bb01baa5a197fae791d57eae58 |