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.11-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbe084e036eb0e9f9f4b79baa0a3c7aa83fe0dc05bbd975109aceb2ae928cc73 |
|
MD5 | 5baaf2d8f675aebe09154675383cb6d8 |
|
BLAKE2b-256 | 4b276c3256dcf853f8dcdc5f7936fc88c95953323fc63cf5da0669a00fdaef8c |
Hashes for awscrt-0.13.11-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18f41021231055dc8f6a6d76cf9b00ee9ad8e0b1bea54e2f3212fc00ba3f5318 |
|
MD5 | 8eb84d5aedca08a1bf70a3d09585a549 |
|
BLAKE2b-256 | 8a7cdee3d843f2d148241d65831390a7ddd1ee81887c8a7ce63d820d77df71c4 |
Hashes for awscrt-0.13.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d407afe41abbe0f0fd32130a3d45fbd31dc96f90eb6b5c262bc9a8ff2c87114 |
|
MD5 | e9a243ed632aaebbf343b5ad151f1a3a |
|
BLAKE2b-256 | f7188ad679f0c246e9d34596a5ca376f86c568e59c5dd0e3bd441b1c58918249 |
Hashes for awscrt-0.13.11-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dae692a6610d95737fe7e9fdae91b989f9eaf0c5809e3c210c5cb7e3ed3fe3bb |
|
MD5 | 664843c5e6200888e32f39308c7ea1b5 |
|
BLAKE2b-256 | d1a28db01a1f9a239c689c5748c1f6dec53b73421f761f6b64b20e6a8e6728eb |
Hashes for awscrt-0.13.11-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f7da7c11b3bb8bd697e63ee7fef7ca93cb56513379dd223b2435bcf62eb0f8f |
|
MD5 | ce7cc015829a714bb5eedca08e42dadf |
|
BLAKE2b-256 | 5558f97b18625f3f81913c0b3ed60af37bc8cf21440907fe41b64ed60d0e00c2 |
Hashes for awscrt-0.13.11-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ec42f83664c6879030af0bef48aee816fe0db3c1cc9b0407c9fe9336f249b9 |
|
MD5 | 2c83fca27001ec3815f1ec55474e3145 |
|
BLAKE2b-256 | a27455162e474b6d4b6d65e7aa109f7f65f0c7365bbb4791e9cd01cad549c259 |
Hashes for awscrt-0.13.11-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18505d7d492f01bd9e311c500c9bd73595240110121117328f935c04e1d327a1 |
|
MD5 | 15ddc10e468b333514c2f810e6cc1011 |
|
BLAKE2b-256 | 72d2c3e1afbdc63539536f144e7a310f5a4646b2a69d6d086afdee76fc5246c6 |
Hashes for awscrt-0.13.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6d33d4e8b07258dc8019860a7ad56384cbcb46d42383aca4274384fecd7a29 |
|
MD5 | 0143515be5390087833e6933a181fd0e |
|
BLAKE2b-256 | 7d90f5ac9ebe9914c348e948e620e2f4712add911eac71c5e4c6ec77e57857ce |
Hashes for awscrt-0.13.11-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a1c82a9ce8debe941af2034e2a25c445df3716e13f77b67386ce2d9f9ab1610 |
|
MD5 | fa08331bb3df51a7213be93ad0c46b04 |
|
BLAKE2b-256 | c24d67675bbc680cff400d814947b39ed079aa105cb0719b1b8add4d2ec7dadb |
Hashes for awscrt-0.13.11-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47d2694cd7116706a860ca31a0e07782428b07ac03126a39620c9f26b5f7716b |
|
MD5 | 387479e3f9cc23d456523f3176f96d69 |
|
BLAKE2b-256 | 58b6c012f2cf4965fb576385b2ba16dd433f74d1883387a72fedbbb2a74b49f6 |
Hashes for awscrt-0.13.11-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca797aecb2bf2228304798c141d2889d912920779dec70fe0b6560848b59d7bb |
|
MD5 | 10622406dd83bc4f31fc120fe36108cf |
|
BLAKE2b-256 | 10349de916b192c0f34e2e985fb54a229eb985bad0ac3ab8e7a6b7d394255757 |
Hashes for awscrt-0.13.11-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bddae7af2593332dcf7b0f7828f4973b3345dba86b1ca6d60c16b8e3ee092e9d |
|
MD5 | d5686aa78dd609e7effb3b0a565bb53a |
|
BLAKE2b-256 | 3f378846c5515ff3ae9a59472a8915099a365bcc3c3641a672a8051e1041c713 |
Hashes for awscrt-0.13.11-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c2c77b93f04e6d1780c61783aa56618897a93808542c90afbac0351d77d65ba |
|
MD5 | 6a18889b643736cb0f245e205a1e5c2d |
|
BLAKE2b-256 | c2893b671b7bda7f007220ef01161b16a435cb0604d9e12bf1259ac1ba41c72a |
Hashes for awscrt-0.13.11-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 715c0ccc4ac90431a72cfad884b4c97e7b624e5474cd5811a995d68658ddc4ab |
|
MD5 | 2f8f6695140085cd523e5d6ead8e0c11 |
|
BLAKE2b-256 | e736717dfc7bdede885bcbc7b44f5dd299aca7c062f932eb73e97a156ef9885f |
Hashes for awscrt-0.13.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6279921cce4d507f2ecd9d21ee01ca70bdc5dc33b991fe53e5033dd00a3c94f6 |
|
MD5 | bfd87675f735f2083054fdf3834eaf02 |
|
BLAKE2b-256 | 8d8b57e13093af4ef3e8909220b947e400159081c168026e4088ee7c93f038bb |
Hashes for awscrt-0.13.11-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cd8fe541e8fe90e5155429938d216fb114f2e38679fd2c3b040e90d04585d2d |
|
MD5 | 8bf9aa2a1b5f9c5ff06300169ab613e7 |
|
BLAKE2b-256 | 570e581d705fcc5dd76d6db035920ba312c3cba577e33a4666902c7b5eff8bb4 |
Hashes for awscrt-0.13.11-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5277f2de3e7a2be513fc30df216c8d3818a3a585bdc5de560c86b7c1a8b2d538 |
|
MD5 | 81eaa54048696654e691a4a0f057532b |
|
BLAKE2b-256 | 3dae3f8dd939e0c623e55c4ab0954a51f4d63e569e74d7a6ea837c1eabf233ac |
Hashes for awscrt-0.13.11-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a1a6900e3c699d8c8190da4e3e0de75cd9fe5f9176fb4211ec4623b4b311061 |
|
MD5 | 1eccec6bdcf03c0240e45a9f44944b58 |
|
BLAKE2b-256 | 238433ec24187956d87f0b765e7d1863bec77b637e7e2d32e90b6439360612c3 |
Hashes for awscrt-0.13.11-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce12a339e9ab99b2fba26be245edc696137c39ad16a4accb1cba59bd29fbc1e8 |
|
MD5 | d22a8899d4ca540934149cf64f23d867 |
|
BLAKE2b-256 | 30999b87c291792c26cf660b879db32da29832b791edc4721bd2e2ceb87bc426 |
Hashes for awscrt-0.13.11-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e42258f77536a8287841c4597f78296ff7742d84b45c1c60bf3f0caa28e90546 |
|
MD5 | 814cb2ab47e3cc4e79ecc109d7854832 |
|
BLAKE2b-256 | bc95f4a71ef136f5db9b645da6f0d33e9cd63a6dd9083674b8599efa6f9d71d3 |
Hashes for awscrt-0.13.11-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00f5f5497ed7635e0a4e947ac4a52b650a5d684418144e20e30f463def681a12 |
|
MD5 | 329c5421e4e6a11b0905dad42748273d |
|
BLAKE2b-256 | 490c0d4659fdf4892326875fbd225297c39e30f98fa1d7405568ef8119913214 |
Hashes for awscrt-0.13.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76b8ef328ffe52fbaf0e962b3f897c1bf2ce7550cea86a3dc1b0112ef735d37d |
|
MD5 | fcc70940500d99efc3679015562b22de |
|
BLAKE2b-256 | 9580dd03498c8f77cfd8fffba26efe9d22b259ace48db968a583e632b49bd739 |
Hashes for awscrt-0.13.11-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f2e856f2234294b98e927daefe022a86437bbb7dc76691e166f61d1db461785 |
|
MD5 | bc6df23bd8ff1d30f64d8295254654f8 |
|
BLAKE2b-256 | 5dc511e8fa9a092e8a834a5f27a00b81cd04f07c40d6d1786e3e5e459ce28de7 |
Hashes for awscrt-0.13.11-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfd52b07d71da44251ab4a44a1c83c2eb06edb60069bf8bbd44b0ed88c44b0a7 |
|
MD5 | ecd71d6079e908decffe35d47d69896e |
|
BLAKE2b-256 | fac80ceab01e21cd70fd3be90cc13cceccee070f0d5fe35b43da617ae8a31011 |
Hashes for awscrt-0.13.11-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ebc571a6b04ac2af58a26adeeddde4691c14a4c9cb38fe856f7cd344f62b44f |
|
MD5 | 80b49bb67132c06def1d4339d286fd7c |
|
BLAKE2b-256 | cc32615ed223469f9fe398a1a5b513da2095cbee6efa97b8792722407142e31a |
Hashes for awscrt-0.13.11-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22c983bf117c5453268eaba87a7d4166a56d6039bc0d47f2768eea7cadfdd0ab |
|
MD5 | 7372d807e17adcdb17814f2956004d4f |
|
BLAKE2b-256 | cd084df238dc27c6db6caca6e2f1335bc63585a001c6cf48e1c722ab91010e22 |
Hashes for awscrt-0.13.11-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2e6af4e03b549184e69acc1035634ff5d06d1f8e0d861e73fe0846df89b3683 |
|
MD5 | 02871447120c7a46c9c5d917763d55dd |
|
BLAKE2b-256 | 4ee904d10eb9ae2888a6d861c6a5942a7d089df168fc76362703be6e02586713 |
Hashes for awscrt-0.13.11-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c08ce5b3f7187746d8e36511f8fc3433b67486d0c9356790cfa7411e92ead519 |
|
MD5 | 343bea34dd636482d70a6e1eda732389 |
|
BLAKE2b-256 | 5c4014508fbeb1435fe33ffa402e6cd0c9bbe6cfc687e25e3df28ccb979fdd94 |
Hashes for awscrt-0.13.11-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e014c2a3b04e34bfd6a7beb065ed8a0c670f83e822a29c8b6ff2e3fa65e1598 |
|
MD5 | f664a90e0b3732929211443a34b4a52b |
|
BLAKE2b-256 | b9ec4003eb86782bd9506033bc0bebb2571f61815f14db4252c93c324dc3fa78 |
Hashes for awscrt-0.13.11-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a6f7942f9f9868fa33d9d21b99f3959968e4f86191a1ed677024d406fb5615 |
|
MD5 | 9d1e4972494c4a77ef3d7ab21e8e47a5 |
|
BLAKE2b-256 | 8dd69f123447b9ac99f043010de21518054f09bdeb757acfd6d82b15f14fc0dc |
Hashes for awscrt-0.13.11-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae0268d358c297a1a7c1d06b886fa1803bfa464dba03b4a1dd657394c4cae43b |
|
MD5 | afeac2c299336b03dcc04526a08c0bc3 |
|
BLAKE2b-256 | 82e73c4cb272ac21506e5dbb61ab866865abd9c10a9a42dd98261f5b0b4dd281 |
Hashes for awscrt-0.13.11-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5188888f392868445bd023a04636f14a54b1a6e84eb6ace0a99270fb2ecc1c37 |
|
MD5 | b7fe3581bbe06fd47b755092835485a0 |
|
BLAKE2b-256 | 8f6f022d1b104f6196284d35b3493458feeffd367d825c11190a9216f50aabf8 |
Hashes for awscrt-0.13.11-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 656a54ada68967e6ed64bf5a6fa9a5ed3d9b387255a9fa11a14196385ed55ec9 |
|
MD5 | 997fe1ee1fe68a156108f6cda7a22917 |
|
BLAKE2b-256 | 0a782341a20343faf9eefe9aced383bfa4680dcc710a19ff8d4753cfe0d0b97a |