awscrt
A common runtime for AWS Python projects
What it is and what it does
awscrt is a Python wrapper around AWS's native Common Runtime library, written in C. It exposes low-level primitives for networking, TLS, event loops, and cryptographic operations that underpin AWS SDKs and tools. The package requires Python 3.8+ and ships as precompiled wheels for macOS, Linux (x86_64 and ARM), Windows, and musl-based systems.
The library uses platform-native TLS backends: Schannel on Windows, Apple Secure Transport (or optionally s2n-tls) on macOS, and s2n-tls on Linux. It bundles its own copy of libcrypto to avoid system OpenSSL dependencies. Key constraint: it uses background threads, making it incompatible with os.fork() on POSIX systems—multiprocessing must be configured to use 'spawn' or 'forkserver' instead of the default 'fork' mode.
Use it for:
- Building AWS SDK clients that require high-performance, native-code networking and TLS
- Integrating cryptographic primitives (ED25519, hashing, signing) into AWS-adjacent applications
- Deploying AWS tools in environments where pure-Python implementations are too slow
- Configuring advanced TLS behavior (e.g., enabling TLS 1.3 on macOS via environment variable)
- Debugging AWS service communication via hierarchical logging integrated with Python's logging module
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python bindings for the AWS Common Runtime, providing low-level networking, cryptography, and I/O primitives for AWS SDK operations.
Yes, if you are building or using AWS SDKs in Python and need the native runtime they depend on. Install friction is moderate due to compiled extensions, but wheels are well-distributed. No security vulnerabilities reported. Active maintenance and permissive Apache-2.0 license pose no barriers. Main gotcha: incompatible with os.fork() by default—requires multiprocessing configuration if you use ProcessPoolExecutor or similar.
Install
awscrt on PyPI
pip
pip install awscrtuv
uv add awscrtpoetry
poetry add awscrtInstalling awscrt
Before you install
Medium install friction due to compiled C extensions across multiple platforms (macOS, Linux, Windows, ARM). Actively maintained with recent releases; no runtime dependencies simplifies deployment once installed.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install awscrt
from awscrt.logging import init_logging, CRT_LOG_FORMAT
import logging
handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter(CRT_LOG_FORMAT))
logging.getLogger('awscrt').addHandler(handler)
init_logging(logging.DEBUG)
Requires Python 3.8+. On POSIX systems (except macOS), multiprocessing defaults to 'fork', which is unsafe with awscrt's background threads—use 'spawn' or 'forkserver' context if using ProcessPoolExecutor or similar.
Verify before relying
- Whether prebuilt wheels cover all target deployment platforms and Python versions in your environment
- Performance characteristics compared to pure-Python AWS SDK implementations
- Compatibility with specific AWS services or SDK versions that depend on this runtime
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 19,738,690/month — #1,055 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: awscrt-0.36.2-cp310-cp310-macosx_10_15_universal2.whl; awscrt-0.36.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; awscrt-0.36.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; awscrt-0.36.2-cp310-cp310-musllinux_1_1_aarch64.whl; awscrt-0.36.2-cp310-cp310-musllinux_1_1_x86_64.whl; awscrt-0.36.2-cp310-cp310-win32.whl; awscrt-0.36.2-cp310-cp310-win_amd64.whl; awscrt-0.36.2-cp311-abi3-macosx_10_15_universal2.whl; awscrt-0.36.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; awscrt-0.36.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; awscrt-0.36.2-cp311-abi3-musllinux_1_1_aarch64.whl; awscrt-0.36.2-cp311-abi3-musllinux_1_1_x86_64.whl; awscrt-0.36.2-cp311-abi3-win32.whl; awscrt-0.36.2-cp311-abi3-win_amd64.whl; awscrt-0.36.2-cp313-abi3-macosx_10_15_universal2.whl; awscrt-0.36.2-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; awscrt-0.36.2-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; awscrt-0.36.2-cp313-abi3-musllinux_1_1_aarch64.whl; awscrt-0.36.2-cp313-abi3-musllinux_1_1_x86_64.whl; awscrt-0.36.2-cp313-abi3-win32.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
awsiotsdkConnects Python applications to AWS IoT Core…
permissive · top 5,000 on PyPI
types-awscrtProvides type annotations and IDE code…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
nasslnassl is an OpenSSL wrapper for Python that…
agpl · top 15,000 on PyPI
tlslite-ngPure Python implementation of SSL/TLS protocols…
copyleft · top 15,000 on PyPI
pyobjc-framework-SecurityProvides Python bindings to macOS's native…
permissive · top 5,000 on PyPI
amazon-transcribeStreams audio to Amazon Transcribe and receives…
permissive · top 15,000 on PyPI
google-cloud-commonProvides common protobuf definitions and…
permissive · top 15,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
thrift-saslImplements SASL authentication transports for…
permissive · top 5,000 on PyPI