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.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51ff019675fa34e96fb47c1f5e714062074e242442ca51b60eaeceb69deb8530 |
|
MD5 | 807c3e6a2d1b4c78b76a4c1a3079dea7 |
|
BLAKE2b-256 | d26e52c6fd8c17d1046eee86e178d45051b6e52207bc2ea33a2d8a5a75974b48 |
Hashes for awscrt-0.13.3-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 026d25b36d7f4d9e51621c8b933b7797302573b464d41b93120baddaad663ff8 |
|
MD5 | 8361ef7c22928a0b2db31ecdf14dd236 |
|
BLAKE2b-256 | 4364ff3308526819f08c46fc6fa76628b5ed2f6e69885cc2c6b51dc71b344c10 |
Hashes for awscrt-0.13.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ce921bf37b11b01d51895de67b6d953d6282de0fe6ca4c19e0d33b6e2f32bec |
|
MD5 | c3e8c7e65b2b5b1ad375c78337a80f83 |
|
BLAKE2b-256 | 4fcd2f4abea1fdb00344c569d7c199d2f69d0ce15e60c62fe11fb972d4d55e1d |
Hashes for awscrt-0.13.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47d96f273b257b603afe206b780cadbb6a93ac1e0d49c904a59949391eee80c2 |
|
MD5 | 33aaba628207e98bfdef03ce45d39985 |
|
BLAKE2b-256 | 762daa445874c4c11525a84ce2daff3ea355d18b4b7554366c20ccfd88151359 |
Hashes for awscrt-0.13.3-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fbb26bff8a1b14eb3d8f628e745a44587a2d02519f66494a7fe09fe1827a46f |
|
MD5 | d7920a03e6b23d34a534ca6c2e0079f0 |
|
BLAKE2b-256 | 3d2d0947bc7c7eee28a6f153e36a7c521a09353b2490ab2dd47dcd13c3b5043e |
Hashes for awscrt-0.13.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 147f4a393890f6e3be4f2f957e4d39ad074a278b0be21611ed6a52aeb2825c8d |
|
MD5 | 135d14f17436d4e0244af176e645547e |
|
BLAKE2b-256 | 8e7bf68f182993c5daf939d87d7623d8eaa2d435d98e820a6e3e10e0f908fe86 |
Hashes for awscrt-0.13.3-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b6b1d44b1a62b2ae65a96aacf725ad467568e8f9f119e1c3efa19716a4f5394 |
|
MD5 | 2feb834264459d611dcaf46f5c9484cf |
|
BLAKE2b-256 | 25c92bf210fcfb324cf154d8c31d518fbe2bef236f1ad16955eccb3b94762331 |
Hashes for awscrt-0.13.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6374fb5eb45a46ac10fcf7ed70fa7730e78ceca554538a0bc9f158850df999a6 |
|
MD5 | e03f37bb19473d0bac9d0c81442ba91a |
|
BLAKE2b-256 | 2b99992e2393bff8ee90d8f0fabbf8b3e9192bd72d9f39b39ecbc7118824eb64 |
Hashes for awscrt-0.13.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b9760e15cb01ae6317c1197849585e340a3dfa583482041eae8831e15c0b774 |
|
MD5 | 49f0967e1927b306d9bb657233e0e4db |
|
BLAKE2b-256 | 05a9422a4544dd66dee31719384ee68f8f496babcec060b9b6eb290983be7bc3 |
Hashes for awscrt-0.13.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6b7b1b742facbc79bc59c3242b3b0d1a2a0dc0269533eadbd9c403131ada963 |
|
MD5 | b3a3dce33d13114ed1132c59fd029b5d |
|
BLAKE2b-256 | d16814fdeb451f19a18e7497e079a6187c42d194dff80cfcdb6966ba4dc7fe95 |
Hashes for awscrt-0.13.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96a056731906c2396fa1847f0d07787e730ef53d334c21034ddb0e7b6a1534af |
|
MD5 | 1bd42b82ee2a10205cfb0124c6ad9c3b |
|
BLAKE2b-256 | 88e0ebf17f3e12acdda875fe76332546c53169dbc3f9c3536bd6c58a735fb1b2 |
Hashes for awscrt-0.13.3-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81706259dde32fc70acaa223001efdfaeae2674f30ed09535266afe45e2b896f |
|
MD5 | 799f8f05ce40fcbbf7729d11dd4b84b2 |
|
BLAKE2b-256 | 68986c287d6768e46010e6c636224b3ca451dc36670840e4478742087b36719c |
Hashes for awscrt-0.13.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67db792956c1786dbf84576ce180b8d0258089ab1d3c3a02cbf4a3a432bbe8b8 |
|
MD5 | 12ba8cf5416e9486306683b163148c42 |
|
BLAKE2b-256 | 13f4729f1146a3692e74d0464ac6e20ff949d1628ea1c29273a24f1884b72a74 |
Hashes for awscrt-0.13.3-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cc4a58a6ea0977215496e388674534f5732a6c2f9bdc0cecdfb652affbe6a0e |
|
MD5 | 9dbd5d03b62295392d0c2d819b9d00d3 |
|
BLAKE2b-256 | 5ee32f77bdedeafa18b4ef68e921df4e9ebaf837ebcc042d9f3ddc6a09c7c681 |
Hashes for awscrt-0.13.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f593b069516defb2e40dc33a963a7b43de589894c95cc28548c29da0448b38be |
|
MD5 | 150c0ddcc541d63e545f6187419a9842 |
|
BLAKE2b-256 | c4719878d17bd3cdf39c22804a2ebd0d73edb25de597e0fe4d5a72a2a5cb0bee |
Hashes for awscrt-0.13.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed9d32092cb6cac77169c52d8ae51638db0e624e82b140dd2f029bf3bc0e26cd |
|
MD5 | ffa50e0334a54926a42b7be03d32843e |
|
BLAKE2b-256 | 9139220b165c974ef52ebd37da5229b95afccf4f31d5b0560be263aafe9b5b64 |
Hashes for awscrt-0.13.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d4ab63db8bdd3287749801d7d1db12b89eb633a9cd3794207fb03658bef4d0c |
|
MD5 | 7432dd55544bee8456fbf02c17d087f6 |
|
BLAKE2b-256 | 58601ae1303c60c44a7ecda455366a919e75e06e57720bbdf428b6d217635017 |
Hashes for awscrt-0.13.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e0cd11af49241c9c2134d88e7d0236a4ddb2a17d7550bdb8cb5938ae567c8ff |
|
MD5 | a5b4aa14d152338671291d8798295d8d |
|
BLAKE2b-256 | 6ac678563f61b859496de679713a304a3eb326a7df85dbb0a758459f42257f6a |
Hashes for awscrt-0.13.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 751c31a73c5ff723a2b51020087206f8771db06943a52b0d52622ddff47f3260 |
|
MD5 | 97f6a8f33459adb25dc46b0264580dde |
|
BLAKE2b-256 | bd80d5899ffd32318b30ffc0b5156d3a642296e56e4a809bea2f4128e4e21854 |
Hashes for awscrt-0.13.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 239a26c6fbbfb93f683ac408d3188692ac1505a834341fb287b40d3c56514d0e |
|
MD5 | 8d92e3b562c267a48032764d51256adb |
|
BLAKE2b-256 | bf13de23c792f5e76c08452f45d537ca64693688a78ad22b6c51f01b9330b897 |
Hashes for awscrt-0.13.3-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b754a2ec75227d0c3ee9716793e1d245090b6dadfd18a402d03706d3774ca5b |
|
MD5 | 17a09aece18bec4fb80f8ee00101fc7d |
|
BLAKE2b-256 | abb7aac464ed4baf1cebfdddf0b36b165b8120f2b7076618a84b12a3307a48ae |
Hashes for awscrt-0.13.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5346c334d98a5fa1c2a4d4ac25b62c9d8da57a5ed79f39a22c37b02b53056653 |
|
MD5 | bfcd68d76697bd9926f689135b6c2ef0 |
|
BLAKE2b-256 | 40fa39444395139c18ded6b070efae9f54a4cfd045faadc1021d92c84263352e |
Hashes for awscrt-0.13.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c5f91f6f1a3b222948ac11529d8e17fa3f85dac3d8045fcffffb56901b8dd84 |
|
MD5 | 7117d2ab41fe84cbccda822a71bc8b7c |
|
BLAKE2b-256 | 9bf479871167186bb19bc6b4c5bc715d893f7b296731f33dbdf47e4c5e13fbca |
Hashes for awscrt-0.13.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 909e989d4078d0a7ac90ec4ae5eb739790421d1ddb0e6886620bf5320ed1d2f8 |
|
MD5 | 294ae53bb74c7728fbd9f2aa682c49b3 |
|
BLAKE2b-256 | 29b850ad95d3a23d06f6a49a0ce592468e1784e65d694c91168f56c0e02a8208 |
Hashes for awscrt-0.13.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 545b9f7b6f1848c50c41850dccb7a6cae32e256c064c3e92184a999d4195130e |
|
MD5 | cd0364a12273190530eb2269dbad217a |
|
BLAKE2b-256 | cad97d631f168dfe270099118d1088a90e8f3b9a898133b68d23a37afbd1f733 |
Hashes for awscrt-0.13.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1234debba28358f231a285472dcff8fe2aa455d18a89ef07acf42103c59fb8fa |
|
MD5 | 0f98eaa1ef41ed9a86396b956b9e0452 |
|
BLAKE2b-256 | 6403b6aea77f24e33648587b1e3f61f69f890ea4e99ffffc7ba271a13586cec6 |
Hashes for awscrt-0.13.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c8486122f52224fd054fc83a9e9802d5f5eefce26a8a01c52cb5af35986df14 |
|
MD5 | 590304becfe7862f2c4bde208605286e |
|
BLAKE2b-256 | 9586b8af76e6e83a1c72138f4ba17be874b705d7879ea084b68f3a1a000df4f7 |
Hashes for awscrt-0.13.3-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d48b82cfa056683949834a08e40e96291a5bfcf035bbd4ef3eed458bd3e55a46 |
|
MD5 | d43007ac1a4ddbdb2f05cbe522d13c7e |
|
BLAKE2b-256 | cae74068d7e8f692b7e9697d8342eee18b79406044bc0310eee72b30a5afdac2 |
Hashes for awscrt-0.13.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6401937d65dcdc888989bc1cd8a16b038a0778e18196c6ec6f72f9b29733ef46 |
|
MD5 | 66c00907427cd5b1f6b97d7f717ed7be |
|
BLAKE2b-256 | e8a837f19c7bf8893e50cf2f04cb5262c8ddde4433c65e950a2c061a3e6a02d4 |
Hashes for awscrt-0.13.3-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8538e9b2d749a8b527fe36af3416a001357d74c1802e6eb238bb7a3341a0a23a |
|
MD5 | 4567d4f4d7617eb4a8f9f5110411bea8 |
|
BLAKE2b-256 | 9862368cb8c2b530b4b2bbf0695e0e8f37d403023467dc4e9f6963daac4ccf17 |
Hashes for awscrt-0.13.3-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a294315d5b29e2a6148d4406b9991e92cab1dbf91d65bdb84347863b179c0760 |
|
MD5 | ee2e032dbf1ef907d3548249f7205384 |
|
BLAKE2b-256 | 1fd925f80af8eeac04d18a9f0ff7fa814ab9a3730273ab35cb9aa4e789d1f997 |
Hashes for awscrt-0.13.3-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da14819747d2c4d68f62f9090eac3fd2e77f18f4c68889fe05b78c382c5f211b |
|
MD5 | fc8a55c8a48e8437386e20b53e190f24 |
|
BLAKE2b-256 | fccc4585f4638ea3f95efc4c139078823ab1c2ad4d7f1a072448174231e548ff |
Hashes for awscrt-0.13.3-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c1cb4eb883501c3484707c752ddc75ebef7000087c68b63453f6897296b206d |
|
MD5 | 82cee28c33cd4d736d4a25a10f0c8e80 |
|
BLAKE2b-256 | 68590c1c1562687c924b4f95951831306709819e77b8259e42aa7d13f02e0e20 |
Hashes for awscrt-0.13.3-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3df69e0a844d2ed2373f930bc582b2a06f151b95e62c34280175d3a76289c31 |
|
MD5 | 28380e117f8ebd723d90552c2f239459 |
|
BLAKE2b-256 | 307234cd7ed92fe3c5e38403216fb2a2eb7dad4db748201d1a9e54b74a2fe8cd |
Hashes for awscrt-0.13.3-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 788d537a4600bf981d69ddfda18ac323c167c6ad141030db85aeda4b432d750a |
|
MD5 | b93cedd5f2b573da930fb93274d59bc5 |
|
BLAKE2b-256 | edef868703a8eda4bfee16742a6889d49b14a573fa603428e7944a13bcb42d69 |