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.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac946861ace550024a2ffb469cb43587cb192de9e3030a67b053733ef8deba83 |
|
MD5 | 2252d93476f19f8e4d7b3d8ce508d574 |
|
BLAKE2b-256 | e8cfa6d97327fda071e5e29b636f0418b340272d9c296e31123befe080813326 |
Hashes for awscrt-0.13.0-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63b5b461dd2f556fdb5ed4904b07fc5ee6da3a3348523d31be980861204ede31 |
|
MD5 | c626fb7260229b9720953bb036879080 |
|
BLAKE2b-256 | 2285e66bf8aa940e6f288bb792be84628dd3cd0f0038f7085d86762e48683b05 |
Hashes for awscrt-0.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c73704198b3091fd06872f3f7f427933b31706f220b78fb0516588b077a676b9 |
|
MD5 | 8fbc545ea18a9b7c2034c773dd0d33af |
|
BLAKE2b-256 | 46bfa5ba3bc35fa7e11a6d9431782cc8e54ba735f896229f00f0b64171a18326 |
Hashes for awscrt-0.13.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 629f80405dee16f2a0011c031592fc343b53035ea49c56a613bdee52ca9a9385 |
|
MD5 | c738f3baa01edcf35469774810c76dc0 |
|
BLAKE2b-256 | 0fc0297f155a44d218c7d947135244c5d9032be74a0f4e8de1bc27637069ff0d |
Hashes for awscrt-0.13.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab05b88601ea2f302e222e2f7b20747e877c8117d216bc2100c7e7bdf0af9673 |
|
MD5 | f341b307561f43bf505d78887979963d |
|
BLAKE2b-256 | 8b8ad4274c1ac3b602ac40ac4925cb982cff430e8013ebcd055aac92697efac6 |
Hashes for awscrt-0.13.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e4a17296b9bc7fc59aade80917108b3e3c6b7975ce0db5718540a124a651250 |
|
MD5 | 23a7dfc2c3aa2bc82cf26a8d051b9660 |
|
BLAKE2b-256 | 6b6aeef81f04505da5859fc7dbda16e5d8bd084e4e687bacb984b655b46c0aff |
Hashes for awscrt-0.13.0-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4e03852e885c374a86774df478f31bcc259d4d44d637cc6be0d4d5db61a4e2a |
|
MD5 | 9b0a682cc5ec3d18a0819fac9cc19cd5 |
|
BLAKE2b-256 | 78569894ac230c6c7c6e007c545fb295b9ae4571c0a5ae8c39cb89ff66b3803a |
Hashes for awscrt-0.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a13e93f080e02be69668e4fb51a40080d011a8290a8cd6f4ccafc4155f76e33d |
|
MD5 | 4e10ab6ca442c9054a373c836fe6bc1c |
|
BLAKE2b-256 | e41f50cbcf48ab5417c79349d5b40b1624daed764d636e7e375b4aed21e5bae6 |
Hashes for awscrt-0.13.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07562eea9ea695e0fe70a820a2bd80391f8071cd100d6dd0e6903d63c7fb85eb |
|
MD5 | 5f81abf5c6a6c1f3fbe341eece026347 |
|
BLAKE2b-256 | 9c23c7f24fb7e57d630f870314271f0d6df88e02bbaaed2568617e67a85891fc |
Hashes for awscrt-0.13.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 269bcbfc857a77dd01c078d4f748aa83f6e544a4868a205290d569848b56f03a |
|
MD5 | a6993189881680dd3c95d8ca103ad86a |
|
BLAKE2b-256 | 2a564a510d6a30e3604aebe8f057d084e32993fffa37a27566512807261babf8 |
Hashes for awscrt-0.13.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e490f82f4261bcb2df68fbdc7e320215d0390cf2dc56fbefbe713c18a4b18f4 |
|
MD5 | 3291000f992656d939157ee75e1fe471 |
|
BLAKE2b-256 | c99d61de719fc02b162c60891e5824eb6f466e40396beeb0e9f403f75d42ebe8 |
Hashes for awscrt-0.13.0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca0d19bcb7ebe57f70fcf3025e34dfdf82eb8e4753017d94b3ed530698a6b88b |
|
MD5 | bad365aa78d96a68b9bcc429a2acaa81 |
|
BLAKE2b-256 | e8fda73a576ee92f2df39a829beee77b77f3e058c4d409722c7bc61e37e03f37 |
Hashes for awscrt-0.13.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6efcbcc69c84e6d7e7a4617c4a0c01a9343903a2b3888dd8774e6eef7344f67a |
|
MD5 | 6d3e028c008120d8b805ef4b6beec3e4 |
|
BLAKE2b-256 | 1df0ec65bdf27d6a4566154096bf585b5597ff14f28551b8171bf9f01c09ab46 |
Hashes for awscrt-0.13.0-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b2bf1a59d41409287f5df3e21c8cc17b1bdba724eb08c9c77ed9613f86822df |
|
MD5 | d2b6bcd95cb4fec38eb4c0ff22f67d52 |
|
BLAKE2b-256 | e9fb1abb5aa649c3228bab9ed121916fc57548234799b48c684fd1aadfb382f7 |
Hashes for awscrt-0.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a65f71bb8807ed0635665aaa12b708f43162f0c1534efd3df3751789ee53b53a |
|
MD5 | a77993b3ee70b972c2beb76fec534760 |
|
BLAKE2b-256 | 3d3f423b7ce67f16c9701367186dedd0408f1836ed6aff3730bb9fa7162c6273 |
Hashes for awscrt-0.13.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ff09ced9d0e3408abb575f8a3c8f2549d559fed04877616047b1120c9f5b409 |
|
MD5 | ef2705bbfa02cdca7fdaf5b6f532b99b |
|
BLAKE2b-256 | 40c409c6ba878c96a30c011d4124ac744772f63093b3a000f68f76c15e693a68 |
Hashes for awscrt-0.13.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66f02e67020c7bba5ee74f13765492ecaf79b4c62a3361c8cb51899c7d69a4b0 |
|
MD5 | d9bcaaf3f39fbde3e37788e1dd15d845 |
|
BLAKE2b-256 | cf0f84dcea9a6f2840a020f59f43aace30471e855507bcebbca8de76b12b5da7 |
Hashes for awscrt-0.13.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 858b373231052b4adc767263e0d7696b087928e31ca895317ab70452ac223f65 |
|
MD5 | 5e6f25608893412171fd24f706e79835 |
|
BLAKE2b-256 | 0dc7d71cc31567b176b3189ee65eb6c16a9b1486dfbcee6bdd0de655fbf76c86 |
Hashes for awscrt-0.13.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 146c6f69e73a3c88f7647d19f917a8656c5506c46a0b18efb5d73775619b5411 |
|
MD5 | 4b4c4aacba978269b83fe0184b1f5111 |
|
BLAKE2b-256 | 2dcd9a0b134935ad510d162604038bfd9b463f1d9e3aca5df64a905814e05191 |
Hashes for awscrt-0.13.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e56a848954c57e664b0f1a68d26ddd54bef87509cb6b88e6692033a2dc4e8624 |
|
MD5 | 21d4b128ad1607e7bcfd016b0f1e3793 |
|
BLAKE2b-256 | e00d910a8b573d5577444e5e3b4a27ac8ae6e76fb7418db7b1ba3aa23a5fece9 |
Hashes for awscrt-0.13.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83cfd581225c353c6475650f2af83f456e02f21788d75c0bf7771c4a323b44b6 |
|
MD5 | d571437398e8728a87d0ffd512d95880 |
|
BLAKE2b-256 | 5d642a0bdaec4473a89d3bf397672fa45ff2efba7b32e1f912dbf7591e9e3b16 |
Hashes for awscrt-0.13.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 381e116b0b71dd0e61880806a642a3fc841db8ac25a65135b63e0b05a0bc2dc0 |
|
MD5 | 7dd50b906726b982289bb4fa63f8c1f8 |
|
BLAKE2b-256 | 60f27f42b374e12a33247c58a6a8faf1add70fc74c039b1c9364680ff5122bed |
Hashes for awscrt-0.13.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 279eca19563e28139ba439b7f68bdffacc1f20a74d237b41bab21cfc9423f629 |
|
MD5 | d2b16ba9fd7f54d5b5f839b5f726f43f |
|
BLAKE2b-256 | 946b2a8100e242c7fb3b116d2535ab6fc0b461c8a7eefddf23536448a581c397 |
Hashes for awscrt-0.13.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dd5cf168602a60e2f415cbd423cac31b2aaacc671cb30cc48af4369231c1fb5 |
|
MD5 | fac95c4f846ba94b3441548f703cd670 |
|
BLAKE2b-256 | 805099b383cdd6de4941b9e6ec27a0a28235ff69ef06b3e458cff6c08d2b63d5 |
Hashes for awscrt-0.13.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac95b3267e059c063ff724897046bd32cd9647b0565155471e4e4b8dc756d37c |
|
MD5 | 3c93afb83d82a35a75d8d75b09277c80 |
|
BLAKE2b-256 | 3199d910f90d92f4aeee113dd1164f911e031e3717beb2488d1ee5fa1e81c327 |
Hashes for awscrt-0.13.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 359ec24045eb2796b2efdf5aeab8f6867f8d2da27cac99ee91f75eefd61f37d1 |
|
MD5 | 312e1aaa0e8aeb15535afd1e5fca05fe |
|
BLAKE2b-256 | d39cad231aa173885173cb4c4eae9c33b5fabde63f4138f278345d67bd621018 |
Hashes for awscrt-0.13.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fcafdc584700974994dd5d1a3a45a5811425a58b41611245c5f254a5f748ced |
|
MD5 | 0480e8f05737c2c848eeb87ddfabdb3b |
|
BLAKE2b-256 | 27f11f75ead0bc76ab08903b59ad24309ef2ebc76f3e7a7eb9e3476a3af72d34 |
Hashes for awscrt-0.13.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5069b76718ca8e86e59364a63dd10b6b7eb7e8f69c768f96d47ad4f9c92b8fc3 |
|
MD5 | e0ebf9fd7256eb9ecf6edcfcc6246d5a |
|
BLAKE2b-256 | a190f39bd3fd67e467f3e47354ff1726354171a65dee7521d72c10a2dde7c6eb |
Hashes for awscrt-0.13.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 639474cbd8e39a7878254f29f1f68c114b0db1d33b02aa491ed30da19c62a99e |
|
MD5 | efcc3335da3f007e7c46febb2733b3b0 |
|
BLAKE2b-256 | 49b4307801e1ff103fcf6c4c41a035721559436153625afe708e70b050de0fb0 |
Hashes for awscrt-0.13.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4678a183b2b9cc2e2c4136736b3a3b31d1a2aeb981ebe8f0049eb2bcf5ef88d9 |
|
MD5 | 9d30b3a4e271956b943f6b7720c86503 |
|
BLAKE2b-256 | 197be2467ab88b5d90e06f357d6dbfe84a4a3d090758c785b54cd27a181bcd23 |
Hashes for awscrt-0.13.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70464ad6bb3cac33646c0a5ea610af8205b9894866148741f27b64c0d227b515 |
|
MD5 | dc3d183177ee1cca2217f68dc5e0ecfc |
|
BLAKE2b-256 | c1e6f36e034644a8c66e1b82a6ce233ceaf9117158ad18d5a41485af93aa79e4 |
Hashes for awscrt-0.13.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8cbb151c154c0664cedfe35d9b8174502d1ba638e1e1c47ab3d5cf5f41be84d |
|
MD5 | fecb329813fe32e03b7b0e6c55a7b62b |
|
BLAKE2b-256 | 2ee5ac065b0b7ea699d01fecdd1959a4a6368abfaa448670695a401ff475d9b3 |
Hashes for awscrt-0.13.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 890821870d904bad27a40575bc745a27a827dc211615dc831bcc9126f3da7031 |
|
MD5 | 8b85a0a442dc34445defdd5ac9ad5d61 |
|
BLAKE2b-256 | 55e616624c3ebb21ae2f629969f004f2541c0ced904296b04a3093c05861a995 |
Hashes for awscrt-0.13.0-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2b079697e644b9d7a30e1e9bfbc44abe1160a9117707dfa4f5df606605242a5 |
|
MD5 | 495431ab7c2374af07f1af139c66ed76 |
|
BLAKE2b-256 | 0ce98e8ae43b92f9949dbe9f2fe9fb6ded972072d9d3321e3354fb501b8d8c84 |
Hashes for awscrt-0.13.0-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60f376a7285629a0335d0c429e243e90075b21948c3d29a5231722de16d5efd5 |
|
MD5 | 61d4554998913b7294f497c696ca83fa |
|
BLAKE2b-256 | f753a48bb8b5f8131e7b47e1d63813e3a809905e3898dc210ef6d8bf27c804d6 |