types-aiobotocore-mediastore
Type annotations for aiobotocore.MediaStore 2.4.2 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-builder 7.12.5.
More information can be found on types-aiobotocore page and in types-aiobotocore-mediastore docs.
See how it helps to find and fix potential bugs:
- types-aiobotocore-mediastore
How to install
From PyPI with pip
Install types-aiobotocore for MediaStore service.
# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[mediastore]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[mediastore]'
# standalone installation
python -m pip install types-aiobotocore-mediastore
How to uninstall
python -m pip uninstall -y types-aiobotocore-mediastore
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylanceas your Python Language Server - Install
types-aiobotocore[mediastore]in your environment:
python -m pip install 'types-aiobotocore[mediastore]'
Both type checking and code completion should now work. No explicit type
annotations required, write your aiobotocore code as usual.
PyCharm
Install types-aiobotocore-lite[mediastore] in your environment:
python -m pip install 'types-aiobotocore-lite[mediastore]'`
Both type checking and code completion should now work. Explicit type annotations are required.
Use types-aiobotocore package instead for implicit type discovery.
Emacs
- Install
types-aiobotocorewith services you use in your environment:
python -m pip install 'types-aiobotocore[mediastore]'
- Install use-package, lsp, company and flycheck packages
- Install lsp-pyright package
(use-package lsp-pyright
:ensure t
:hook (python-mode . (lambda ()
(require 'lsp-pyright)
(lsp))) ; or lsp-deferred
:init (when (executable-find "python3")
(setq lsp-pyright-python-executable-cmd "python3"))
)
- Make sure emacs uses the environment where you have installed
types-aiobotocore
Type checking should now work. No explicit type annotations required, write
your aiobotocore code as usual.
Sublime Text
- Install
types-aiobotocore[mediastore]with services you use in your environment:
python -m pip install 'types-aiobotocore[mediastore]'
- Install LSP-pyright package
Type checking should now work. No explicit type annotations required, write
your aiobotocore code as usual.
Other IDEs
Not tested, but as long as your IDE supports mypy or pyright, everything
should work.
mypy
- Install
mypy:python -m pip install mypy - Install
types-aiobotocore[mediastore]in your environment:
python -m pip install 'types-aiobotocore[mediastore]'`
Type checking should now work. No explicit type annotations required, write
your aiobotocore code as usual.
pyright
- Install
pyright:npm i -g pyright - Install
types-aiobotocore[mediastore]in your environment:
python -m pip install 'types-aiobotocore[mediastore]'
Optionally, you can install types-aiobotocore to typings folder.
Type checking should now work. No explicit type annotations required, write
your aiobotocore code as usual.
Explicit type annotations
Client annotations
MediaStoreClient provides annotations for
session.create_client("mediastore").
from aiobotocore.session import get_session
from types_aiobotocore_mediastore import MediaStoreClient
session = get_session()
async with session.create_client("mediastore") as client:
client: MediaStoreClient
# now client usage is checked by mypy and IDE should provide code completion
Paginators annotations
types_aiobotocore_mediastore.paginator module contains type annotations for
all paginators.
from aiobotocore.session import get_session
from types_aiobotocore_mediastore import MediaStoreClient
from types_aiobotocore_mediastore.paginator import ListContainersPaginator
session = get_session()
async with session.create_client("mediastore") as client:
client: MediaStoreClient
# Explicit type annotations are optional here
# Types should be correctly discovered by mypy and IDEs
list_containers_paginator: ListContainersPaginator = client.get_paginator("list_containers")
Literals
types_aiobotocore_mediastore.literals module contains literals extracted from
shapes that can be used in user code for type checking.
from types_aiobotocore_mediastore.literals import (
ContainerLevelMetricsType,
ContainerStatusType,
ListContainersPaginatorName,
MethodNameType,
MediaStoreServiceName,
ServiceName,
ResourceServiceName,
PaginatorName,
RegionName,
)
def check_value(value: ContainerLevelMetricsType) -> bool:
...
Typed dictionaries
types_aiobotocore_mediastore.type_defs module contains structures and shapes
assembled to typed dictionaries for additional type checking.
from types_aiobotocore_mediastore.type_defs import (
ContainerTypeDef,
CorsRuleTypeDef,
TagTypeDef,
ResponseMetadataTypeDef,
DeleteContainerInputRequestTypeDef,
DeleteContainerPolicyInputRequestTypeDef,
DeleteCorsPolicyInputRequestTypeDef,
DeleteLifecyclePolicyInputRequestTypeDef,
DeleteMetricPolicyInputRequestTypeDef,
DescribeContainerInputRequestTypeDef,
GetContainerPolicyInputRequestTypeDef,
GetCorsPolicyInputRequestTypeDef,
GetLifecyclePolicyInputRequestTypeDef,
GetMetricPolicyInputRequestTypeDef,
PaginatorConfigTypeDef,
ListContainersInputRequestTypeDef,
ListTagsForResourceInputRequestTypeDef,
MetricPolicyRuleTypeDef,
PutContainerPolicyInputRequestTypeDef,
PutLifecyclePolicyInputRequestTypeDef,
StartAccessLoggingInputRequestTypeDef,
StopAccessLoggingInputRequestTypeDef,
UntagResourceInputRequestTypeDef,
PutCorsPolicyInputRequestTypeDef,
CreateContainerInputRequestTypeDef,
TagResourceInputRequestTypeDef,
CreateContainerOutputTypeDef,
DescribeContainerOutputTypeDef,
GetContainerPolicyOutputTypeDef,
GetCorsPolicyOutputTypeDef,
GetLifecyclePolicyOutputTypeDef,
ListContainersOutputTypeDef,
ListTagsForResourceOutputTypeDef,
ListContainersInputListContainersPaginateTypeDef,
MetricPolicyTypeDef,
GetMetricPolicyOutputTypeDef,
PutMetricPolicyInputRequestTypeDef,
)
def get_structure() -> ContainerTypeDef:
return {...}
How it works
Fully automated
mypy-boto3-builder carefully
generates type annotations for each service, patiently waiting for
aiobotocore updates. It delivers a drop-in type annotations for you and makes
sure that:
- All available
aiobotocoreservices are covered. - Each public class and method of every
aiobotocoreservice gets valid type annotations extracted from the documentation (blamebotocoredocs if types are incorrect). - Type annotations include up-to-date documentation.
- Link to documentation is provided for every method.
- Code is processed by black and isort for readability.
What's new
Implemented features
- Fully type annotated
boto3,botocoreandaiobotocorelibraries mypy,pyright,VSCode,PyCharm,Sublime TextandEmacscompatibilityClient,ServiceResource,Resource,WaiterPaginatortype annotations for each service- Generated
TypeDefsfor each service - Generated
Literalsfor each service - Auto discovery of types for
boto3.clientandboto3.sessioncalls - Auto discovery of types for
session.clientandsession.sessioncalls - Auto discovery of types for
client.get_waiterandclient.get_paginatorcalls - Auto discovery of types for
ServiceResourceandResourcecollections - Auto discovery of types for
aiobotocore.Session.create_clientcalls
Latest changes
Builder changelog can be found in Releases.
Versioning
types-aiobotocore-mediastore version is the same as related aiobotocore
version and follows PEP 440
format.
Thank you
- Allie Fitter for boto3-type-annotations, this package is based on top of his work
- black developers for an awesome formatting tool
- Timothy Edmund Crosley for isort and how flexible it is
- mypy developers for doing all dirty work for us
- pyright team for the new era of typed Python
Documentation
All services type annotations can be found in aiobotocore docs
Support and contributing
This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.
Release files for types-aiobotocore-mediastore 2.4.2.post2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| types-aiobotocore-mediastore-2.4.2.post2.tar.gz | 16.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| types_aiobotocore_mediastore-2.4.2.post2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.9 kB
Release files / types-aiobotocore-mediastore-2.4.2.post2.tar.gz
| Download URL | types-aiobotocore-mediastore-2.4.2.post2.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
460c263681eb629fdd349dc386d02787abc8fdaba122c39ff39c83a04cc9339b
|
|
BLAKE2b-256 checksum How to use checksums |
5ba0abac33e531d1f545f908bfb15f117c5c00675c9d665789b826329a64778b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / types_aiobotocore_mediastore-2.4.2.post2-py3-none-any.whl
| Download URL | types_aiobotocore_mediastore-2.4.2.post2-py3-none-any.whl |
|---|---|
| Size | 22.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
116c465d5fd4f1c0cd317dc078593c12628cb3eaa2f28c01a98a427c69574d7f
|
|
BLAKE2b-256 checksum How to use checksums |
aea6b0c0870a60dec398b88d1b8d4b150dbacad88181e41861a7e4aed2e5dec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|