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.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1acc2047a38e4dce1631d587607ba599b997955e648a82d49ee47a41a42e11ed |
|
MD5 | c540b71b2a666c233e685f63ac4f4404 |
|
BLAKE2b-256 | ef772554d338fe00e3940f318c7b5bd904d06ba3c2ce146fe7259a62d7322ed2 |
Hashes for awscrt-0.13.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3bf0c14aa0ef3894e7979512c9223824a4fb3131caa2d4cac83d0a959b9dd05 |
|
MD5 | 15627841507b6d033d7830cc4bfba8ca |
|
BLAKE2b-256 | 2e1f079f0f13dca3dab3f34af34864e8c3134cb1d37688ef0f09e831d70a26e0 |
Hashes for awscrt-0.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae3096901a93d137da8c6e1412af75055caabc74cb188c87cab063d7e4204011 |
|
MD5 | 075fddf55096c4ac21687b1608d94031 |
|
BLAKE2b-256 | 40f34452ea02916426c6e64d20b4d0fbf644198f14953e4067cc9df458620f91 |
Hashes for awscrt-0.13.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1226b14bbd06eba2d016dc6faff4cce4b2076deffeb3d4913867a2db9b4b9537 |
|
MD5 | c02844660aa0398e32b5bab3337dde38 |
|
BLAKE2b-256 | 8b22f82dbb43fd32861d9fd9c1a18de9da7bab8acd92980fdbd98a53cc5107ba |
Hashes for awscrt-0.13.1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16759bace93b67c069693939345de19640746905436690c449e5cad30deb8dde |
|
MD5 | ffcd714a0c6159018556dfafb3e89809 |
|
BLAKE2b-256 | fcb6e3ffea465f34c55e0d649452fe98cdef4252b501d628777c531194f24a8c |
Hashes for awscrt-0.13.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e8d8f4a232c00f099a6ac2d7f386c43a951d76558382e6967a6c9a6c21a7f93 |
|
MD5 | 2c78d0cf7b62bc6b950350ee341ff9c9 |
|
BLAKE2b-256 | df9ea79700744fb372da3bfc973007de7467dbc66f638ac883e63fdf2bf13731 |
Hashes for awscrt-0.13.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ff92e6fc20001806f53b875bdf55bd09c4cd72276b5aaa59c4264945e4d601f |
|
MD5 | e4ac7806d8df7bd5185c72b240fd550c |
|
BLAKE2b-256 | 9a5b5cab41d3e6e672bb577997d22e2b66bfa878dfaf2ebd36da4a9e87f16f62 |
Hashes for awscrt-0.13.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34387cbc7fb3db93d4fe8066b98399734758e5566f1a6389f6652bffef792a2c |
|
MD5 | 4d6610e1d720cdfea18131276396b0b6 |
|
BLAKE2b-256 | 6edb03d705b55d0fb95afb637df6253e8957b4bc629a9aa5df6ca227c98a6ef0 |
Hashes for awscrt-0.13.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69404e8565994094da854754574d6b0f473569eb3226e43bf4f5378acf8f3ed4 |
|
MD5 | eb476840c7f729c0bdf1d2b7e14aea60 |
|
BLAKE2b-256 | d03c13ee8f154a553461421e1c0451ab6ddc15d64613e9267acb52c46acf21b1 |
Hashes for awscrt-0.13.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6d0cf802d54249c5b759adc1a93cbc02bc1ff6b7be738226f52f48ebf6930a8 |
|
MD5 | d7a05e78696eccc6fa3bf3b772e61795 |
|
BLAKE2b-256 | 479b17c2a62a98f4fae0749b221e1c8ee1c71edf3a4679244276b4ee15e38a5e |
Hashes for awscrt-0.13.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70bdc05bbad5b0206e76cebd1a86fde5c2e252adf927fb33ab07ed52ddae6a94 |
|
MD5 | 1bd047727a616266480aca779c029958 |
|
BLAKE2b-256 | 2db2e16d5e71508cb47a0efff8fd7d5ea84de26498864da6d2cdef0f518cbbb3 |
Hashes for awscrt-0.13.1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b2c3d73299a264c07fa7992fd73e7c01b218f6eb16e0d39ca5f0956933e7630 |
|
MD5 | 514ac544fa8cb745f6e4377147f0cb25 |
|
BLAKE2b-256 | 42407161945c8022b3617802fc2dc5006589ddb8ab362f824ead8b6491951748 |
Hashes for awscrt-0.13.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f24a84ebd3baa55198fccce3ccf239676915c683338db9c9ec8974c5d07c082a |
|
MD5 | 4c11b6e7b497403531a31b6bdfd530a4 |
|
BLAKE2b-256 | 238930d0f0e4e4f2d74e1cbabb156b27ddff4165ebe817adecbb17bdafa950b9 |
Hashes for awscrt-0.13.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0d1c67d044b791684b13e768505464cd07d79a7b484a201f6d391a6c4f2ddd5 |
|
MD5 | 51e1edf09b8c42115bb7462d6c03cde8 |
|
BLAKE2b-256 | f881f038d831b994ee01ee81eefd2d3ed179ddaaa8a2af302c4a30f59ad981f0 |
Hashes for awscrt-0.13.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 062952d0035c0470ff3553e988a2a55529fe1e33e9185fd6f52276020c6aed9e |
|
MD5 | cde5e773018b7e56f60d1c1dd3fd7ec1 |
|
BLAKE2b-256 | f4459d4a24e20d7f9bfb35a9f10e1bfd157a83b6c71910189dc1c4192d5ce075 |
Hashes for awscrt-0.13.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92ed58bf2ca4026e89656d0a2d5b333d77a1c2073ab5c787adc9881653774603 |
|
MD5 | a8c4fe3a500346fc186f05f805c64536 |
|
BLAKE2b-256 | d98e0fc2e3bab916c8952251ae585526eb247a09e402fc599351b3a8324c660a |
Hashes for awscrt-0.13.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64be37747bc36f7e99d908982c3de81ece07790ba8062eadc06b921b274fdf42 |
|
MD5 | e7567180003d2f78d819afeec8639c22 |
|
BLAKE2b-256 | c60f23f81a811375315c240d9c490be63f8eb1d8a25ae221f59598a4e30bb652 |
Hashes for awscrt-0.13.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eec67df640de374e003c271757c523b543c8fd6c852e1eadb499dcfe2abff78b |
|
MD5 | 8c1efed490bebf06477432f515216790 |
|
BLAKE2b-256 | 73ade5eb22aa44008716ee2985d99c26fbc07f5fd9904055ef01eaab2d5fa819 |
Hashes for awscrt-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b5e290d85b0d2b299af0731c749f2ad8cd984ce774a07566a4a18edb4a67f92 |
|
MD5 | 287b7bcc70a0e7770ba07ba6b6e8a6b4 |
|
BLAKE2b-256 | af6c767c7d623d86f90c5f5a20cefbe159352d387b4a7690c7c9039ad346e91f |
Hashes for awscrt-0.13.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b96e1cc66d4f9d2d849d543439206714a293301a0f9b1db767c84e426235c2d2 |
|
MD5 | da60a0165d0b4d8dc93d8ece01b244cd |
|
BLAKE2b-256 | 36dad6f66031ebaa1293318a193b7558ca403aa94c88f8964c1154581dbfda49 |
Hashes for awscrt-0.13.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe622254826b647fb0c605abe9358cfb0b04b623a662d72c725986c0cf33d1e5 |
|
MD5 | 467f88949950d7d3938cf4db27184753 |
|
BLAKE2b-256 | 48a0656e0086b3395e894792666c9ad68ef4c13efa1dbd3aeac34170dcd5dc06 |
Hashes for awscrt-0.13.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5efd3aaa5e5e6a58c01820a233b4caf071561a16e41c5a9b3cad1234469d0954 |
|
MD5 | 4dc322477bbf483177279db56b1172ad |
|
BLAKE2b-256 | d776337b7759e5f5fa0f2fd636b0eb665548025499eccfd3bfd8e19f234c1c85 |
Hashes for awscrt-0.13.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc26d402d04d6e19c992535aa51af596f911aa668045f35aeb7d2b218b6af459 |
|
MD5 | 4e3552302d868284fd907c55a9699b69 |
|
BLAKE2b-256 | 57da71cff789ac75b32af38535d50994d41d95011bb5be4d5814c144909adffb |
Hashes for awscrt-0.13.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1fa994fc84adea9a8d926705bd7ad65748200e4f5f3fc15b92aaca769f94789 |
|
MD5 | de7b9fecb1a63192d8528abd5ad23772 |
|
BLAKE2b-256 | 1d40e043ebb40bcaabd2feebdaa41a549dda2fab6907565f3f8f6e0bf76bdf37 |
Hashes for awscrt-0.13.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a7e73b2e674c7f982235a4cf32e37074547ff17d2e4a90c066636843367eee0 |
|
MD5 | 5298636a11f7761593fca8e6f5882b77 |
|
BLAKE2b-256 | 1fc8f26c5dbaf86e1b3f041db2c5e8f5ff2f7108e0d032f97146727efadb00ee |
Hashes for awscrt-0.13.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a16687bd157fffb0a1df41007654d4263417904469ef7c64ba8895bfa2f7b9b0 |
|
MD5 | f0b7085aa3611da04a455c47073b76c8 |
|
BLAKE2b-256 | 9f236bd0e880d8c0bceeed6cefdaed8a7b90297bed9e076d57b6699ccabfb565 |
Hashes for awscrt-0.13.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4706a67bfefb98813b01985f5fc14808bd992107cd9c8774da20272265677ea3 |
|
MD5 | 434c501fd4c064eb38de6476b61e9c7e |
|
BLAKE2b-256 | 0808c18bdbe18c635a3b741be5b8df00a441f13b5917baa3455208335718836b |
Hashes for awscrt-0.13.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83d0f51b5e062976160c556e8e785253d9cb9ef8268ed677f7fd5f04d90b44cf |
|
MD5 | 1738c6ce7edb4ef08d6caf0cd4a34043 |
|
BLAKE2b-256 | fe502f0a58622e77548af078626127b361c4cdfe7835b51eb3dcebbafc43061b |
Hashes for awscrt-0.13.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 590c10c1911470667dc30245b117ef114e2d73df0a88d6a914353a3b3308d2c3 |
|
MD5 | 546185887e5f3284751084bdda23a31c |
|
BLAKE2b-256 | a8d810fd41053d10807876dbc30d3cf7047f2c69f947578ebd32ed9434c6a577 |
Hashes for awscrt-0.13.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fec0ec9a494a59527dfdf46f13e010af7762958b25219af93e770f902db365b |
|
MD5 | a443ce165805a9ea82bca32a441ff8dc |
|
BLAKE2b-256 | cd456dda68e803ee3e3583bcce2cc6abec9ed9b2cc240d7ddea7348e31fb951e |
Hashes for awscrt-0.13.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b78d5a073b246483f08208475f4078488bc94ac461da21b91a5c82a5756f07f |
|
MD5 | 5e02d4c9bde8ec43f11188bdc76a943f |
|
BLAKE2b-256 | 09c88e54a99d1edb2b823bf151c685f042a30aa159a1ae37f6998adc4dc725bc |
Hashes for awscrt-0.13.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 615962c4d5a0e7bbcf9fee3913f4c6c6c5bbe69b037a36ea7671287c50e9f911 |
|
MD5 | 5523d1ae7f16fd294065928ce3a4c067 |
|
BLAKE2b-256 | 4a37155c3e9afbfe7c0838ec42e945f3b40ca66ce92abcb463eb7c4f2c740f02 |
Hashes for awscrt-0.13.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3b6d9db74c4b5ca259027cc5fbc35ff26299c4f23aad7e3e3f63bc38f4fefdb |
|
MD5 | 4c3113d4131e329562caeb6e2c9b1f8c |
|
BLAKE2b-256 | 22eb6b4291597b4268375798d16d5fd8ba3b40e3693e03de92b08867ea5509dc |
Hashes for awscrt-0.13.1-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4be120045abde8f6467b1ee1be33e103b46b44e6e0bf96435fec68b3d28e9cd4 |
|
MD5 | 15b02486e5cac1c6f30afd1f3b497aef |
|
BLAKE2b-256 | 6e7fa2a4e8ccbdb2288ffb9ffab0d65d5c2eb4d8e321f795935eb8904b80d94a |
Hashes for awscrt-0.13.1-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de8deb0c9550a510844c4d98e586d6ca60b253b348b463429710f613eefc1141 |
|
MD5 | 9b2417b12557453c93d62fc098ed4f94 |
|
BLAKE2b-256 | b0f1242d831e6c5e0a99f814d38538286e46663c47a3d4cea7f6a47048f367b5 |