Main

Auto-generated documentation for mypy_boto3_builder.main module.

Main entrypoint for builder.

generate_product

[find in source code]

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

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

See also

get_available_service_names

[find in source code]

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

Get a list of boto3 supported service names.

Arguments

  • session - Boto3 session

Returns

A list of supported services.

See also

get_generator_cls

[find in source code]

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

Get Generator class for a product.

Raises

  • ValueError - If product is not supported.

See also

get_selected_service_names

[find in source code]

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

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.

See also

main

[find in source code]

def main() -> None:

Main entrypoint for builder.