mypy-boto3-cloudtrail
Type annotations for boto3 CloudTrail 1.43.0 service generated with mypy-boto3-builder 8.12.0
What it is and what it does
This package is a type-stub library that adds complete type annotations for boto3's CloudTrail service. It is generated automatically from boto3's API definitions and works with mypy, pyright, VSCode, PyCharm, Emacs, Sublime Text, and other IDEs that support Python type checking. When installed, it enables IDE autocomplete and static type checking for CloudTrail client calls, paginators, and type definitions—without requiring explicit type annotations in your code.
The package is designed as a companion to boto3; it does not replace or wrap boto3 itself, only adds type information. It depends only on typing-extensions and supports Python 3.9 through 3.14. The library is actively maintained and generated with mypy-boto3-builder 8.12.0. It is most commonly installed as part of boto3-stubs[cloudtrail], though it can also be installed standalone.
Use it for:
- Enable IDE autocomplete and type hints when writing CloudTrail API calls in VSCode or PyCharm.
- Run mypy or pyright type checking on CloudTrail boto3 code without manual type annotations.
- Catch CloudTrail API usage errors at development time instead of runtime.
- Use paginator types (ListTrailsPaginator, LookupEventsPaginator, etc.) with full type safety.
- Integrate CloudTrail type checking into CI/CD pipelines with mypy or pyright.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type annotations and IDE autocomplete for boto3's CloudTrail service, enabling static type checking with mypy, pyright, and other tools.
Yes. If you use boto3's CloudTrail service and want IDE autocomplete or static type checking, install this package—it has low friction, active maintenance, no known vulnerabilities, and an MIT license. Skip it only if you have no type-checking tooling in your workflow or are willing to write all CloudTrail types manually.
Install
mypy-boto3-cloudtrail on PyPI
pip
pip install mypy-boto3-cloudtrailuv
uv add mypy-boto3-cloudtrailpoetry
poetry add mypy-boto3-cloudtrailInstalling mypy-boto3-cloudtrail
Before you install
Low friction install with a single runtime dependency (typing-extensions). Active maintenance with recent releases; last commit 2026-06-22.
License in practice
MIT license permits use in commercial and private projects with minimal restrictions—include a copy of the license in distributions.
Quickstart
pip install mypy-boto3-cloudtrail
from boto3.session import Session
from mypy_boto3_cloudtrail import CloudTrailClient
client: CloudTrailClient = Session().client("cloudtrail")
Requires Python 3.9 or later; boto3 must be installed separately.
Verify before relying
- Whether the package works with all boto3 versions or only 1.43.0 and nearby releases.
- Performance impact in PyCharm; documentation mentions potential slowness with Literal overloads.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — typing-extensions |
| Maintenance | actively maintained — 107 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 479,854/month — #6,432 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mypy_boto3_cloudtrail-1.43.0-py3-none-any.whl
Keywords: boto3, cloudtrail, boto3-stubs, type-annotations, mypy, typeshed, autocomplete
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI 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
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
mypy-boto3-cloudtrail-dataProvides type annotations and IDE…
permissive · top 15,000 on PyPI
types-aiobotocore-cloudtrailProvides type annotations for aiobotocore's…
permissive · top 15,000 on PyPI
mypy-boto3-clouddirectoryProvides type annotations and IDE…
permissive · top 15,000 on PyPI
mypy-boto3-evidentlyProvides type annotations and IDE…
permissive · top 15,000 on PyPI
mypy-boto3-ec2Provides type annotations and IDE autocomplete…
permissive · top 5,000 on PyPI
mypy-boto3-deadlineProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
mypy-boto3-internetmonitorProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
mypy-boto3-cloudwatchProvides type annotations for boto3's…
permissive · top 5,000 on PyPI
mypy-boto3-iotProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
mypy-boto3-cloudfrontProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI