Skip to content

Main#

Mypy_boto3_builder Index / Mypy Boto3 Builder / Main

Auto-generated documentation for mypy_boto3_builder.main module.

generate_product#

Show source in main.py:103

Generate a selected product.

Arguments#

  • product - Product to generate
  • args - CLI namespace
  • service_names - Selected service names
  • master_service_names - Service names included in master

Signature#

def generate_product(
    product: Product,
    args: Namespace,
    service_names: Sequence[ServiceName],
    master_service_names: Sequence[ServiceName],
) -> None: ...

See also#

get_available_service_names#

Show source in main.py:65

Get a list of boto3 supported service names.

Arguments#

  • session - Boto3 session

Returns#

A list of supported services.

Signature#

def get_available_service_names(session: BotocoreSession) -> list[ServiceName]: ...

See also#

get_generator_cls#

Show source in main.py:86

Get Generator class for a product.

Raises#

  • ValueError - If product is not supported.

Signature#

def get_generator_cls(product: Product) -> type[BaseGenerator]: ...

See also#

get_selected_service_names#

Show source in main.py:25

Get a list of selected service names.

Supports updated to select only services updated in currect boto3 release. Supports all to select all available service names.

Arguments#

  • selected - Selected service names as strings.
  • available - All ServiceNames available in current boto3 release.

Returns#

A list of selected ServiceNames.

Signature#

def get_selected_service_names(
    selected: Iterable[str], available: Iterable[ServiceName]
) -> list[ServiceName]: ...

See also#

main#

Show source in main.py:131

Run builder.

Signature#

def main() -> None: ...