View on GitHub

mypy_boto3

Type annotations for boto3 compatible with mypy, VSCode and PyCharm

Download this project as a .zip file Download this project as a tar.gz file

Helpers

Auto-generated documentation for builder.mypy_boto3_builder.parsers.helpers module.

Helpers for parsing methods and attributes.

get_public_methods

[find in source code]

def get_public_methods(inspect_class: Any) -> Dict[str, FunctionType]:

Extract public methods from any class.

Arguments

Returns

A dictionary of method name and method.

parse_attributes

[find in source code]

def parse_attributes(
    service_name: ServiceName,
    resource_name: str,
    resource: Boto3ServiceResource,
) -> List[Attribute]:

Extract attributes from boto3 resource.

Arguments

Returns

A list of Attribute structures.

parse_method

[find in source code]

def parse_method(
    parent_name: str,
    name: str,
    method: FunctionType,
    service_name: ServiceName,
) -> Method:

Parse method to a structure.

Arguments

Returns

Method structure.