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.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4aa985f20a31895d200d6f2ff270a735aae3b157620a1ba00d641c1f7506786 |
|
MD5 | 533147e00781bd614dd01d247978283f |
|
BLAKE2b-256 | 9009ca6586cac9411025158df8072d8fdd18e4a054f2ac0b4a5f2697bdeb767b |
Hashes for awscrt-0.13.4-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5930ed7bf6f01f4ccb1c45c7e75d92c234d02e0e6f64eb3d3ad4de97941deba |
|
MD5 | 0aad1c7f6f194f4418a37d173fb2c5f9 |
|
BLAKE2b-256 | bfec5ac53b8819134a39a23f53d865baea3b4684e9b0c4b29334cfd8163a7c51 |
Hashes for awscrt-0.13.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b60dc021bf9b10a8c103a0d50f5a0a446af38819c19199a76385b4c88a93c9e9 |
|
MD5 | 97bd10a637fb8f5aa8300e32c9804feb |
|
BLAKE2b-256 | 5a6bb6cf73c36d5abe67a669af1bb8a5b74899636b591e8b1a14e64689bcfd43 |
Hashes for awscrt-0.13.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48236235da3bd56997eaef9c53d533b1467ebae4f51c8497564ba9f960bc1073 |
|
MD5 | bf4d7c45b477011361eab10b93434807 |
|
BLAKE2b-256 | 3589dea41126958473b40a3748ef9d63ed25d50b59b27680d7218109ea2199d0 |
Hashes for awscrt-0.13.4-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dde16ecb3c4e2214b324b1fa0f6a6c9cd079bad41264e2cda71bde0cf1d8d08 |
|
MD5 | 0eb113be5787582eb8b58f064d0a32f5 |
|
BLAKE2b-256 | e87989d8f61c7ced4b2a40929b4c32f58046f431b648ad3d54dbc5bdc785c139 |
Hashes for awscrt-0.13.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9996069759346289622eb42eeac181227b554c1de3c0f225f1fb7db5c4c9ce7c |
|
MD5 | 5482f1e270a562db16a26f18deba656e |
|
BLAKE2b-256 | 718b206b482ed7b18029cdae460d72c14a6adc79f6cebdde122c37e4f3ed33fe |
Hashes for awscrt-0.13.4-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7af487a03861380f68bbfc11261ed17cd0da219fd7f94b0e3d50e55fffe79ace |
|
MD5 | 13b073c3c969a3db87d95d91cb853481 |
|
BLAKE2b-256 | b2ebb0cd44bc1d0ad8482fdb7ec69a57469bfe7beb659814c2f34e4ed0a7e8ff |
Hashes for awscrt-0.13.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db4157f3f9804959a022a6372a4edfa3177f3698c7b47615bd8d8adbbf52ce76 |
|
MD5 | accc6217535aaf4191e744e285da2ecd |
|
BLAKE2b-256 | 7ec3649b3372bad0f5ce0fb3310c9624808a396ded4a8c0f1ab6f8b4cad7411c |
Hashes for awscrt-0.13.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b164585963c759ab4f0873a1a4ba0e95534c56c432fd4bd6cbb7913b45bf3736 |
|
MD5 | 1da312e4d0aba0c3e1e7f3e32dbcc968 |
|
BLAKE2b-256 | 5602ecaf18d228a16d19d0b51efcc8759af44c6888c269b35b479cc91605aea5 |
Hashes for awscrt-0.13.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65ad61cbcb03c28771a69ce13dbbff8baab1b4110cc085d6e733ff6e6c9302c0 |
|
MD5 | bf3b73379611d582eac7f4714ed4f417 |
|
BLAKE2b-256 | 358cf6f26f437684b1b5bd83eaeb707dcef1efd01016153e735b53bc7c2e5205 |
Hashes for awscrt-0.13.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d86971c502d86825d503fd3075ce24782fee6b225be72a598b608e74dc1d3af |
|
MD5 | 624739fe213b9fc499f3b9384ab02662 |
|
BLAKE2b-256 | 83b67ffebb63c6d10f7f748e27fdb7955eae9ebf0aff12c39778d6009c02646c |
Hashes for awscrt-0.13.4-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb3820470dc6f40de724a06d4e944424ae1833502bd4538e96a73b3bac1397e2 |
|
MD5 | ae3084b4cca114edb35b9e7dac9eea3e |
|
BLAKE2b-256 | a10fc330fe1243bc93c8a7a45636bfd608ee37b42d33c59046dc16e8ac3d00d7 |
Hashes for awscrt-0.13.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 913de86d2a4104c4c4743881e313a2fb237bdd4fdfbd024b8674e346e3ce9018 |
|
MD5 | 08482fb22bd950c8d195780546011d0e |
|
BLAKE2b-256 | 4db8e7af965fc72d76398342b4ea2a30504cc82ef862a31021d595ce7d07a16f |
Hashes for awscrt-0.13.4-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa020326aa065d8e350b4db7de3c53cb7f1eb252b41eb3c1159589c816ed90db |
|
MD5 | 83b7aa457173fd5a5d1bc30ca73fcc4b |
|
BLAKE2b-256 | 8f502f72cc0337d273322806acf2486acc8a3b7185aeca2176220cc4197065dd |
Hashes for awscrt-0.13.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6540f5b7a4bd957c3ba0e6ae89da70ec2271d5900e50a1d812670ba47c313c6 |
|
MD5 | 703dc9ef472ef5ba819749eb3c866b35 |
|
BLAKE2b-256 | c17fd6a37b5282fb27b21e79883d4e245f7e4a2c4617c5953ceb63a9402b0ffd |
Hashes for awscrt-0.13.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11519df7d30fc23f994dc6da468a796c32fe266379761049719712d42950d332 |
|
MD5 | e344909181cd46de2327893330b45f2e |
|
BLAKE2b-256 | 03e1cd1ac5bc5593cf97ee2f95a90ed5b5991a7aae9e9354bc5a5536416ac256 |
Hashes for awscrt-0.13.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1871f458f636485871c644c4a3f30ef20c664ea0f5e00329fbac1a49bf3d42d |
|
MD5 | 9b13b31927f97c9f9a9501916f522bda |
|
BLAKE2b-256 | e77167bfce6eefde47289962d767c592175c52568e404a44d90415268d82d9fb |
Hashes for awscrt-0.13.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21e79b9dc6ea4bbd15ff5c63841fc33181065f6cf414803d880b817b85a6b77b |
|
MD5 | 2143626b89c30ac17603b21e359cfd87 |
|
BLAKE2b-256 | 2187694fc95c93a32b7f2af56a79bacf283f55f5d1da6fbea7f1332d8c472cf1 |
Hashes for awscrt-0.13.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 096de16bfe4a206b69b21bde2089169213f351e0b65b36e8a8a8b4f26d56e071 |
|
MD5 | 2697175a606a430198dc07e81d95fac6 |
|
BLAKE2b-256 | 7db759f4ae99a1386387f02fb1e1447e006a367136636bc639c93e6bc3c559b1 |
Hashes for awscrt-0.13.4-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3276bc6fbb015f8cf93bd3b87012c588c30d6e368687c1b74e95f61003bb2ad8 |
|
MD5 | abf4475509419745f8bfd46ee30b234a |
|
BLAKE2b-256 | d622d1cabe7bcc62c50e7f4d54e9aa8eed3b01e6ceae51caf600696a2a714bc8 |
Hashes for awscrt-0.13.4-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69c7c27eb592b7d6800bf127904938f4c0f602f63dfbfcc81d0d3afdf808153c |
|
MD5 | 8af23291aa36ca2ec249dcde800fae2a |
|
BLAKE2b-256 | 75f5c7a6884aa2ef2d3fb04d56f55919069d689ead5576170d79946dd9e2241d |
Hashes for awscrt-0.13.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 154e7add2dd6c6d2f18bfd79acf9c6500ee0b5ff14bac4de1303c89c8db94204 |
|
MD5 | c568df24201b197e059d054ffda50af2 |
|
BLAKE2b-256 | 43f071ee9b7f1a62c07eeb549de4e7b8e264f5171f435ef16e4d90f8687caff9 |
Hashes for awscrt-0.13.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d52541538a71ce363ec002a1c7a9bff3dad1ff0efb12e05f82a0e8ee24ef1f99 |
|
MD5 | 976018fabc50f36efc673bccb8f96613 |
|
BLAKE2b-256 | d233def02d688a511fa03e02ffa8a21f3075c11839d9634dea4f3849c1dd6e68 |
Hashes for awscrt-0.13.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e23a81140b20f9a4552a6d4c02e9026ec189d16423306d3ece7ff3acab6331c6 |
|
MD5 | 95adbcc5b65f5797af8b6796d379b863 |
|
BLAKE2b-256 | b3833ee12d503d8767514270e845d1f8db031b717cddaebfd525faaf98dd6c20 |
Hashes for awscrt-0.13.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e45840a356bf5313cf38e5e7d9c7a58ee2687c3455d87720b9de95cd73e6ec2 |
|
MD5 | a80ae48fbcf1330783fe4a8121d194fa |
|
BLAKE2b-256 | 5c7a97f045f2649709c686f2643cbabf43be30c532feaeb3c6c9795c140f7ec5 |
Hashes for awscrt-0.13.4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e250302c918fc79e93025915f7e4e045fd66144fb144d6df03f22c1afef4968 |
|
MD5 | 9bb1e4d663788eaee027e5ef86f76f34 |
|
BLAKE2b-256 | cabbc40ecd05e75a4bdd96727adb6e78d150c06154412d4932dfb1681bf23369 |
Hashes for awscrt-0.13.4-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2166ff6d297e4ee766e7858bc376a9c4605b747605ddbee12fab2bde09ff7016 |
|
MD5 | 027843aaedb7f09e5c2371efb984020d |
|
BLAKE2b-256 | 4727ef35af7b917b01d044077439e85bcb309f21f203abbf98f12e5908ec0f08 |
Hashes for awscrt-0.13.4-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b547964c74de661ed3ce05070151ada096c8e49fbcf031c76742217333b92201 |
|
MD5 | 032778515c79591447317f107a220386 |
|
BLAKE2b-256 | ba97af5d2e27f9dce3641dc9835d27034fa5be98901c924ed506aed912fbe6db |
Hashes for awscrt-0.13.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6800a364fd77ff109363d70a6cb89acf2560039decc380f5cda60a325a0ecbe1 |
|
MD5 | 352785b925407aa512addae02cb1d699 |
|
BLAKE2b-256 | 77b5724df42c40e752e5fd4995f0ddb5206bb192ed4391549c929ea4c6359df0 |
Hashes for awscrt-0.13.4-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ae02dd825c206ff4959940b33bca1139af3aee0ca6a6cfe573b3cc87fd6e852 |
|
MD5 | 897f36d83e5abdab27067c6e27ab02f4 |
|
BLAKE2b-256 | 1011ee0865565f2eac7593735ce4e83c387088ad53f97e0b279e2defbc46d756 |
Hashes for awscrt-0.13.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f5638084be6cf2db16496e96eb2f981ccda598b48f9ae938c5d912cc283bbf |
|
MD5 | 502bc8c25b95e83e8d585057a4fcd444 |
|
BLAKE2b-256 | a584079c90c63ccd15b943e1ef59212ed9a3f8d64f7755a2d5c74cb52749748b |
Hashes for awscrt-0.13.4-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24d48cb830ec64801dc6bd4e765ae61d630df07a8728dac2758777e4e9cd003e |
|
MD5 | e4aa84ed2878a17e4e528c27fedfbcef |
|
BLAKE2b-256 | d1e086eda2e6149f3191d5b179c7ee0907a8ac6b0d52269481281cbcf38555e9 |
Hashes for awscrt-0.13.4-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8204754271859e4f1eb7f575bc3eb01d81a00ccbda4eefec6b29793d7a44621 |
|
MD5 | 95987ce9d74ca9623db183ebc900c9c1 |
|
BLAKE2b-256 | f5eec63c886d32a05ac4b1309318bd5f0ee7439eedf3746b383fb930eea87a57 |
Hashes for awscrt-0.13.4-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3c728f2de48181f52892e1e3af8a6bc6091475c7ae31f980a37a527b5cc048c |
|
MD5 | 2f92cb00c8947deb508d51b46d0d5647 |
|
BLAKE2b-256 | dddcd26f130c91db3e41db5e80b9ff64a8e4f21289b24c63a9e8f2089410c68f |
Hashes for awscrt-0.13.4-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 056b90e03ce8188886eee615e1e35a1c757e9b76e1562346317adc3fa26532ee |
|
MD5 | 9055d1a5a5c4cf8efe2f450c97f16192 |
|
BLAKE2b-256 | 298624daf44e9a2ea9a0b934a439dc9ae4ea4341945260904743067be6ba4da0 |