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
  • session - Boto3 session
  • service_names - Selected service names
  • master_service_names - Service names included in master

Signature

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

See also

get_available_service_names

Show source in main.py:64

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: Session) -> 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:24

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:134

Main entrypoint for builder.

Signature

def main() -> None:
    ...