types-boto3-logs 1.35.72__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Vlad Emelianov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,512 @@
1
+ Metadata-Version: 2.1
2
+ Name: types-boto3-logs
3
+ Version: 1.35.72
4
+ Summary: Type annotations for boto3 CloudWatchLogs 1.35.72 service generated with mypy-boto3-builder 8.5.0
5
+ Home-page: https://github.com/youtype/mypy_boto3_builder
6
+ Author: Vlad Emelianov
7
+ Author-email: vlad.emelianov.nz@gmail.com
8
+ License: MIT License
9
+ Project-URL: Documentation, https://youtype.github.io/types_boto3_docs/types_boto3_logs/
10
+ Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
11
+ Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
12
+ Keywords: boto3 logs boto3-stubs type-annotations mypy typeshed autocomplete
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Environment :: Console
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Natural Language :: English
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
+ Classifier: Programming Language :: Python :: 3 :: Only
28
+ Classifier: Programming Language :: Python :: Implementation :: CPython
29
+ Classifier: Typing :: Stubs Only
30
+ Requires-Python: >=3.8
31
+ Description-Content-Type: text/markdown
32
+ License-File: LICENSE
33
+ Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
34
+
35
+ <a id="types-boto3-logs"></a>
36
+
37
+ # types-boto3-logs
38
+
39
+ [![PyPI - types-boto3-logs](https://img.shields.io/pypi/v/types-boto3-logs.svg?color=blue)](https://pypi.org/project/types-boto3-logs/)
40
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/types-boto3-logs.svg?color=blue)](https://pypi.org/project/types-boto3-logs/)
41
+ [![Docs](https://img.shields.io/readthedocs/boto3-stubs.svg?color=blue)](https://youtype.github.io/types_boto3_docs/)
42
+ [![PyPI - Downloads](https://static.pepy.tech/badge/types-boto3-logs)](https://pypistats.org/packages/types-boto3-logs)
43
+
44
+ ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
45
+
46
+ Type annotations for
47
+ [boto3 CloudWatchLogs 1.35.72](https://pypi.org/project/boto3/) compatible with
48
+ [VSCode](https://code.visualstudio.com/),
49
+ [PyCharm](https://www.jetbrains.com/pycharm/),
50
+ [Emacs](https://www.gnu.org/software/emacs/),
51
+ [Sublime Text](https://www.sublimetext.com/),
52
+ [mypy](https://github.com/python/mypy),
53
+ [pyright](https://github.com/microsoft/pyright) and other tools.
54
+
55
+ Generated by
56
+ [mypy-boto3-builder 8.5.0](https://github.com/youtype/mypy_boto3_builder).
57
+
58
+ More information can be found on
59
+ [types-boto3](https://pypi.org/project/types-boto3/) page and in
60
+ [types-boto3-logs docs](https://youtype.github.io/types_boto3_docs/types_boto3_logs/).
61
+
62
+ See how it helps you find and fix potential bugs:
63
+
64
+ ![types-boto3 demo](https://github.com/youtype/mypy_boto3_builder/raw/main/demo.gif)
65
+
66
+ - [types-boto3-logs](#types-boto3-logs)
67
+ - [How to install](#how-to-install)
68
+ - [VSCode extension](#vscode-extension)
69
+ - [From PyPI with pip](#from-pypi-with-pip)
70
+ - [How to uninstall](#how-to-uninstall)
71
+ - [Usage](#usage)
72
+ - [VSCode](#vscode)
73
+ - [PyCharm](#pycharm)
74
+ - [Emacs](#emacs)
75
+ - [Sublime Text](#sublime-text)
76
+ - [Other IDEs](#other-ides)
77
+ - [mypy](#mypy)
78
+ - [pyright](#pyright)
79
+ - [Pylint compatibility](#pylint-compatibility)
80
+ - [Explicit type annotations](#explicit-type-annotations)
81
+ - [Client annotations](#client-annotations)
82
+ - [Paginators annotations](#paginators-annotations)
83
+ - [Literals](#literals)
84
+ - [Type definitions](#type-definitions)
85
+ - [How it works](#how-it-works)
86
+ - [What's new](#what's-new)
87
+ - [Implemented features](#implemented-features)
88
+ - [Latest changes](#latest-changes)
89
+ - [Versioning](#versioning)
90
+ - [Thank you](#thank-you)
91
+ - [Documentation](#documentation)
92
+ - [Support and contributing](#support-and-contributing)
93
+
94
+ <a id="how-to-install"></a>
95
+
96
+ ## How to install
97
+
98
+ <a id="vscode-extension"></a>
99
+
100
+ ### VSCode extension
101
+
102
+ Add
103
+ [AWS Boto3](https://marketplace.visualstudio.com/items?itemName=Boto3typed.boto3-ide)
104
+ extension to your VSCode and run `AWS boto3: Quick Start` command.
105
+
106
+ Click `Modify` and select `boto3 common` and `CloudWatchLogs`.
107
+
108
+ <a id="from-pypi-with-pip"></a>
109
+
110
+ ### From PyPI with pip
111
+
112
+ Install `types-boto3` for `CloudWatchLogs` service.
113
+
114
+ ```bash
115
+ # install with boto3 type annotations
116
+ python -m pip install 'types-boto3[logs]'
117
+
118
+
119
+ # Lite version does not provide session.client/resource overloads
120
+ # it is more RAM-friendly, but requires explicit type annotations
121
+ python -m pip install 'types-boto3-lite[logs]'
122
+
123
+
124
+ # standalone installation
125
+ python -m pip install types-boto3-logs
126
+ ```
127
+
128
+ <a id="how-to-uninstall"></a>
129
+
130
+ ## How to uninstall
131
+
132
+ ```bash
133
+ python -m pip uninstall -y types-boto3-logs
134
+ ```
135
+
136
+ <a id="usage"></a>
137
+
138
+ ## Usage
139
+
140
+ <a id="vscode"></a>
141
+
142
+ ### VSCode
143
+
144
+ - Install
145
+ [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
146
+ - Install
147
+ [Pylance extension](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)
148
+ - Set `Pylance` as your Python Language Server
149
+ - Install `types-boto3[logs]` in your environment:
150
+
151
+ ```bash
152
+ python -m pip install 'types-boto3[logs]'
153
+ ```
154
+
155
+ Both type checking and code completion should now work. No explicit type
156
+ annotations required, write your `boto3` code as usual.
157
+
158
+ <a id="pycharm"></a>
159
+
160
+ ### PyCharm
161
+
162
+ > ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
163
+ > [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
164
+ > to use [types-boto3-lite](https://pypi.org/project/types-boto3-lite/) until
165
+ > the issue is resolved.
166
+
167
+ > ⚠️ If you experience slow performance and high CPU usage, try to disable
168
+ > `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
169
+ > [pyright](https://github.com/microsoft/pyright) instead.
170
+
171
+ > ⚠️ To continue using `PyCharm` type checker, you can try to replace
172
+ > `types-boto3` with
173
+ > [types-boto3-lite](https://pypi.org/project/types-boto3-lite/):
174
+
175
+ ```bash
176
+ pip uninstall types-boto3
177
+ pip install types-boto3-lite
178
+ ```
179
+
180
+ Install `types-boto3[logs]` in your environment:
181
+
182
+ ```bash
183
+ python -m pip install 'types-boto3[logs]'
184
+ ```
185
+
186
+ Both type checking and code completion should now work.
187
+
188
+ <a id="emacs"></a>
189
+
190
+ ### Emacs
191
+
192
+ - Install `types-boto3` with services you use in your environment:
193
+
194
+ ```bash
195
+ python -m pip install 'types-boto3[logs]'
196
+ ```
197
+
198
+ - Install [use-package](https://github.com/jwiegley/use-package),
199
+ [lsp](https://github.com/emacs-lsp/lsp-mode/),
200
+ [company](https://github.com/company-mode/company-mode) and
201
+ [flycheck](https://github.com/flycheck/flycheck) packages
202
+ - Install [lsp-pyright](https://github.com/emacs-lsp/lsp-pyright) package
203
+
204
+ ```elisp
205
+ (use-package lsp-pyright
206
+ :ensure t
207
+ :hook (python-mode . (lambda ()
208
+ (require 'lsp-pyright)
209
+ (lsp))) ; or lsp-deferred
210
+ :init (when (executable-find "python3")
211
+ (setq lsp-pyright-python-executable-cmd "python3"))
212
+ )
213
+ ```
214
+
215
+ - Make sure emacs uses the environment where you have installed `types-boto3`
216
+
217
+ Type checking should now work. No explicit type annotations required, write
218
+ your `boto3` code as usual.
219
+
220
+ <a id="sublime-text"></a>
221
+
222
+ ### Sublime Text
223
+
224
+ - Install `types-boto3[logs]` with services you use in your environment:
225
+
226
+ ```bash
227
+ python -m pip install 'types-boto3[logs]'
228
+ ```
229
+
230
+ - Install [LSP-pyright](https://github.com/sublimelsp/LSP-pyright) package
231
+
232
+ Type checking should now work. No explicit type annotations required, write
233
+ your `boto3` code as usual.
234
+
235
+ <a id="other-ides"></a>
236
+
237
+ ### Other IDEs
238
+
239
+ Not tested, but as long as your IDE supports `mypy` or `pyright`, everything
240
+ should work.
241
+
242
+ <a id="mypy"></a>
243
+
244
+ ### mypy
245
+
246
+ - Install `mypy`: `python -m pip install mypy`
247
+ - Install `types-boto3[logs]` in your environment:
248
+
249
+ ```bash
250
+ python -m pip install 'types-boto3[logs]'
251
+ ```
252
+
253
+ Type checking should now work. No explicit type annotations required, write
254
+ your `boto3` code as usual.
255
+
256
+ <a id="pyright"></a>
257
+
258
+ ### pyright
259
+
260
+ - Install `pyright`: `npm i -g pyright`
261
+ - Install `types-boto3[logs]` in your environment:
262
+
263
+ ```bash
264
+ python -m pip install 'types-boto3[logs]'
265
+ ```
266
+
267
+ Optionally, you can install `types-boto3` to `typings` directory.
268
+
269
+ Type checking should now work. No explicit type annotations required, write
270
+ your `boto3` code as usual.
271
+
272
+ <a id="pylint-compatibility"></a>
273
+
274
+ ### Pylint compatibility
275
+
276
+ It is totally safe to use `TYPE_CHECKING` flag in order to avoid
277
+ `types-boto3-logs` dependency in production. However, there is an issue in
278
+ `pylint` that it complains about undefined variables. To fix it, set all types
279
+ to `object` in non-`TYPE_CHECKING` mode.
280
+
281
+ ```python
282
+ from typing import TYPE_CHECKING
283
+
284
+ if TYPE_CHECKING:
285
+ from types_boto3_ec2 import EC2Client, EC2ServiceResource
286
+ from types_boto3_ec2.waiters import BundleTaskCompleteWaiter
287
+ from types_boto3_ec2.paginators import DescribeVolumesPaginator
288
+ else:
289
+ EC2Client = object
290
+ EC2ServiceResource = object
291
+ BundleTaskCompleteWaiter = object
292
+ DescribeVolumesPaginator = object
293
+
294
+ ...
295
+ ```
296
+
297
+ <a id="explicit-type-annotations"></a>
298
+
299
+ ## Explicit type annotations
300
+
301
+ <a id="client-annotations"></a>
302
+
303
+ ### Client annotations
304
+
305
+ `CloudWatchLogsClient` provides annotations for `boto3.client("logs")`.
306
+
307
+ ```python
308
+ from boto3.session import Session
309
+
310
+ from types_boto3_logs import CloudWatchLogsClient
311
+
312
+ client: CloudWatchLogsClient = Session().client("logs")
313
+
314
+ # now client usage is checked by mypy and IDE should provide code completion
315
+ ```
316
+
317
+ <a id="paginators-annotations"></a>
318
+
319
+ ### Paginators annotations
320
+
321
+ `types_boto3_logs.paginator` module contains type annotations for all
322
+ paginators.
323
+
324
+ ```python
325
+ from boto3.session import Session
326
+
327
+ from types_boto3_logs import CloudWatchLogsClient
328
+ from types_boto3_logs.paginator import (
329
+ DescribeConfigurationTemplatesPaginator,
330
+ DescribeDeliveriesPaginator,
331
+ DescribeDeliveryDestinationsPaginator,
332
+ DescribeDeliverySourcesPaginator,
333
+ DescribeDestinationsPaginator,
334
+ DescribeExportTasksPaginator,
335
+ DescribeLogGroupsPaginator,
336
+ DescribeLogStreamsPaginator,
337
+ DescribeMetricFiltersPaginator,
338
+ DescribeQueriesPaginator,
339
+ DescribeResourcePoliciesPaginator,
340
+ DescribeSubscriptionFiltersPaginator,
341
+ FilterLogEventsPaginator,
342
+ ListAnomaliesPaginator,
343
+ ListLogAnomalyDetectorsPaginator,
344
+ ListLogGroupsForQueryPaginator,
345
+ )
346
+
347
+ client: CloudWatchLogsClient = Session().client("logs")
348
+
349
+ # Explicit type annotations are optional here
350
+ # Types should be correctly discovered by mypy and IDEs
351
+ describe_configuration_templates_paginator: DescribeConfigurationTemplatesPaginator = (
352
+ client.get_paginator("describe_configuration_templates")
353
+ )
354
+ describe_deliveries_paginator: DescribeDeliveriesPaginator = client.get_paginator(
355
+ "describe_deliveries"
356
+ )
357
+ describe_delivery_destinations_paginator: DescribeDeliveryDestinationsPaginator = (
358
+ client.get_paginator("describe_delivery_destinations")
359
+ )
360
+ describe_delivery_sources_paginator: DescribeDeliverySourcesPaginator = client.get_paginator(
361
+ "describe_delivery_sources"
362
+ )
363
+ describe_destinations_paginator: DescribeDestinationsPaginator = client.get_paginator(
364
+ "describe_destinations"
365
+ )
366
+ describe_export_tasks_paginator: DescribeExportTasksPaginator = client.get_paginator(
367
+ "describe_export_tasks"
368
+ )
369
+ describe_log_groups_paginator: DescribeLogGroupsPaginator = client.get_paginator(
370
+ "describe_log_groups"
371
+ )
372
+ describe_log_streams_paginator: DescribeLogStreamsPaginator = client.get_paginator(
373
+ "describe_log_streams"
374
+ )
375
+ describe_metric_filters_paginator: DescribeMetricFiltersPaginator = client.get_paginator(
376
+ "describe_metric_filters"
377
+ )
378
+ describe_queries_paginator: DescribeQueriesPaginator = client.get_paginator("describe_queries")
379
+ describe_resource_policies_paginator: DescribeResourcePoliciesPaginator = client.get_paginator(
380
+ "describe_resource_policies"
381
+ )
382
+ describe_subscription_filters_paginator: DescribeSubscriptionFiltersPaginator = (
383
+ client.get_paginator("describe_subscription_filters")
384
+ )
385
+ filter_log_events_paginator: FilterLogEventsPaginator = client.get_paginator("filter_log_events")
386
+ list_anomalies_paginator: ListAnomaliesPaginator = client.get_paginator("list_anomalies")
387
+ list_log_anomaly_detectors_paginator: ListLogAnomalyDetectorsPaginator = client.get_paginator(
388
+ "list_log_anomaly_detectors"
389
+ )
390
+ list_log_groups_for_query_paginator: ListLogGroupsForQueryPaginator = client.get_paginator(
391
+ "list_log_groups_for_query"
392
+ )
393
+ ```
394
+
395
+ <a id="literals"></a>
396
+
397
+ ### Literals
398
+
399
+ `types_boto3_logs.literals` module contains literals extracted from shapes that
400
+ can be used in user code for type checking.
401
+
402
+ Full list of `CloudWatchLogs` Literals can be found in
403
+ [docs](https://youtype.github.io/types_boto3_docs/types_boto3_logs/literals/).
404
+
405
+ ```python
406
+ from types_boto3_logs.literals import AnomalyDetectorStatusType
407
+
408
+
409
+ def check_value(value: AnomalyDetectorStatusType) -> bool: ...
410
+ ```
411
+
412
+ <a id="type-definitions"></a>
413
+
414
+ ### Type definitions
415
+
416
+ `types_boto3_logs.type_defs` module contains structures and shapes assembled to
417
+ typed dictionaries and unions for additional type checking.
418
+
419
+ Full list of `CloudWatchLogs` TypeDefs can be found in
420
+ [docs](https://youtype.github.io/types_boto3_docs/types_boto3_logs/type_defs/).
421
+
422
+ ```python
423
+ from types_boto3_logs.type_defs import AccountPolicyTypeDef
424
+
425
+
426
+ def get_value() -> AccountPolicyTypeDef:
427
+ return {...}
428
+ ```
429
+
430
+ <a id="how-it-works"></a>
431
+
432
+ ## How it works
433
+
434
+ Fully automated
435
+ [mypy-boto3-builder](https://github.com/youtype/mypy_boto3_builder) carefully
436
+ generates type annotations for each service, patiently waiting for `boto3`
437
+ updates. It delivers drop-in type annotations for you and makes sure that:
438
+
439
+ - All available `boto3` services are covered.
440
+ - Each public class and method of every `boto3` service gets valid type
441
+ annotations extracted from `botocore` schemas.
442
+ - Type annotations include up-to-date documentation.
443
+ - Link to documentation is provided for every method.
444
+ - Code is processed by [ruff](https://docs.astral.sh/ruff/) for readability.
445
+
446
+ <a id="what's-new"></a>
447
+
448
+ ## What's new
449
+
450
+ <a id="implemented-features"></a>
451
+
452
+ ### Implemented features
453
+
454
+ - Fully type annotated `boto3`, `botocore`, `aiobotocore` and `aioboto3`
455
+ libraries
456
+ - `mypy`, `pyright`, `VSCode`, `PyCharm`, `Sublime Text` and `Emacs`
457
+ compatibility
458
+ - `Client`, `ServiceResource`, `Resource`, `Waiter` `Paginator` type
459
+ annotations for each service
460
+ - Generated `TypeDefs` for each service
461
+ - Generated `Literals` for each service
462
+ - Auto discovery of types for `boto3.client` and `boto3.resource` calls
463
+ - Auto discovery of types for `session.client` and `session.resource` calls
464
+ - Auto discovery of types for `client.get_waiter` and `client.get_paginator`
465
+ calls
466
+ - Auto discovery of types for `ServiceResource` and `Resource` collections
467
+ - Auto discovery of types for `aiobotocore.Session.create_client` calls
468
+
469
+ <a id="latest-changes"></a>
470
+
471
+ ### Latest changes
472
+
473
+ Builder changelog can be found in
474
+ [Releases](https://github.com/youtype/mypy_boto3_builder/releases).
475
+
476
+ <a id="versioning"></a>
477
+
478
+ ## Versioning
479
+
480
+ `types-boto3-logs` version is the same as related `boto3` version and follows
481
+ [PEP 440](https://www.python.org/dev/peps/pep-0440/) format.
482
+
483
+ <a id="thank-you"></a>
484
+
485
+ ## Thank you
486
+
487
+ - [Allie Fitter](https://github.com/alliefitter) for
488
+ [boto3-type-annotations](https://pypi.org/project/boto3-type-annotations/),
489
+ this package is based on top of his work
490
+ - [black](https://github.com/psf/black) developers for an awesome formatting
491
+ tool
492
+ - [Timothy Edmund Crosley](https://github.com/timothycrosley) for
493
+ [isort](https://github.com/PyCQA/isort) and how flexible it is
494
+ - [mypy](https://github.com/python/mypy) developers for doing all dirty work
495
+ for us
496
+ - [pyright](https://github.com/microsoft/pyright) team for the new era of typed
497
+ Python
498
+
499
+ <a id="documentation"></a>
500
+
501
+ ## Documentation
502
+
503
+ All services type annotations can be found in
504
+ [boto3 docs](https://youtype.github.io/types_boto3_docs/types_boto3_logs/)
505
+
506
+ <a id="support-and-contributing"></a>
507
+
508
+ ## Support and contributing
509
+
510
+ This package is auto-generated. Please reports any bugs or request new features
511
+ in [mypy-boto3-builder](https://github.com/youtype/mypy_boto3_builder/issues/)
512
+ repository.