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.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e3d1f265e992742839fada6783685894847bc171f380cbf9ef3ff189617a458 |
|
MD5 | 8f0e47ece183eb804eec57585e2a0f8d |
|
BLAKE2b-256 | 089fe0922acbe83fe88fcc7b6fcbe84882cc821839b76dd903894b2868076b6f |
Hashes for awscrt-0.13.5-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2388fb21b3ecb0024151dc4270ffb6f514464a807a42f0c5f90b164afaf00c46 |
|
MD5 | 9a87d030a7764bf33659c647db5f8f46 |
|
BLAKE2b-256 | 383c7724871603cb7982961e8120ffe5a6d1270bd0a2e3a44ae91f48823fb900 |
Hashes for awscrt-0.13.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c70f80162da5634f32db4c9411cffcfedc96e75a9007f3e91e2bcca80f0a677 |
|
MD5 | 1b680791f4580d2ffae401967ef5c83e |
|
BLAKE2b-256 | fb70ee08f02a2fc5eb4f08361e3132ea9fe770e4638b50734d7360dd9bd30642 |
Hashes for awscrt-0.13.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d25d1d2647c827591dca9070e0f5c495983c84c7c876bd56291ca4d32d69228 |
|
MD5 | de09f37b0eb179588f694783d7cdd30b |
|
BLAKE2b-256 | 447a52077b5eb49adff58cfeea47f55be598f0da4d5156426769ae92e3eb732a |
Hashes for awscrt-0.13.5-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e82e2b6926143cf5094136b20b86cc6bba1d8d8045c5d685cf012fd9d6817075 |
|
MD5 | c39b280d3523b986095f749281078931 |
|
BLAKE2b-256 | 93fd8fe22a839bdb881928ba769cfee7b3aa8cd4977f7461f582ac4bf0be7123 |
Hashes for awscrt-0.13.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea7a9498b9cb8f412f24db864458764d0a306c6f2cb07bca6889b5070f9ee430 |
|
MD5 | 7f22d5c1b8764b3c4697006372b18e91 |
|
BLAKE2b-256 | 2abf4ce44065f8b09af7b0b2152a91fd4d0a67d399323ec9788d32c91d393a7b |
Hashes for awscrt-0.13.5-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c68d4f2a313af14bbce7f3945b9df6f743fed54bdb0014caf086a11b71e80fbc |
|
MD5 | 7e860015b46ce7cd86e8ff21c444dae8 |
|
BLAKE2b-256 | 5da04c2f630a8e8f27061511fc9ec0237b2c3c25c69e71f3186822b3caec177e |
Hashes for awscrt-0.13.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5387eed5a306f16dbb048f4f623670f259aefea1e3c22e36e09be89311dced51 |
|
MD5 | c890b99f7d4a0bc3d877a58d402bed93 |
|
BLAKE2b-256 | c0f37c4ad8b3ee61c9c7bf8b74249c83de2db9ca1bf18cb6151ab07bece534c3 |
Hashes for awscrt-0.13.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b4bc58bed283463749ccab66cf3687e3b50db7e5213714401ebc38c619eafce |
|
MD5 | 783020a02e481ee9e1db87550e662259 |
|
BLAKE2b-256 | d1ef3dd256a52e61fab5722be154acfce9d70d63b89edc85fbd92c0180498f88 |
Hashes for awscrt-0.13.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e01e8018b4ac40e6bafc58bcaa1209b2ba6f18899035f039727e9f0d1c24663 |
|
MD5 | 1fb319dc278d1824137791f356f6c102 |
|
BLAKE2b-256 | d0ad184a0ddef83354fff2ae3bd8e7d63f6300576ad1c39762ba2dcd29b6b638 |
Hashes for awscrt-0.13.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b816a69d50fc2b6ff4d8fd8374b0c9b377b8dd9e31744a386b2b9886062c21da |
|
MD5 | 14a1a4dbf8acefae68b00be15ae75a18 |
|
BLAKE2b-256 | 67c4dcd2f4c7d3d2fa0b43b99a3b84bb22040eb733956c255748c537d8c4b0f6 |
Hashes for awscrt-0.13.5-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 022f7acde4a88e42f2fa2e72acf1cdd9ec6bcc9a7051b6b0a80326ed1a5323d7 |
|
MD5 | ba70c5d9b944d53ec882f8e3d339879d |
|
BLAKE2b-256 | c750db5bbd0cf599b59e749eacbe7aa0a96b85cc202edaa70d98d7a8d7263cc7 |
Hashes for awscrt-0.13.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d8be6adf2571d37b968f31bfe637b8ec85f4c011490d841afa8043ed0e61f77 |
|
MD5 | 92d37dba72560a1d7e15e50f18c05c19 |
|
BLAKE2b-256 | 81d110617b98a14dafd6684f15194a4903f380f1f31f6135ed666630fb0c08bc |
Hashes for awscrt-0.13.5-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 957f05996ed544361e3fd7296aba118c6579d4599f26ab0189d50227e2bf51c3 |
|
MD5 | fa307e04018a7e7bf3494bc33a68e35f |
|
BLAKE2b-256 | 05d70a5080b556b2493893b8e2df8e2566e98e8b197d1d9c928429f923c28304 |
Hashes for awscrt-0.13.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 554d1116d210274cd105622028d2865cc27451446f4d0c2d4af5d48b67ab7e5a |
|
MD5 | 055c8f258197beb53090b684ae980122 |
|
BLAKE2b-256 | 32eff5c178485f475f98858dab9ae7978ca93ae8ba3649ce2d4685cf814f61a4 |
Hashes for awscrt-0.13.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78e92ecf82793ba163c035474a9763e85ea817d7fd01fe0ff8eabd8302d032a9 |
|
MD5 | c84897b8bdec2c8340b1242b9c8c3553 |
|
BLAKE2b-256 | 92174c927ff51f3fcd0d0653463d5445f744a6fe2f543ea0c0b825394a3ed208 |
Hashes for awscrt-0.13.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 111f1fdaa9115356fe19dcf2a84aeca171d7e9cffd6c637dbca9856eb741dc5f |
|
MD5 | 3e6a8f6d671dcce2c048d674e78c8744 |
|
BLAKE2b-256 | d5f04182c38142ed065e1a4a9931dab0d333acfd98b214a01dbf48ac18faa21c |
Hashes for awscrt-0.13.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd20eb1bb6b8262b96af95a8b2baf6da511eac99ec7d8ff538254396a98eb7ca |
|
MD5 | acb5899df6e7c74017aeb8fa3bcd5e39 |
|
BLAKE2b-256 | 5f13c11814fed84c7cab3aa96fba8d6fca947b27290c94af93ca407b1aac7dea |
Hashes for awscrt-0.13.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a40391c5ee13f1c2a1405a00469e8bc08cbc62cf572c91958ceb038edcc3cf4 |
|
MD5 | 62504a83ef7cb4d3e06cc55d4532ec30 |
|
BLAKE2b-256 | 402d377f2ca62a6acab923b7d3af67ade9d6497cafab6c4d23d07d9ad070e6cf |
Hashes for awscrt-0.13.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b4de983f36781f0547ccf8e663f92cd23ab5b94cbafa984d2791ea243351fd7 |
|
MD5 | 7373ef408b30600f3d1a6c308d571886 |
|
BLAKE2b-256 | c1bbb4e14979ae51582662d30aaaaf69d4bdff0587a5f57156af31bb507d560c |
Hashes for awscrt-0.13.5-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69b7ebcc58df332b7efe94b6427f53548145ec99218f1621c16094d4e11dc6b2 |
|
MD5 | 6e7cf016f041752903a8b93ea45abe70 |
|
BLAKE2b-256 | 372134ded5594258743e3677312e0b7dd3cc9e8abdb21dc8e98cf57dae6a213b |
Hashes for awscrt-0.13.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a646b3bd6bac4e86c848812e040eebb1d60641e2d192b86b1c5cf92c98ea1218 |
|
MD5 | 567d3220d99f9c5a3678dae017d1ce8a |
|
BLAKE2b-256 | 376e07e205e1f77c707a0f0e61bf687fbdf79131015ac980a00df8e19968eb35 |
Hashes for awscrt-0.13.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dd25b06a52a5bc2b516dee7c4060aab303a5b950261fba7d3a9fe92825ebad2 |
|
MD5 | c02649f5dd73c7928bcb7ddaa1afc07f |
|
BLAKE2b-256 | d01672bbd2d5a1994c27a0fde12fbb65cfd44ddb1a1905c7cbc5461d29ed7647 |
Hashes for awscrt-0.13.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 356874c435549c75da39dd547acfa1ddc28f7bf22c48f234c9322cc8453a2b4c |
|
MD5 | 465bf37eb545b8859d766673e8a6573f |
|
BLAKE2b-256 | 2dd363beacdae2945f2ca4b5f075beccc153df28b94e62bf9d481c173d94c92f |
Hashes for awscrt-0.13.5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e660f5e33b46e2991b058046f7043cd190850b22403c69cf38abbf2c61d767c1 |
|
MD5 | cd13b9a8790e637272dc23a358db3914 |
|
BLAKE2b-256 | 3518be8f6519821fe78ffd7097b65b7dda767d25391b9578e402b8860c79894f |
Hashes for awscrt-0.13.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f2da726d82a1f06ca1b3ff9a26aee41923c7fdf1bfdade92c730bf161bf707c |
|
MD5 | b27d20c0fcaf21e7115e9ffb79a54974 |
|
BLAKE2b-256 | 14b2aacf93c7695ed1ae5dedbe7b3711cef26d42edcae2dbb2321c4f74fc9579 |
Hashes for awscrt-0.13.5-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75f14aaef5ca62e38469ef3515f60b753fc694ace24b55e8d135cd1c32493972 |
|
MD5 | 2bdc4a45059650bd5eed7e3b9ae4746d |
|
BLAKE2b-256 | 760643ede5ac461141ea4fa8526555f1271be6cddd8bd6158ae909174610782e |
Hashes for awscrt-0.13.5-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bc03907b4469cd406408591c8e8e532a2ca166d8a175d8bebbb164ea77cecfc |
|
MD5 | fe520afdc7a622aa32d017771415ccef |
|
BLAKE2b-256 | 2c7d03f31d4ecc74036c1cddcf1b0c1defed58dac41d5f872ee134cdc0e46c9a |
Hashes for awscrt-0.13.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a625a5eee10f7bd26fb664efde485e88e72c3ee12d57a6467c2c1eeb508933e |
|
MD5 | 40e75c011fcdb01f866745f8e774499e |
|
BLAKE2b-256 | 9fbaf6fbb252a9cd4df9fc25f9cc562d60185657062dd15e9c0ebca3457f6c7d |
Hashes for awscrt-0.13.5-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f626f9ea42478a0177f8ed3b9efccd40f27330ce428ca25c397a3f94d32d9ec0 |
|
MD5 | 51693af120f97f7f336ea6b3ca5cfc70 |
|
BLAKE2b-256 | dc78a802d30a8a28b7cb4a8408f4da7dd74139e1222c0b34c6f8f77caaade82c |
Hashes for awscrt-0.13.5-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f75d43fa03d0b807c67f411819dbe74ff8e3a572c2efb8c6eaa72c1dd40fdab6 |
|
MD5 | dee6b28e7f30f1b0a9510c95ba242850 |
|
BLAKE2b-256 | d8ae66f6c72b6200a7f6916d92eeeea5d6d7af3f1943a1dd7d8e865e80ee9482 |
Hashes for awscrt-0.13.5-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6782a67872afe9a55af508b9e1aec44b9284614a45dcca1d112e248bdc0939c1 |
|
MD5 | 8386a002bfd5d6766720f01513b62838 |
|
BLAKE2b-256 | a082c4eb56073be794394aa464903e483c0f2ea957dc97c7ff2b9f4f5cb3e6ce |
Hashes for awscrt-0.13.5-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a1ad308a60674b0b03e4c46343bcf805b83aadae8d5b0196449b88e6bad617 |
|
MD5 | 8afa6c1313fc42fb29e11b06a1a7a39d |
|
BLAKE2b-256 | f40622da3510021551721668bfcc33c2db81df2c734bc29590903d85baed3dc1 |
Hashes for awscrt-0.13.5-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dad93330e9c7db7cc6c1628f3c03aa9317d1b5948b49b3750810ad857133ce0 |
|
MD5 | 453c3910db832f1a31d3c7b6520e7943 |
|
BLAKE2b-256 | 40c1f108e6b83f845a99d0be381f4ad91669b935d60be413d74eebe5ee42d5f3 |
Hashes for awscrt-0.13.5-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5350542333c799ea9986c519a3e4be2ed93a60ad206d2a9254cbe92d8278d389 |
|
MD5 | 55606cca3fc3611ad5c7ac6566ac5484 |
|
BLAKE2b-256 | 08be2cd03f58afa122f636736999a2e250ab074b5ba366e29059194d133bfbdd |