skillfed

mypy-boto3-logs

Type annotations for boto3 CloudWatchLogs 1.43.66 service generated with mypy-boto3-builder 8.12.0

mypy-boto3-logs v1.43.66 2.0M downloads/30d#3,342 on PyPI670
Permissive license MIT Active released

What it is and what it does

mypy-boto3-logs is a type-stub package that adds complete type annotations for the boto3 CloudWatchLogs service. It is generated from boto3 1.43.66 and works with mypy, pyright, VSCode Pylance, PyCharm, Emacs, Sublime Text, and other IDE and type-checker tools. When installed, it enables static type checking and IDE autocompletion for CloudWatchLogs client calls without requiring explicit type annotations in your code.

The package depends only on typing-extensions and is designed as a development-time or optional runtime dependency. It supports Python 3.9 through 3.14 and is classified as Production/Stable. The documentation notes that PyCharm users may experience performance issues with Literal overloads and recommends using the lite variant or switching to mypy/pyright for type checking in that case.

Use it for:

  • Enable IDE autocompletion and type hints when using boto3 to interact with AWS CloudWatch Logs.
  • Run mypy or pyright type checking on code that calls CloudWatchLogs client methods.
  • Catch type errors at development time before deploying boto3-based AWS applications.
  • Use TYPE_CHECKING guards to include type annotations without adding a production runtime dependency.
  • Work with paginators and service resource types with full type safety in CloudWatch Logs operations.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides type annotations for boto3's CloudWatchLogs service, enabling type checking and IDE autocompletion when working with AWS Logs through boto3.

Yes. This is a lightweight, actively maintained type-stub package with no known vulnerabilities, permissive licensing, and low install friction. Install it if you use boto3 for CloudWatch Logs and want IDE autocompletion and static type checking. It is optional at runtime but valuable during development.

Install

mypy-boto3-logs on PyPI

pip

pip install mypy-boto3-logs

uv

uv add mypy-boto3-logs

poetry

poetry add mypy-boto3-logs

Installing mypy-boto3-logs

Before you install

Low install friction with a single lightweight runtime dependency (typing-extensions). Released 7 days ago with active maintenance; the repository has 670 stars and was last updated 2026-06-22.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.

Quickstart

pip install mypy-boto3-logs

from boto3.session import Session
from mypy_boto3_logs import CloudWatchLogsClient

client: CloudWatchLogsClient = Session().client("logs")
# Type checking and IDE completion now work for client usage

Requires Python 3.9 or later; boto3 must be installed separately in your environment.

Verify before relying

  • Whether PyCharm performance issues mentioned in the docs (issue PY-40997) still affect current versions.
  • Whether the lite variant (boto3-stubs-lite) is recommended for production deployments to reduce memory overhead.

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 — 7 days since the last release
Last repo commit
First released
Downloads 2,047,635/month — #3,342 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mypy_boto3_logs-1.43.66-py3-none-any.whl

Keywords: boto3, logs, boto3-stubs, type-annotations, mypy, typeshed, autocomplete

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTyping :: Stubs Only

Tags

boto3 type stubs cloudwatch logsaws logs type annotationsboto3 cloudwatchlogs mypy supporttype hints for boto3 logs clientboto3 logs autocomplete idecloudwatch logs type checkingboto3 stubs logs service
type-stubsboto3-serviceaws-cloudwatch

More Software Development packages