Strings#
Mypy_boto3_builder Index / Mypy Boto3 Builder / Utils / Strings
Auto-generated documentation for mypy_boto3_builder.utils.strings module.
get_anchor_link#
Convert header to markdown anchor link.
Signature#
get_botocore_class_name#
Get Botocore class name from Service metadata.
Signature#
get_class_prefix#
Get a valid Python class prefix from func_name
.
Arguments#
func_name
- Any string.
Returns#
String with a class prefix.
Signature#
get_short_docstring#
Create a short docstring from boto3 documentation.
Trims docstring to 300 chars.
Removes double and triple backticks.
Stops on **Request syntax**
and ::
.
Ensures that backticks are closed.
Replaces Text <link>
with Text.
Wraps docstring to 80 chars.
Signature#
get_type_def_name#
Get a valid Python TypeDef class name from parts
.
Examples#
Signature#
is_reserved#
Check whether varialbe name conflicts with Python reserved names.
Signature#
textwrap#
Wrap text to width
chars.