Skip to main content

Type annotations for boto3.RecycleBin 1.20.16 service, generated by mypy-boto3-builder 6.2.1

Project description

mypy-boto3-rbin

PyPI - mypy-boto3-rbin PyPI - Python Version Docs PyPI - Downloads

boto3.typed

Type annotations for boto3.RecycleBin 1.20.16 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.

Generated by mypy-boto3-builder 6.2.1.

More information can be found on boto3-stubs page and in mypy-boto3-rbin docs

See how it helps to find and fix potential bugs:

boto3-stubs demo

How to install

VSCode extension

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and RecycleBin.

From PyPI with pip

Install boto3-stubs for RecycleBin service.

python -m pip install boto3-stubs[rbin]

Usage

VSCode

  • Install Python extension
  • Install Pylance extension
  • Set Pylance as your Python Language Server
  • Install boto-stubs[rbin] in your environment: python -m pip install 'boto3-stubs[rbin]'

Both type checking and auto-complete should work for RecycleBin service. No explicit type annotations required, write your boto3 code as usual.

PyCharm

  • Install boto-stubs[rbin] in your environment: python -m pip install 'boto3-stubs[rbin]'

Both type checking and auto-complete should work for RecycleBin service. No explicit type annotations required, write your boto3 code as usual. Auto-complete can be slow on big projects or if you have a lot of installed boto3-stubs submodules.

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 boto-stubs[rbin] in your environment: python -m pip install 'boto3-stubs[rbin]'
  • Run mypy as usual

Type checking should work for RecycleBin service. No explicit type annotations required, write your boto3 code as usual.

pyright

  • Install pyright: yarn global add pyright
  • Install boto-stubs[rbin] in your environment: python -m pip install 'boto3-stubs[rbin]'
  • Optionally, you can install boto3-stubs to typings folder.

Type checking should work for RecycleBin service. No explicit type annotations required, write your boto3 code as usual.

Explicit type annotations

Client annotations

RecycleBinClient provides annotations for boto3.client("rbin").

import boto3

from mypy_boto3_rbin import RecycleBinClient

client: RecycleBinClient = boto3.client("rbin")

# now client usage is checked by mypy and IDE should provide code auto-complete

# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: RecycleBinClient = session.client("rbin")

Paginators annotations

mypy_boto3_rbin.paginator module contains type annotations for all paginators.

from mypy_boto3_rbin import RecycleBinClient
from mypy_boto3_rbin.paginator import (
    ListRulesPaginator,
)

client: RecycleBinClient = boto3.client("rbin")

# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_rules_paginator: ListRulesPaginator = client.get_paginator("list_rules")

Literals

mypy_boto3_rbin.literals module contains literals extracted from shapes that can be used in user code for type checking.

from mypy_boto3_rbin.literals import (
    ListRulesPaginatorName,
    ResourceTypeType,
    RetentionPeriodUnitType,
    RuleStatusType,
    ServiceName,
    PaginatorName,
)

def check_value(value: ListRulesPaginatorName) -> bool:
    ...

Typed dictionaries

mypy_boto3_rbin.type_defs module contains structures and shapes assembled to typed dictionaries for additional type checking.

from mypy_boto3_rbin.type_defs import (
    CreateRuleRequestRequestTypeDef,
    CreateRuleResponseTypeDef,
    DeleteRuleRequestRequestTypeDef,
    GetRuleRequestRequestTypeDef,
    GetRuleResponseTypeDef,
    ListRulesRequestRequestTypeDef,
    ListRulesResponseTypeDef,
    ListTagsForResourceRequestRequestTypeDef,
    ListTagsForResourceResponseTypeDef,
    PaginatorConfigTypeDef,
    ResourceTagTypeDef,
    ResponseMetadataTypeDef,
    RetentionPeriodTypeDef,
    RuleSummaryTypeDef,
    TagResourceRequestRequestTypeDef,
    TagTypeDef,
    UntagResourceRequestRequestTypeDef,
    UpdateRuleRequestRequestTypeDef,
    UpdateRuleResponseTypeDef,
)

def get_structure() -> CreateRuleRequestRequestTypeDef:
    return {
      ...
    }

Versioning

mypy-boto3-rbin version is the same as related boto3 version and follows PEP 440 format.

Documentation

All type annotations can be found in mypy-boto3-rbin docs

Support and contributing

This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mypy-boto3-rbin-1.20.16.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mypy_boto3_rbin-1.20.16-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file mypy-boto3-rbin-1.20.16.tar.gz.

File metadata

  • Download URL: mypy-boto3-rbin-1.20.16.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for mypy-boto3-rbin-1.20.16.tar.gz
Algorithm Hash digest
SHA256 9c7f2598514e931d7da80d88026fe96d1ba9475c581e6c447ae81ce945779d04
MD5 df2b335a56288da1b8121bf2861fd1fd
BLAKE2b-256 2a6aed9ae0efcf79f82f38459ed5490e1dfebc45c096fd6b97bebd1ba6587e9d

See more details on using hashes here.

File details

Details for the file mypy_boto3_rbin-1.20.16-py3-none-any.whl.

File metadata

  • Download URL: mypy_boto3_rbin-1.20.16-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for mypy_boto3_rbin-1.20.16-py3-none-any.whl
Algorithm Hash digest
SHA256 2de799c8246165fc11cc50b412cbbb121a1d963f2d042b71704698bddd191385
MD5 61c529fd66f5e7457f98aa40caedc802
BLAKE2b-256 c147ceaa37104804691d14cbf81474125a5461c9df088cdcc6aae88442f77fc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page