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.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 407e33bea7229660d6587c923ce1a2352be14e1dd6604b517ae705eb843907bc |
|
MD5 | 8d215836e7bee8f82fd25e825dcef2ff |
|
BLAKE2b-256 | 51b32f97264306886a70773b42cd01c964b29d479f977d555130270aee272406 |
Hashes for awscrt-0.13.2-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4d9c1d1710dff42a27312b165792d92f25839727e31b88733fb6b48a56b740a |
|
MD5 | 532292697c1b9cedc5cae1df505076ba |
|
BLAKE2b-256 | f20f0f414e66a22fe2ed791f4be31a4e925f8ad5c2bda2b545593be830d94dff |
Hashes for awscrt-0.13.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1952e8f4e664b2944c67c137845362c9b1b5301f380acb4613149e7a76198ac |
|
MD5 | 460ea4893831e6d9325d757224f74710 |
|
BLAKE2b-256 | b1924d4bc317d7a7d85061f6639c3cc9e674c649bb42597a6a03fdf426340848 |
Hashes for awscrt-0.13.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e33f4b47dc03a3dfb2e233423154b9953fcf127d33a0630c43879db32ed3f1c3 |
|
MD5 | e26790cb41f5d87669635128cf2933ed |
|
BLAKE2b-256 | 121a7a3d12046d9043a392687d7538c7fb6842753240b999696237016e37dfac |
Hashes for awscrt-0.13.2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6465b4885fe85d84053c7a3881358beb57cb23b7344b739beca4d39504bfbdde |
|
MD5 | 4498385aaa4085f0f3ec8e646f914f85 |
|
BLAKE2b-256 | 54fd1ef2ea1a0de66a366fe226531bd5fd7a598d133052398b1e63cca083929c |
Hashes for awscrt-0.13.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c99f21849310e6aa05f64d6cf67d5a55ecd8c491c0b59516048b6c015faf94d2 |
|
MD5 | 659b261c5fb11650c1d52a6655d5bbc2 |
|
BLAKE2b-256 | 108b266c8a5ce407559c0c26bceabde90f2b75b09039e5206f9da5ebb969cec0 |
Hashes for awscrt-0.13.2-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adb11de1718bc14c66291592637ce26aed694f292bb0b3934be10cf64fe616df |
|
MD5 | 56777fc5e93955917eb3d5f229871125 |
|
BLAKE2b-256 | 2d83091d1961158533e2545fa0254edc90e893e01f86170001939a3207b5e75b |
Hashes for awscrt-0.13.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca49bb83ceb431df77021d351ced49a4efc53f75d1cb9353a866253f5e9191d5 |
|
MD5 | 3a9e5c77f7a82817cf5ee16d6fa5e449 |
|
BLAKE2b-256 | e47ae56f67b56df352dff02109241519b78ea2d1490f551e9f495c1b484f809f |
Hashes for awscrt-0.13.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f25c1844ac31d00edc7121737d79122d87a657cf14e798f03aa64654ac8e2d46 |
|
MD5 | ced5ed7762ddc0cc3a7f1baeaffb2ef5 |
|
BLAKE2b-256 | aea30d8a322d7895b6d4e4860c0886d394266abe22f3ef5fe9d433dc55f149de |
Hashes for awscrt-0.13.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64d780e661934f66af94023bb767421330a92ee91cc0db05558fb273937228e6 |
|
MD5 | 9ed0c879c618e9708ff5b9d5b556b2b9 |
|
BLAKE2b-256 | 878c4dffc3091ad781711b742adb1d2d21695d6351035dbb4b6bd2034c8ca692 |
Hashes for awscrt-0.13.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09d20ca733ece06480b4bb39f5eef9fecfdc80570affbb070fb3c399ba00209c |
|
MD5 | 2337bdc01ec47da107da776d5d3e272e |
|
BLAKE2b-256 | eb43baaa8bd325434875dde3fb3b5a8916144f6053790aaf53b82587b35babe3 |
Hashes for awscrt-0.13.2-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af7700b7d95fd3bd4c83077278e5591813141567edfaee05970c72c7b8851b23 |
|
MD5 | 727bb8844825c93ec33e9cf290986afd |
|
BLAKE2b-256 | bed1b4ac2c3f21ac8b16ffd72b6dc03ffb88f5f6ea5005de2d97cb0db4fe8cfd |
Hashes for awscrt-0.13.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 926ae9728434780a7a5642b2da15522c4a4867ff1296c0f48de867087c783427 |
|
MD5 | 876d1f61754bcffc6de2eb3832c62f26 |
|
BLAKE2b-256 | c7dd0df034a142b4f9dfcf606718aec455b559e4d79f1a3eeed0272746c6c02d |
Hashes for awscrt-0.13.2-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70869311c8b9cf77fda9ef5f831d3206fc0e67b48670f3f040fae6111b3bda33 |
|
MD5 | 6caf35a54881126555c6c9757f9b1306 |
|
BLAKE2b-256 | 7562bc40d1c9745637573eeffbcf31244fe44b5b18751782d6ca8457f9453338 |
Hashes for awscrt-0.13.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 900e5975ca583c6882a76aa1211bff9e472c9f5d47ad7db5202270645a787a65 |
|
MD5 | f848761c0293fb8562be755b16659992 |
|
BLAKE2b-256 | fbb7eddd9fd2d703339c5f2b5d6d7ec14cdf829c3b26d5f81e9771b177af584a |
Hashes for awscrt-0.13.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93fe56f8b4a44cdb2e257f9e4aa4d5fd28b6a26574400bd8a339032fe51ca1fc |
|
MD5 | 39bef96f56a159a17e3742d5308fba90 |
|
BLAKE2b-256 | 8a7cbad488f32c7a68c9b7adad871f1ae3325b1e6fecf61c059f70355e7fda2b |
Hashes for awscrt-0.13.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82b53ab2fc72297090d6c5f01372fd56d3090c50661f9a88df3e09eb307c1744 |
|
MD5 | e0f1e7ca0beea4faaa0df935fe55997b |
|
BLAKE2b-256 | 112b681d88129d617fb41d3596cf7414c3721e6f8317fc8d8ee9f2acaf1b8d9c |
Hashes for awscrt-0.13.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbff30512f642c5e611006d99b5da376e3d71ea9c51b8eb1e5f8355f3fc21694 |
|
MD5 | 00ddbaff242c178932a724d135230b7b |
|
BLAKE2b-256 | 86a20cd337f93002f8d3fb3f452a4293846354aaf8b0b0257d51f20082ad7526 |
Hashes for awscrt-0.13.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17548d571af21b7df4644c625d7a4d2033f4d8f958cc9e88cf07e2c8440a580b |
|
MD5 | 170a1b95fb856dd51f74fc6c6ada8aa4 |
|
BLAKE2b-256 | 342affb6e457e3505638271b62e35dca88dee5b649aad765990aeebd6fca2b8f |
Hashes for awscrt-0.13.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4df82a2f4778ae40b153b2f471b150baff011e7ec6e0169d9fa3d6c6b53707b5 |
|
MD5 | 4e234bb045be263c528eb22386f06565 |
|
BLAKE2b-256 | df42f60216b45d8143d99246c3f89ad13e95a187a15d6aff8d660d43d1121738 |
Hashes for awscrt-0.13.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cda8981e9e2055ef05a1e451376014e6e90e93723790bc51d914e0874536b69c |
|
MD5 | c3199e0e101fc65c38bbeb9a67eff160 |
|
BLAKE2b-256 | 81c45001dbd8a57396d7b3d13bfab1c49e23f080f3f255bf592e7d74e671deeb |
Hashes for awscrt-0.13.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692f045a16a04021275a464019b362dcfd6c71ac6a65ab2ef84c4cf48782cb3e |
|
MD5 | 0df22d2b5b7dc9b05352da854db4cf66 |
|
BLAKE2b-256 | acf270416320af0bb342c979a244ef2175bf32c7b978e615a4054854bdfa7367 |
Hashes for awscrt-0.13.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e95a31fa7602e178f114ce24958dc6a156bd950252b38099427a35d4bda236 |
|
MD5 | ec23b442b8ff37d91d76a942dfa3db44 |
|
BLAKE2b-256 | 5ffe9a44540275907d844defe60c1f4fefba1903f183c00f6ea72ed66c712a8b |
Hashes for awscrt-0.13.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8ff26739e3ef4c4653e41f1ca8c894ea2b7401c5a31d14428021c6321877200 |
|
MD5 | d7038d42d99ed8222a257f163a27a377 |
|
BLAKE2b-256 | 7796e2a9fd1d21ccb46db2dd9a1464b19712890bc865d9ec5d6ee57090094845 |
Hashes for awscrt-0.13.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6e1d901192c697c8fb78cdf45dafc9aecfcc85b4a4dc5370afad15ea2019a27 |
|
MD5 | 7a5fc4461a294151bff80c8ebcecf648 |
|
BLAKE2b-256 | f934084840326904b0d98dbb8a3b2654ca60260d0cbd410c7c246053d2726199 |
Hashes for awscrt-0.13.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0f6a7fd67838b045fdfd7c693f311018dd0e217c728bdaedac35d5276b2672e |
|
MD5 | 43858dced1c3ed632ceb60517247c229 |
|
BLAKE2b-256 | 093835e77b912b9ceabd8026f96618232e498b9e689a9282a8ecd84e020b7e69 |
Hashes for awscrt-0.13.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2113ba57af3ad2344976e36d83c66b9dcb3423584e856482cbc5e5f996542a8d |
|
MD5 | a0bd0fb4228904500c9660706192ce05 |
|
BLAKE2b-256 | 9439354beacf6c2b981c174495e014631254286cd9f32b8c7af169d4146c0b5c |
Hashes for awscrt-0.13.2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd9d1e96fb24b7a5c077df0b51b4c6ae60ec4dd30895c07ec66f76fd9a73149 |
|
MD5 | e2b5e8b2f08b53ee504e2684552810da |
|
BLAKE2b-256 | 4ea8a66e7c0ac7267ea165005e08e9eb18e700b30ac8a95f7904eea001d11041 |
Hashes for awscrt-0.13.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e0fbfefb81bac26f5d57bd86eedc739971e8ea121ada300d936443c64bda774 |
|
MD5 | 889744118fbb9d9a7cb8c4fa83f820f7 |
|
BLAKE2b-256 | ba2c8b9748a89819540130bf4f125380f09b6829ca2766a429881b5a37a9fa91 |
Hashes for awscrt-0.13.2-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d4b9bc17414169365d5dcfed5c0b64a6d300c876a14ecc80fec4e83e2cdaa0f |
|
MD5 | 0a8405e838d69652be4bd6c13ea6c505 |
|
BLAKE2b-256 | 939637e6d8e82d2e648258a3932c743dc95d1e20ea8fa1f35509bbb76e1c0f1e |
Hashes for awscrt-0.13.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb72851864be4927c9e1a1b49a0ce2b1e639f44c70bb5aa336b3ecde946f87f1 |
|
MD5 | 4d972901ffef63eea27bbeaababb7566 |
|
BLAKE2b-256 | 13b807fd66edc750f271fdc505588d720d71be36e129157e170fd106f5515d83 |
Hashes for awscrt-0.13.2-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b5fe1d33db412a4aca26388496c2f93c911bddb29e8e06f049b3bd3ff0e7d0e |
|
MD5 | 29bcfb021ef799e3308da5dac6b1853b |
|
BLAKE2b-256 | ded64755d42155f31388525de795ed4c7b5670d1e83254b15cc01edce4dad65e |
Hashes for awscrt-0.13.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cfaf4a614cbcf7ee3d30e82fc43103f5ce30b50abe9f4419074cca59c4957a5 |
|
MD5 | b71804f5ca2baefdef83d6edb712e940 |
|
BLAKE2b-256 | 4211f0a788eef83ceff4f3d2a750cd261c281b0b6c5c5d745eae000c7cfffc10 |
Hashes for awscrt-0.13.2-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb241b1f77040750727e68a457bc1ff714fd909c8906c501466c8a6e6165aa13 |
|
MD5 | 789c7ca9b454946aa9f1046867374bd6 |
|
BLAKE2b-256 | 6622c3c122eeb9118572d6dfefd651bf71327e6a33ccdc6d680def2cc2811ea9 |
Hashes for awscrt-0.13.2-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4278ed433b665b94c705b19ad8421925788c2ce3077bdaf112c16925fe12d2d4 |
|
MD5 | f2548b9dd39ee66b891b8864fe6ba560 |
|
BLAKE2b-256 | 24cfc55f27b3ddf058c8fb1ef6c54770c24c148f65f0e04b9e91bfd0b30b4c7b |