Package: types-aiobotocore-sns
types-aiobotocore-snsType annotations foraiobotocore.SNS 2.12.0service compatible withVSCode,PyCharm,Emacs,Sublime Text,mypy,pyrightand other tools.Generated bymypy-boto3-builder 7.23.2.More information can be found ontypes-aiobotocorepage and intypes-aiobotocore-sns docs.See how it helps to find and fix potential bugs:types-aiobotocore-snsHow to installFrom PyPI with pipHow to uninstallUsageVSCodePyCharmEmacsSublime TextOther IDEsmypypyrightExplicit type annotationsClient annotationsPaginators annotationsService Resource annotationsOther resources annotationsCollections annotationsLiteralsType definitionsHow it worksWhat's newImplemented featuresLatest changesVersioningThank youDocumentationSupport and contributingHow to installFrom PyPI with pipInstalltypes-aiobotocoreforSNSservice.# install with aiobotocore type annotationspython-mpipinstall'types-aiobotocore[sns]'# Lite version does not provide session.client/resource overloads# it is more RAM-friendly, but requires explicit type annotationspython-mpipinstall'types-aiobotocore-lite[sns]'# standalone installationpython-mpipinstalltypes-aiobotocore-snsHow to uninstallpython-mpipuninstall-ytypes-aiobotocore-snsUsageVSCodeInstallPython extensionInstallPylance extensionSetPylanceas your Python Language ServerInstalltypes-aiobotocore[sns]in your environment:python-mpipinstall'types-aiobotocore[sns]'Both type checking and code completion should now work. No explicit type
annotations required, write youraiobotocorecode as usual.PyCharmInstalltypes-aiobotocore-lite[sns]in your environment:python-mpipinstall'types-aiobotocore-lite[sns]'`Both type checking and code completion should now work. Explicit type
annotationsare required.Usetypes-aiobotocorepackage instead for implicit type discovery.EmacsInstalltypes-aiobotocorewith services you use in your environment:python-mpipinstall'types-aiobotocore[sns]'Installuse-package,lsp,companyandflycheckpackagesInstalllsp-pyrightpackage(use-packagelsp-pyright:ensuret:hook(python-mode.(lambda()(require'lsp-pyright)(lsp))); or lsp-deferred:init(when(executable-find"python3")(setqlsp-pyright-python-executable-cmd"python3")))Make sure emacs uses the environment where you have installedtypes-aiobotocoreType checking should now work. No explicit type annotations required, write
youraiobotocorecode as usual.Sublime TextInstalltypes-aiobotocore[sns]with services you use in your environment:python-mpipinstall'types-aiobotocore[sns]'InstallLSP-pyrightpackageType checking should now work. No explicit type annotations required, write
youraiobotocorecode as usual.Other IDEsNot tested, but as long as your IDE supportsmypyorpyright, everything
should work.mypyInstallmypy:python -m pip install mypyInstalltypes-aiobotocore[sns]in your environment:python-mpipinstall'types-aiobotocore[sns]'`Type checking should now work. No explicit type annotations required, write
youraiobotocorecode as usual.pyrightInstallpyright:npm i -g pyrightInstalltypes-aiobotocore[sns]in your environment:python-mpipinstall'types-aiobotocore[sns]'Optionally, you can installtypes-aiobotocoretotypingsfolder.Type checking should now work. No explicit type annotations required, write
youraiobotocorecode as usual.Explicit type annotationsClient annotationsSNSClientprovides annotations forsession.create_client("sns").fromaiobotocore.sessionimportget_sessionfromtypes_aiobotocore_snsimportSNSClientsession=get_session()asyncwithsession.create_client("sns")asclient:client:SNSClient# now client usage is checked by mypy and IDE should provide code completionPaginators annotationstypes_aiobotocore_sns.paginatormodule contains type annotations for all
paginators.fromaiobotocore.sessionimportget_sessionfromtypes_aiobotocore_snsimportSNSClientfromtypes_aiobotocore_sns.paginatorimport(ListEndpointsByPlatformApplicationPaginator,ListOriginationNumbersPaginator,ListPhoneNumbersOptedOutPaginator,ListPlatformApplicationsPaginator,ListSMSSandboxPhoneNumbersPaginator,ListSubscriptionsPaginator,ListSubscriptionsByTopicPaginator,ListTopicsPaginator,)session=get_session()asyncwithsession.create_client("sns")asclient:client:SNSClient# Explicit type annotations are optional here# Types should be correctly discovered by mypy and IDEslist_endpoints_by_platform_application_paginator:(ListEndpointsByPlatformApplicationPaginator)=client.get_paginator("list_endpoints_by_platform_application")list_origination_numbers_paginator:ListOriginationNumbersPaginator=client.get_paginator("list_origination_numbers")list_phone_numbers_opted_out_paginator:ListPhoneNumbersOptedOutPaginator=(client.get_paginator("list_phone_numbers_opted_out"))list_platform_applications_paginator:ListPlatformApplicationsPaginator=client.get_paginator("list_platform_applications")list_sms_sandbox_phone_numbers_paginator:ListSMSSandboxPhoneNumbersPaginator=(client.get_paginator("list_sms_sandbox_phone_numbers"))list_subscriptions_paginator:ListSubscriptionsPaginator=client.get_paginator("list_subscriptions")list_subscriptions_by_topic_paginator:ListSubscriptionsByTopicPaginator=client.get_paginator("list_subscriptions_by_topic")list_topics_paginator:ListTopicsPaginator=client.get_paginator("list_topics")Service Resource annotationsSNSServiceResourceprovides annotations foraiobotocore.resource("sns").fromaiobotocore.sessionimportget_sessionfromtypes_aiobotocore_snsimportSNSServiceResourcesession=get_session()asyncwithsession.resource("sns")asresource:resource:SNSServiceResource# now resource usage is checked by mypy and IDE should provide code completionOther resources annotationstypes_aiobotocore_sns.service_resourcemodule contains type annotations for
all resources.fromaiobotocore.sessionimportget_sessionfromtypes_aiobotocore_snsimportSNSServiceResourcefromtypes_aiobotocore_sns.service_resourceimport(PlatformApplication,PlatformEndpoint,Subscription,Topic,)session=get_session()asyncwithsession.resource("sns")asresource:resource:SNSServiceResource# Explicit type annotations are optional here# Type should be correctly discovered by mypy and IDEsmy_platform_application:PlatformApplication=resource.PlatformApplication(...)my_platform_endpoint:PlatformEndpoint=resource.PlatformEndpoint(...)my_subscription:Subscription=resource.Subscription(...)my_topic:Topic=resource.Topic(...)Collections annotationstypes_aiobotocore_sns.service_resourcemodule contains type annotations for
allSNSServiceResourcecollections.fromaiobotocore.sessionimportget_sessionfromtypes_aiobotocore_snsimportSNSServiceResourcefromtypes_aiobotocore_sns.service_resourceimport(ServiceResourcePlatformApplicationsCollection,ServiceResourceSubscriptionsCollection,ServiceResourceTopicsCollection,)session=get_session()asyncwithsession.resource("sns")asresource:resource:SNSServiceResource# Explicit type annotations are optional here# Type should be correctly discovered by mypy and IDEsplatform_applications:sns_resources.ServiceResourcePlatformApplicationsCollection=(resource.platform_applications)subscriptions:sns_resources.ServiceResourceSubscriptionsCollection=resource.subscriptionstopics:sns_resources.ServiceResourceTopicsCollection=resource.topicsLiteralstypes_aiobotocore_sns.literalsmodule contains literals extracted from shapes
that can be used in user code for type checking.Full list ofSNSLiterals can be found indocs.fromtypes_aiobotocore_sns.literalsimportLanguageCodeStringTypedefcheck_value(value:LanguageCodeStringType)->bool:...Type definitionstypes_aiobotocore_sns.type_defsmodule contains structures and shapes
assembled to typed dictionaries and unions for additional type checking.Full list ofSNSTypeDefs can be found indocs.fromtypes_aiobotocore_sns.type_defsimportAddPermissionInputRequestTypeDefdefget_value()->AddPermissionInputRequestTypeDef:return{...}How it worksFully automatedmypy-boto3-buildercarefully
generates type annotations for each service, patiently waiting foraiobotocoreupdates. It delivers drop-in type annotations for you and makes
sure that:All availableaiobotocoreservices are covered.Each public class and method of everyaiobotocoreservice gets valid type
annotations extracted frombotocoreschemas.Type annotations include up-to-date documentation.Link to documentation is provided for every method.Code is processed byblackandisortfor readability.What's newImplemented featuresFully type annotatedboto3,botocore,aiobotocoreandaioboto3librariesmypy,pyright,VSCode,PyCharm,Sublime TextandEmacscompatibilityClient,ServiceResource,Resource,WaiterPaginatortype
annotations for each serviceGeneratedTypeDefsfor each serviceGeneratedLiteralsfor each serviceAuto discovery of types forboto3.clientandboto3.resourcecallsAuto discovery of types forsession.clientandsession.resourcecallsAuto discovery of types forclient.get_waiterandclient.get_paginatorcallsAuto discovery of types forServiceResourceandResourcecollectionsAuto discovery of types foraiobotocore.Session.create_clientcallsLatest changesBuilder changelog can be found inReleases.Versioningtypes-aiobotocore-snsversion is the same as relatedaiobotocoreversion
and followsPEP 440format.Thank youAllie Fitterforboto3-type-annotations,
this package is based on top of his workblackdevelopers for an awesome formatting
toolTimothy Edmund Crosleyforisortand how flexible it ismypydevelopers for doing all dirty work
for uspyrightteam for the new era of typed
PythonDocumentationAll services type annotations can be found inaiobotocore docsSupport and contributingThis package is auto-generated. Please reports any bugs or request new features
inmypy-boto3-builderrepository.