diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..aab1c9b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,838 @@ +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = false +max_line_length = 120 +tab_width = 4 +ij_continuation_indent_size = 8 +ij_formatter_off_tag = @formatter:off +ij_formatter_on_tag = @formatter:on +ij_formatter_tags_enabled = true +ij_smart_tabs = false +ij_visual_guides = +ij_wrap_on_typing = false + +[*.css] +ij_css_align_closing_brace_with_properties = false +ij_css_blank_lines_around_nested_selector = 1 +ij_css_blank_lines_between_blocks = 1 +ij_css_block_comment_add_space = false +ij_css_brace_placement = end_of_line +ij_css_enforce_quotes_on_format = false +ij_css_hex_color_long_format = false +ij_css_hex_color_lower_case = false +ij_css_hex_color_short_format = false +ij_css_hex_color_upper_case = false +ij_css_keep_blank_lines_in_code = 2 +ij_css_keep_indents_on_empty_lines = false +ij_css_keep_single_line_blocks = false +ij_css_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow +ij_css_space_after_colon = true +ij_css_space_before_opening_brace = true +ij_css_use_double_quotes = true +ij_css_value_alignment = do_not_align + +[*.feature] +indent_size = 2 +ij_gherkin_keep_indents_on_empty_lines = false + +[*.less] +indent_size = 2 +ij_less_align_closing_brace_with_properties = false +ij_less_blank_lines_around_nested_selector = 1 +ij_less_blank_lines_between_blocks = 1 +ij_less_block_comment_add_space = false +ij_less_brace_placement = 0 +ij_less_enforce_quotes_on_format = false +ij_less_hex_color_long_format = false +ij_less_hex_color_lower_case = false +ij_less_hex_color_short_format = false +ij_less_hex_color_upper_case = false +ij_less_keep_blank_lines_in_code = 2 +ij_less_keep_indents_on_empty_lines = false +ij_less_keep_single_line_blocks = false +ij_less_line_comment_add_space = false +ij_less_line_comment_at_first_column = false +ij_less_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow +ij_less_space_after_colon = true +ij_less_space_before_opening_brace = true +ij_less_use_double_quotes = true +ij_less_value_alignment = 0 + +[*.pp] +indent_size = 2 +tab_width = 2 +ij_continuation_indent_size = 2 +ij_puppet_keep_indents_on_empty_lines = false + +[*.properties] +ij_properties_align_group_field_declarations = false +ij_properties_keep_blank_lines = false +ij_properties_key_value_delimiter = equals +ij_properties_spaces_around_key_value_delimiter = false + +[*.sass] +indent_size = 2 +ij_sass_align_closing_brace_with_properties = false +ij_sass_blank_lines_around_nested_selector = 1 +ij_sass_blank_lines_between_blocks = 1 +ij_sass_brace_placement = 0 +ij_sass_enforce_quotes_on_format = false +ij_sass_hex_color_long_format = false +ij_sass_hex_color_lower_case = false +ij_sass_hex_color_short_format = false +ij_sass_hex_color_upper_case = false +ij_sass_keep_blank_lines_in_code = 2 +ij_sass_keep_indents_on_empty_lines = false +ij_sass_keep_single_line_blocks = false +ij_sass_line_comment_add_space = false +ij_sass_line_comment_at_first_column = false +ij_sass_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow +ij_sass_space_after_colon = true +ij_sass_space_before_opening_brace = true +ij_sass_use_double_quotes = true +ij_sass_value_alignment = 0 + +[*.scss] +indent_size = 2 +ij_scss_align_closing_brace_with_properties = false +ij_scss_blank_lines_around_nested_selector = 1 +ij_scss_blank_lines_between_blocks = 1 +ij_scss_block_comment_add_space = false +ij_scss_brace_placement = 0 +ij_scss_enforce_quotes_on_format = false +ij_scss_hex_color_long_format = false +ij_scss_hex_color_lower_case = false +ij_scss_hex_color_short_format = false +ij_scss_hex_color_upper_case = false +ij_scss_keep_blank_lines_in_code = 2 +ij_scss_keep_indents_on_empty_lines = false +ij_scss_keep_single_line_blocks = false +ij_scss_line_comment_add_space = false +ij_scss_line_comment_at_first_column = false +ij_scss_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow +ij_scss_space_after_colon = true +ij_scss_space_before_opening_brace = true +ij_scss_use_double_quotes = true +ij_scss_value_alignment = 0 + +[*.vue] +indent_size = 2 +tab_width = 2 +ij_continuation_indent_size = 4 +ij_vue_indent_children_of_top_level = template +ij_vue_interpolation_new_line_after_start_delimiter = true +ij_vue_interpolation_new_line_before_end_delimiter = true +ij_vue_interpolation_wrap = off +ij_vue_keep_indents_on_empty_lines = false +ij_vue_spaces_within_interpolation_expressions = true + +[.editorconfig] +ij_editorconfig_align_group_field_declarations = false +ij_editorconfig_space_after_colon = true +ij_editorconfig_space_after_comma = true +ij_editorconfig_space_before_colon = false +ij_editorconfig_space_before_comma = false +ij_editorconfig_spaces_around_assignment_operators = true + +[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.rng,*.tld,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul}] +ij_xml_align_attributes = true +ij_xml_align_text = false +ij_xml_attribute_wrap = normal +ij_xml_block_comment_add_space = false +ij_xml_block_comment_at_first_column = true +ij_xml_keep_blank_lines = 2 +ij_xml_keep_indents_on_empty_lines = false +ij_xml_keep_line_breaks = true +ij_xml_keep_line_breaks_in_text = true +ij_xml_keep_whitespaces = false +ij_xml_keep_whitespaces_around_cdata = preserve +ij_xml_keep_whitespaces_inside_cdata = false +ij_xml_line_comment_at_first_column = true +ij_xml_space_after_tag_name = false +ij_xml_space_around_equals_in_attribute = false +ij_xml_space_inside_empty_tag = false +ij_xml_text_wrap = normal + +[{*.ats,*.cts,*.mts,*.ts}] +ij_continuation_indent_size = 4 +ij_typescript_align_imports = false +ij_typescript_align_multiline_array_initializer_expression = false +ij_typescript_align_multiline_binary_operation = false +ij_typescript_align_multiline_chained_methods = false +ij_typescript_align_multiline_extends_list = false +ij_typescript_align_multiline_for = true +ij_typescript_align_multiline_parameters = true +ij_typescript_align_multiline_parameters_in_calls = false +ij_typescript_align_multiline_ternary_operation = false +ij_typescript_align_object_properties = 0 +ij_typescript_align_union_types = false +ij_typescript_align_var_statements = 0 +ij_typescript_array_initializer_new_line_after_left_brace = false +ij_typescript_array_initializer_right_brace_on_new_line = false +ij_typescript_array_initializer_wrap = off +ij_typescript_assignment_wrap = off +ij_typescript_binary_operation_sign_on_next_line = false +ij_typescript_binary_operation_wrap = off +ij_typescript_blacklist_imports = rxjs/Rx,node_modules/**,**/node_modules/**,@angular/material,@angular/material/typings/** +ij_typescript_blank_lines_after_imports = 1 +ij_typescript_blank_lines_around_class = 1 +ij_typescript_blank_lines_around_field = 0 +ij_typescript_blank_lines_around_field_in_interface = 0 +ij_typescript_blank_lines_around_function = 1 +ij_typescript_blank_lines_around_method = 1 +ij_typescript_blank_lines_around_method_in_interface = 1 +ij_typescript_block_brace_style = end_of_line +ij_typescript_block_comment_add_space = false +ij_typescript_block_comment_at_first_column = true +ij_typescript_call_parameters_new_line_after_left_paren = false +ij_typescript_call_parameters_right_paren_on_new_line = false +ij_typescript_call_parameters_wrap = off +ij_typescript_catch_on_new_line = false +ij_typescript_chained_call_dot_on_new_line = true +ij_typescript_class_brace_style = end_of_line +ij_typescript_comma_on_new_line = false +ij_typescript_do_while_brace_force = never +ij_typescript_else_on_new_line = false +ij_typescript_enforce_trailing_comma = keep +ij_typescript_enum_constants_wrap = on_every_item +ij_typescript_extends_keyword_wrap = off +ij_typescript_extends_list_wrap = off +ij_typescript_field_prefix = _ +ij_typescript_file_name_style = relaxed +ij_typescript_finally_on_new_line = false +ij_typescript_for_brace_force = never +ij_typescript_for_statement_new_line_after_left_paren = false +ij_typescript_for_statement_right_paren_on_new_line = false +ij_typescript_for_statement_wrap = off +ij_typescript_force_quote_style = false +ij_typescript_force_semicolon_style = false +ij_typescript_function_expression_brace_style = end_of_line +ij_typescript_if_brace_force = never +ij_typescript_import_merge_members = global +ij_typescript_import_prefer_absolute_path = global +ij_typescript_import_sort_members = true +ij_typescript_import_sort_module_name = false +ij_typescript_import_use_node_resolution = true +ij_typescript_imports_wrap = on_every_item +ij_typescript_indent_case_from_switch = true +ij_typescript_indent_chained_calls = true +ij_typescript_indent_package_children = 0 +ij_typescript_jsdoc_include_types = false +ij_typescript_jsx_attribute_value = braces +ij_typescript_keep_blank_lines_in_code = 2 +ij_typescript_keep_first_column_comment = true +ij_typescript_keep_indents_on_empty_lines = false +ij_typescript_keep_line_breaks = true +ij_typescript_keep_simple_blocks_in_one_line = false +ij_typescript_keep_simple_methods_in_one_line = false +ij_typescript_line_comment_add_space = true +ij_typescript_line_comment_at_first_column = false +ij_typescript_method_brace_style = end_of_line +ij_typescript_method_call_chain_wrap = off +ij_typescript_method_parameters_new_line_after_left_paren = false +ij_typescript_method_parameters_right_paren_on_new_line = false +ij_typescript_method_parameters_wrap = off +ij_typescript_object_literal_wrap = on_every_item +ij_typescript_object_types_wrap = on_every_item +ij_typescript_parentheses_expression_new_line_after_left_paren = false +ij_typescript_parentheses_expression_right_paren_on_new_line = false +ij_typescript_place_assignment_sign_on_next_line = false +ij_typescript_prefer_as_type_cast = false +ij_typescript_prefer_explicit_types_function_expression_returns = false +ij_typescript_prefer_explicit_types_function_returns = false +ij_typescript_prefer_explicit_types_vars_fields = false +ij_typescript_prefer_parameters_wrap = false +ij_typescript_property_prefix = +ij_typescript_reformat_c_style_comments = false +ij_typescript_space_after_colon = true +ij_typescript_space_after_comma = true +ij_typescript_space_after_dots_in_rest_parameter = false +ij_typescript_space_after_generator_mult = true +ij_typescript_space_after_property_colon = true +ij_typescript_space_after_quest = true +ij_typescript_space_after_type_colon = true +ij_typescript_space_after_unary_not = false +ij_typescript_space_before_async_arrow_lparen = true +ij_typescript_space_before_catch_keyword = true +ij_typescript_space_before_catch_left_brace = true +ij_typescript_space_before_catch_parentheses = true +ij_typescript_space_before_class_lbrace = true +ij_typescript_space_before_class_left_brace = true +ij_typescript_space_before_colon = true +ij_typescript_space_before_comma = false +ij_typescript_space_before_do_left_brace = true +ij_typescript_space_before_else_keyword = true +ij_typescript_space_before_else_left_brace = true +ij_typescript_space_before_finally_keyword = true +ij_typescript_space_before_finally_left_brace = true +ij_typescript_space_before_for_left_brace = true +ij_typescript_space_before_for_parentheses = true +ij_typescript_space_before_for_semicolon = false +ij_typescript_space_before_function_left_parenth = true +ij_typescript_space_before_generator_mult = false +ij_typescript_space_before_if_left_brace = true +ij_typescript_space_before_if_parentheses = true +ij_typescript_space_before_method_call_parentheses = false +ij_typescript_space_before_method_left_brace = true +ij_typescript_space_before_method_parentheses = false +ij_typescript_space_before_property_colon = false +ij_typescript_space_before_quest = true +ij_typescript_space_before_switch_left_brace = true +ij_typescript_space_before_switch_parentheses = true +ij_typescript_space_before_try_left_brace = true +ij_typescript_space_before_type_colon = false +ij_typescript_space_before_unary_not = false +ij_typescript_space_before_while_keyword = true +ij_typescript_space_before_while_left_brace = true +ij_typescript_space_before_while_parentheses = true +ij_typescript_spaces_around_additive_operators = true +ij_typescript_spaces_around_arrow_function_operator = true +ij_typescript_spaces_around_assignment_operators = true +ij_typescript_spaces_around_bitwise_operators = true +ij_typescript_spaces_around_equality_operators = true +ij_typescript_spaces_around_logical_operators = true +ij_typescript_spaces_around_multiplicative_operators = true +ij_typescript_spaces_around_relational_operators = true +ij_typescript_spaces_around_shift_operators = true +ij_typescript_spaces_around_unary_operator = false +ij_typescript_spaces_within_array_initializer_brackets = false +ij_typescript_spaces_within_brackets = false +ij_typescript_spaces_within_catch_parentheses = false +ij_typescript_spaces_within_for_parentheses = false +ij_typescript_spaces_within_if_parentheses = false +ij_typescript_spaces_within_imports = false +ij_typescript_spaces_within_interpolation_expressions = false +ij_typescript_spaces_within_method_call_parentheses = false +ij_typescript_spaces_within_method_parentheses = false +ij_typescript_spaces_within_object_literal_braces = false +ij_typescript_spaces_within_object_type_braces = true +ij_typescript_spaces_within_parentheses = false +ij_typescript_spaces_within_switch_parentheses = false +ij_typescript_spaces_within_type_assertion = false +ij_typescript_spaces_within_union_types = true +ij_typescript_spaces_within_while_parentheses = false +ij_typescript_special_else_if_treatment = true +ij_typescript_ternary_operation_signs_on_next_line = false +ij_typescript_ternary_operation_wrap = off +ij_typescript_union_types_wrap = on_every_item +ij_typescript_use_chained_calls_group_indents = false +ij_typescript_use_double_quotes = true +ij_typescript_use_explicit_js_extension = auto +ij_typescript_use_path_mapping = always +ij_typescript_use_public_modifier = false +ij_typescript_use_semicolon_after_statement = true +ij_typescript_var_declaration_wrap = normal +ij_typescript_while_brace_force = never +ij_typescript_while_on_new_line = false +ij_typescript_wrap_comments = false + +[{*.bash,*.sh,*.zsh}] +indent_size = 2 +tab_width = 2 +ij_shell_binary_ops_start_line = false +ij_shell_keep_column_alignment_padding = false +ij_shell_minify_program = false +ij_shell_redirect_followed_by_space = false +ij_shell_switch_cases_indented = false +ij_shell_use_unix_line_separator = true + +[{*.cjs,*.js}] +ij_continuation_indent_size = 4 +ij_javascript_align_imports = false +ij_javascript_align_multiline_array_initializer_expression = false +ij_javascript_align_multiline_binary_operation = false +ij_javascript_align_multiline_chained_methods = false +ij_javascript_align_multiline_extends_list = false +ij_javascript_align_multiline_for = true +ij_javascript_align_multiline_parameters = true +ij_javascript_align_multiline_parameters_in_calls = false +ij_javascript_align_multiline_ternary_operation = false +ij_javascript_align_object_properties = 0 +ij_javascript_align_union_types = false +ij_javascript_align_var_statements = 0 +ij_javascript_array_initializer_new_line_after_left_brace = false +ij_javascript_array_initializer_right_brace_on_new_line = false +ij_javascript_array_initializer_wrap = off +ij_javascript_assignment_wrap = off +ij_javascript_binary_operation_sign_on_next_line = false +ij_javascript_binary_operation_wrap = off +ij_javascript_blacklist_imports = rxjs/Rx,node_modules/**,**/node_modules/**,@angular/material,@angular/material/typings/** +ij_javascript_blank_lines_after_imports = 1 +ij_javascript_blank_lines_around_class = 1 +ij_javascript_blank_lines_around_field = 0 +ij_javascript_blank_lines_around_function = 1 +ij_javascript_blank_lines_around_method = 1 +ij_javascript_block_brace_style = end_of_line +ij_javascript_block_comment_add_space = false +ij_javascript_block_comment_at_first_column = true +ij_javascript_call_parameters_new_line_after_left_paren = false +ij_javascript_call_parameters_right_paren_on_new_line = false +ij_javascript_call_parameters_wrap = off +ij_javascript_catch_on_new_line = false +ij_javascript_chained_call_dot_on_new_line = true +ij_javascript_class_brace_style = end_of_line +ij_javascript_comma_on_new_line = false +ij_javascript_do_while_brace_force = never +ij_javascript_else_on_new_line = false +ij_javascript_enforce_trailing_comma = keep +ij_javascript_extends_keyword_wrap = off +ij_javascript_extends_list_wrap = off +ij_javascript_field_prefix = _ +ij_javascript_file_name_style = relaxed +ij_javascript_finally_on_new_line = false +ij_javascript_for_brace_force = never +ij_javascript_for_statement_new_line_after_left_paren = false +ij_javascript_for_statement_right_paren_on_new_line = false +ij_javascript_for_statement_wrap = off +ij_javascript_force_quote_style = false +ij_javascript_force_semicolon_style = false +ij_javascript_function_expression_brace_style = end_of_line +ij_javascript_if_brace_force = never +ij_javascript_import_merge_members = global +ij_javascript_import_prefer_absolute_path = global +ij_javascript_import_sort_members = true +ij_javascript_import_sort_module_name = false +ij_javascript_import_use_node_resolution = true +ij_javascript_imports_wrap = on_every_item +ij_javascript_indent_case_from_switch = true +ij_javascript_indent_chained_calls = true +ij_javascript_indent_package_children = 0 +ij_javascript_jsx_attribute_value = braces +ij_javascript_keep_blank_lines_in_code = 2 +ij_javascript_keep_first_column_comment = true +ij_javascript_keep_indents_on_empty_lines = false +ij_javascript_keep_line_breaks = true +ij_javascript_keep_simple_blocks_in_one_line = false +ij_javascript_keep_simple_methods_in_one_line = false +ij_javascript_line_comment_add_space = true +ij_javascript_line_comment_at_first_column = false +ij_javascript_method_brace_style = end_of_line +ij_javascript_method_call_chain_wrap = off +ij_javascript_method_parameters_new_line_after_left_paren = false +ij_javascript_method_parameters_right_paren_on_new_line = false +ij_javascript_method_parameters_wrap = off +ij_javascript_object_literal_wrap = on_every_item +ij_javascript_object_types_wrap = on_every_item +ij_javascript_parentheses_expression_new_line_after_left_paren = false +ij_javascript_parentheses_expression_right_paren_on_new_line = false +ij_javascript_place_assignment_sign_on_next_line = false +ij_javascript_prefer_as_type_cast = false +ij_javascript_prefer_explicit_types_function_expression_returns = false +ij_javascript_prefer_explicit_types_function_returns = false +ij_javascript_prefer_explicit_types_vars_fields = false +ij_javascript_prefer_parameters_wrap = false +ij_javascript_property_prefix = +ij_javascript_reformat_c_style_comments = false +ij_javascript_space_after_colon = true +ij_javascript_space_after_comma = true +ij_javascript_space_after_dots_in_rest_parameter = false +ij_javascript_space_after_generator_mult = true +ij_javascript_space_after_property_colon = true +ij_javascript_space_after_quest = true +ij_javascript_space_after_type_colon = true +ij_javascript_space_after_unary_not = false +ij_javascript_space_before_async_arrow_lparen = true +ij_javascript_space_before_catch_keyword = true +ij_javascript_space_before_catch_left_brace = true +ij_javascript_space_before_catch_parentheses = true +ij_javascript_space_before_class_lbrace = true +ij_javascript_space_before_class_left_brace = true +ij_javascript_space_before_colon = true +ij_javascript_space_before_comma = false +ij_javascript_space_before_do_left_brace = true +ij_javascript_space_before_else_keyword = true +ij_javascript_space_before_else_left_brace = true +ij_javascript_space_before_finally_keyword = true +ij_javascript_space_before_finally_left_brace = true +ij_javascript_space_before_for_left_brace = true +ij_javascript_space_before_for_parentheses = true +ij_javascript_space_before_for_semicolon = false +ij_javascript_space_before_function_left_parenth = true +ij_javascript_space_before_generator_mult = false +ij_javascript_space_before_if_left_brace = true +ij_javascript_space_before_if_parentheses = true +ij_javascript_space_before_method_call_parentheses = false +ij_javascript_space_before_method_left_brace = true +ij_javascript_space_before_method_parentheses = false +ij_javascript_space_before_property_colon = false +ij_javascript_space_before_quest = true +ij_javascript_space_before_switch_left_brace = true +ij_javascript_space_before_switch_parentheses = true +ij_javascript_space_before_try_left_brace = true +ij_javascript_space_before_type_colon = false +ij_javascript_space_before_unary_not = false +ij_javascript_space_before_while_keyword = true +ij_javascript_space_before_while_left_brace = true +ij_javascript_space_before_while_parentheses = true +ij_javascript_spaces_around_additive_operators = true +ij_javascript_spaces_around_arrow_function_operator = true +ij_javascript_spaces_around_assignment_operators = true +ij_javascript_spaces_around_bitwise_operators = true +ij_javascript_spaces_around_equality_operators = true +ij_javascript_spaces_around_logical_operators = true +ij_javascript_spaces_around_multiplicative_operators = true +ij_javascript_spaces_around_relational_operators = true +ij_javascript_spaces_around_shift_operators = true +ij_javascript_spaces_around_unary_operator = false +ij_javascript_spaces_within_array_initializer_brackets = false +ij_javascript_spaces_within_brackets = false +ij_javascript_spaces_within_catch_parentheses = false +ij_javascript_spaces_within_for_parentheses = false +ij_javascript_spaces_within_if_parentheses = false +ij_javascript_spaces_within_imports = false +ij_javascript_spaces_within_interpolation_expressions = false +ij_javascript_spaces_within_method_call_parentheses = false +ij_javascript_spaces_within_method_parentheses = false +ij_javascript_spaces_within_object_literal_braces = false +ij_javascript_spaces_within_object_type_braces = true +ij_javascript_spaces_within_parentheses = false +ij_javascript_spaces_within_switch_parentheses = false +ij_javascript_spaces_within_type_assertion = false +ij_javascript_spaces_within_union_types = true +ij_javascript_spaces_within_while_parentheses = false +ij_javascript_special_else_if_treatment = true +ij_javascript_ternary_operation_signs_on_next_line = false +ij_javascript_ternary_operation_wrap = off +ij_javascript_union_types_wrap = on_every_item +ij_javascript_use_chained_calls_group_indents = false +ij_javascript_use_double_quotes = true +ij_javascript_use_explicit_js_extension = auto +ij_javascript_use_path_mapping = always +ij_javascript_use_public_modifier = false +ij_javascript_use_semicolon_after_statement = true +ij_javascript_var_declaration_wrap = normal +ij_javascript_while_brace_force = never +ij_javascript_while_on_new_line = false +ij_javascript_wrap_comments = false + +[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,jest.config}] +indent_size = 2 +ij_json_array_wrapping = split_into_lines +ij_json_keep_blank_lines_in_code = 0 +ij_json_keep_indents_on_empty_lines = false +ij_json_keep_line_breaks = true +ij_json_keep_trailing_comma = false +ij_json_object_wrapping = split_into_lines +ij_json_property_alignment = do_not_align +ij_json_space_after_colon = true +ij_json_space_after_comma = true +ij_json_space_before_colon = false +ij_json_space_before_comma = false +ij_json_spaces_within_braces = false +ij_json_spaces_within_brackets = false +ij_json_wrap_long_lines = false + +[{*.htm,*.html,*.ng,*.sht,*.shtm,*.shtml}] +ij_html_add_new_line_before_tags = body,div,p,form,h1,h2,h3 +ij_html_align_attributes = true +ij_html_align_text = false +ij_html_attribute_wrap = normal +ij_html_block_comment_add_space = false +ij_html_block_comment_at_first_column = true +ij_html_do_not_align_children_of_min_lines = 0 +ij_html_do_not_break_if_inline_tags = title,h1,h2,h3,h4,h5,h6,p +ij_html_do_not_indent_children_of_tags = html,body,thead,tbody,tfoot +ij_html_enforce_quotes = false +ij_html_inline_tags = a,abbr,acronym,b,basefont,bdo,big,br,cite,cite,code,dfn,em,font,i,img,input,kbd,label,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var +ij_html_keep_blank_lines = 2 +ij_html_keep_indents_on_empty_lines = false +ij_html_keep_line_breaks = true +ij_html_keep_line_breaks_in_text = true +ij_html_keep_whitespaces = false +ij_html_keep_whitespaces_inside = span,pre,textarea +ij_html_line_comment_at_first_column = true +ij_html_new_line_after_last_attribute = never +ij_html_new_line_before_first_attribute = never +ij_html_quote_style = double +ij_html_remove_new_line_before_tags = br +ij_html_space_after_tag_name = false +ij_html_space_around_equality_in_attribute = false +ij_html_space_inside_empty_tag = false +ij_html_text_wrap = normal + +[{*.http,*.rest}] +indent_size = 0 +ij_continuation_indent_size = 4 +ij_http-request_call_parameters_wrap = normal +ij_http-request_method_parameters_wrap = split_into_lines +ij_http-request_space_before_comma = true +ij_http-request_spaces_around_assignment_operators = true + +[{*.markdown,*.md}] +ij_markdown_force_one_space_after_blockquote_symbol = true +ij_markdown_force_one_space_after_header_symbol = true +ij_markdown_force_one_space_after_list_bullet = true +ij_markdown_force_one_space_between_words = true +ij_markdown_format_tables = true +ij_markdown_insert_quote_arrows_on_wrap = true +ij_markdown_keep_indents_on_empty_lines = false +ij_markdown_keep_line_breaks_inside_text_blocks = true +ij_markdown_max_lines_around_block_elements = 1 +ij_markdown_max_lines_around_header = 1 +ij_markdown_max_lines_between_paragraphs = 1 +ij_markdown_min_lines_around_block_elements = 1 +ij_markdown_min_lines_around_header = 1 +ij_markdown_min_lines_between_paragraphs = 1 +ij_markdown_wrap_text_if_long = true +ij_markdown_wrap_text_inside_blockquotes = true + +[{*.py,*.pyw}] +ij_wrap_on_typing = true +ij_python_align_collections_and_comprehensions = true +ij_python_align_multiline_imports = true +ij_python_align_multiline_parameters = true +ij_python_align_multiline_parameters_in_calls = true +ij_python_blank_line_at_file_end = true +ij_python_blank_lines_after_imports = 1 +ij_python_blank_lines_after_local_imports = 0 +ij_python_blank_lines_around_class = 1 +ij_python_blank_lines_around_method = 1 +ij_python_blank_lines_around_top_level_classes_functions = 2 +ij_python_blank_lines_before_first_method = 0 +ij_python_call_parameters_new_line_after_left_paren = false +ij_python_call_parameters_right_paren_on_new_line = false +ij_python_call_parameters_wrap = normal +ij_python_dict_alignment = 0 +ij_python_dict_new_line_after_left_brace = false +ij_python_dict_new_line_before_right_brace = false +ij_python_dict_wrapping = 1 +ij_python_from_import_new_line_after_left_parenthesis = false +ij_python_from_import_new_line_before_right_parenthesis = false +ij_python_from_import_parentheses_force_if_multiline = false +ij_python_from_import_trailing_comma_if_multiline = false +ij_python_from_import_wrapping = 1 +ij_python_hang_closing_brackets = false +ij_python_keep_blank_lines_in_code = 1 +ij_python_keep_blank_lines_in_declarations = 1 +ij_python_keep_indents_on_empty_lines = false +ij_python_keep_line_breaks = true +ij_python_method_parameters_new_line_after_left_paren = false +ij_python_method_parameters_right_paren_on_new_line = false +ij_python_method_parameters_wrap = normal +ij_python_new_line_after_colon = false +ij_python_new_line_after_colon_multi_clause = true +ij_python_optimize_imports_always_split_from_imports = false +ij_python_optimize_imports_case_insensitive_order = false +ij_python_optimize_imports_join_from_imports_with_same_source = false +ij_python_optimize_imports_sort_by_type_first = true +ij_python_optimize_imports_sort_imports = true +ij_python_optimize_imports_sort_names_in_from_imports = false +ij_python_space_after_comma = true +ij_python_space_after_number_sign = true +ij_python_space_after_py_colon = true +ij_python_space_before_backslash = true +ij_python_space_before_comma = false +ij_python_space_before_for_semicolon = false +ij_python_space_before_lbracket = false +ij_python_space_before_method_call_parentheses = false +ij_python_space_before_method_parentheses = false +ij_python_space_before_number_sign = true +ij_python_space_before_py_colon = false +ij_python_space_within_empty_method_call_parentheses = false +ij_python_space_within_empty_method_parentheses = false +ij_python_spaces_around_additive_operators = true +ij_python_spaces_around_assignment_operators = true +ij_python_spaces_around_bitwise_operators = true +ij_python_spaces_around_eq_in_keyword_argument = false +ij_python_spaces_around_eq_in_named_parameter = false +ij_python_spaces_around_equality_operators = true +ij_python_spaces_around_multiplicative_operators = true +ij_python_spaces_around_power_operator = true +ij_python_spaces_around_relational_operators = true +ij_python_spaces_around_shift_operators = true +ij_python_spaces_within_braces = false +ij_python_spaces_within_brackets = false +ij_python_spaces_within_method_call_parentheses = false +ij_python_spaces_within_method_parentheses = false +ij_python_use_continuation_indent_for_arguments = false +ij_python_use_continuation_indent_for_collection_and_comprehensions = false +ij_python_use_continuation_indent_for_parameters = true +ij_python_wrap_long_lines = false + +[{*.qml,*.qmltypes}] +ij_continuation_indent_size = 4 +ij_qmllang_align_imports = false +ij_qmllang_align_multiline_array_initializer_expression = false +ij_qmllang_align_multiline_binary_operation = false +ij_qmllang_align_multiline_chained_methods = false +ij_qmllang_align_multiline_extends_list = false +ij_qmllang_align_multiline_for = true +ij_qmllang_align_multiline_parameters = true +ij_qmllang_align_multiline_parameters_in_calls = false +ij_qmllang_align_multiline_ternary_operation = false +ij_qmllang_align_object_properties = 0 +ij_qmllang_align_union_types = false +ij_qmllang_align_var_statements = 0 +ij_qmllang_array_initializer_new_line_after_left_brace = false +ij_qmllang_array_initializer_right_brace_on_new_line = false +ij_qmllang_array_initializer_wrap = off +ij_qmllang_assignment_wrap = off +ij_qmllang_binary_operation_sign_on_next_line = false +ij_qmllang_binary_operation_wrap = off +ij_qmllang_blacklist_imports = rxjs/Rx,node_modules/**,**/node_modules/**,@angular/material,@angular/material/typings/** +ij_qmllang_blank_lines_after_imports = 1 +ij_qmllang_blank_lines_around_class = 1 +ij_qmllang_blank_lines_around_field = 0 +ij_qmllang_blank_lines_around_function = 1 +ij_qmllang_blank_lines_around_method = 1 +ij_qmllang_block_brace_style = end_of_line +ij_qmllang_block_comment_add_space = false +ij_qmllang_block_comment_at_first_column = true +ij_qmllang_call_parameters_new_line_after_left_paren = false +ij_qmllang_call_parameters_right_paren_on_new_line = false +ij_qmllang_call_parameters_wrap = off +ij_qmllang_catch_on_new_line = false +ij_qmllang_chained_call_dot_on_new_line = true +ij_qmllang_class_brace_style = end_of_line +ij_qmllang_comma_on_new_line = false +ij_qmllang_do_while_brace_force = never +ij_qmllang_else_on_new_line = false +ij_qmllang_enforce_trailing_comma = keep +ij_qmllang_extends_keyword_wrap = off +ij_qmllang_extends_list_wrap = off +ij_qmllang_field_prefix = _ +ij_qmllang_file_name_style = relaxed +ij_qmllang_finally_on_new_line = false +ij_qmllang_for_brace_force = never +ij_qmllang_for_statement_new_line_after_left_paren = false +ij_qmllang_for_statement_right_paren_on_new_line = false +ij_qmllang_for_statement_wrap = off +ij_qmllang_force_quote_style = false +ij_qmllang_force_semicolon_style = false +ij_qmllang_function_expression_brace_style = end_of_line +ij_qmllang_if_brace_force = never +ij_qmllang_import_merge_members = global +ij_qmllang_import_prefer_absolute_path = global +ij_qmllang_import_sort_members = true +ij_qmllang_import_sort_module_name = false +ij_qmllang_import_use_node_resolution = true +ij_qmllang_imports_wrap = on_every_item +ij_qmllang_indent_case_from_switch = true +ij_qmllang_indent_chained_calls = true +ij_qmllang_indent_package_children = 0 +ij_qmllang_jsx_attribute_value = braces +ij_qmllang_keep_blank_lines_in_code = 2 +ij_qmllang_keep_first_column_comment = true +ij_qmllang_keep_indents_on_empty_lines = false +ij_qmllang_keep_line_breaks = true +ij_qmllang_keep_simple_blocks_in_one_line = false +ij_qmllang_keep_simple_methods_in_one_line = false +ij_qmllang_line_comment_add_space = true +ij_qmllang_line_comment_at_first_column = false +ij_qmllang_method_brace_style = end_of_line +ij_qmllang_method_call_chain_wrap = off +ij_qmllang_method_parameters_new_line_after_left_paren = false +ij_qmllang_method_parameters_right_paren_on_new_line = false +ij_qmllang_method_parameters_wrap = off +ij_qmllang_object_literal_wrap = on_every_item +ij_qmllang_object_types_wrap = on_every_item +ij_qmllang_parentheses_expression_new_line_after_left_paren = false +ij_qmllang_parentheses_expression_right_paren_on_new_line = false +ij_qmllang_place_assignment_sign_on_next_line = false +ij_qmllang_prefer_as_type_cast = false +ij_qmllang_prefer_explicit_types_function_expression_returns = false +ij_qmllang_prefer_explicit_types_function_returns = false +ij_qmllang_prefer_explicit_types_vars_fields = false +ij_qmllang_prefer_parameters_wrap = false +ij_qmllang_property_prefix = +ij_qmllang_reformat_c_style_comments = false +ij_qmllang_space_after_colon = true +ij_qmllang_space_after_comma = true +ij_qmllang_space_after_dots_in_rest_parameter = false +ij_qmllang_space_after_generator_mult = true +ij_qmllang_space_after_property_colon = true +ij_qmllang_space_after_quest = true +ij_qmllang_space_after_type_colon = true +ij_qmllang_space_after_unary_not = false +ij_qmllang_space_before_async_arrow_lparen = true +ij_qmllang_space_before_catch_keyword = true +ij_qmllang_space_before_catch_left_brace = true +ij_qmllang_space_before_catch_parentheses = true +ij_qmllang_space_before_class_lbrace = true +ij_qmllang_space_before_class_left_brace = true +ij_qmllang_space_before_colon = true +ij_qmllang_space_before_comma = false +ij_qmllang_space_before_do_left_brace = true +ij_qmllang_space_before_else_keyword = true +ij_qmllang_space_before_else_left_brace = true +ij_qmllang_space_before_finally_keyword = true +ij_qmllang_space_before_finally_left_brace = true +ij_qmllang_space_before_for_left_brace = true +ij_qmllang_space_before_for_parentheses = true +ij_qmllang_space_before_for_semicolon = false +ij_qmllang_space_before_function_left_parenth = true +ij_qmllang_space_before_generator_mult = false +ij_qmllang_space_before_if_left_brace = true +ij_qmllang_space_before_if_parentheses = true +ij_qmllang_space_before_method_call_parentheses = false +ij_qmllang_space_before_method_left_brace = true +ij_qmllang_space_before_method_parentheses = false +ij_qmllang_space_before_property_colon = false +ij_qmllang_space_before_quest = true +ij_qmllang_space_before_switch_left_brace = true +ij_qmllang_space_before_switch_parentheses = true +ij_qmllang_space_before_try_left_brace = true +ij_qmllang_space_before_type_colon = false +ij_qmllang_space_before_unary_not = false +ij_qmllang_space_before_while_keyword = true +ij_qmllang_space_before_while_left_brace = true +ij_qmllang_space_before_while_parentheses = true +ij_qmllang_spaces_around_additive_operators = true +ij_qmllang_spaces_around_arrow_function_operator = true +ij_qmllang_spaces_around_assignment_operators = true +ij_qmllang_spaces_around_bitwise_operators = true +ij_qmllang_spaces_around_equality_operators = true +ij_qmllang_spaces_around_logical_operators = true +ij_qmllang_spaces_around_multiplicative_operators = true +ij_qmllang_spaces_around_relational_operators = true +ij_qmllang_spaces_around_shift_operators = true +ij_qmllang_spaces_around_unary_operator = false +ij_qmllang_spaces_within_array_initializer_brackets = false +ij_qmllang_spaces_within_brackets = false +ij_qmllang_spaces_within_catch_parentheses = false +ij_qmllang_spaces_within_for_parentheses = false +ij_qmllang_spaces_within_if_parentheses = false +ij_qmllang_spaces_within_imports = false +ij_qmllang_spaces_within_interpolation_expressions = false +ij_qmllang_spaces_within_method_call_parentheses = false +ij_qmllang_spaces_within_method_parentheses = false +ij_qmllang_spaces_within_object_literal_braces = false +ij_qmllang_spaces_within_object_type_braces = true +ij_qmllang_spaces_within_parentheses = false +ij_qmllang_spaces_within_switch_parentheses = false +ij_qmllang_spaces_within_type_assertion = false +ij_qmllang_spaces_within_union_types = true +ij_qmllang_spaces_within_while_parentheses = false +ij_qmllang_special_else_if_treatment = true +ij_qmllang_ternary_operation_signs_on_next_line = false +ij_qmllang_ternary_operation_wrap = off +ij_qmllang_union_types_wrap = on_every_item +ij_qmllang_use_chained_calls_group_indents = false +ij_qmllang_use_double_quotes = true +ij_qmllang_use_explicit_js_extension = auto +ij_qmllang_use_path_mapping = always +ij_qmllang_use_public_modifier = false +ij_qmllang_use_semicolon_after_statement = true +ij_qmllang_var_declaration_wrap = normal +ij_qmllang_while_brace_force = never +ij_qmllang_while_on_new_line = false +ij_qmllang_wrap_comments = false + +[{*.toml,Cargo.lock,Cargo.toml.orig,Gopkg.lock,Pipfile,poetry.lock}] +ij_toml_keep_indents_on_empty_lines = false + +[{*.yaml,*.yml}] +indent_size = 2 +ij_yaml_align_values_properties = do_not_align +ij_yaml_autoinsert_sequence_marker = true +ij_yaml_block_mapping_on_new_line = false +ij_yaml_indent_sequence_value = true +ij_yaml_keep_indents_on_empty_lines = false +ij_yaml_keep_line_breaks = true +ij_yaml_sequence_on_new_line = false +ij_yaml_space_before_colon = false +ij_yaml_spaces_within_braces = true +ij_yaml_spaces_within_brackets = true diff --git a/.github/PyClasher.png b/.github/PyClasher.png new file mode 100755 index 0000000..f3340ec Binary files /dev/null and b/.github/PyClasher.png differ diff --git a/.github/workflows/pre-pullrequest.yml b/.github/workflows/pull_request.yml similarity index 100% rename from .github/workflows/pre-pullrequest.yml rename to .github/workflows/pull_request.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/push.yml similarity index 100% rename from .github/workflows/pre-commit.yml rename to .github/workflows/push.yml diff --git a/README.md b/README.md index 1504c35..8616f66 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ [![Discord][discord_shield]][discord_url] ![Last commit][last_commit_shield] -# PyClasher +![PyClasher](.github/PyClasher.png) ---- +# PyClasher -pyclasher is the name of the asynchronous ClashOfClans API. It is +PyClasher is the name of the asynchronous ClashOfClans API. It is an object-oriented wrapper client that provides easy access to the requested data. @@ -18,9 +18,16 @@ a python package and will be available for everyone. If you have any questions, feel free to join my discord server to ask you question. +## Installation + +It is possible to install the package from GitHib releases. You can use the following command to add PyClasher to your library: +```bash +pip install git+https://github.com/201st-Luka/PyClasher.git@v0.0.1-alpha3 +``` + --- -### Features +## Features - Asynchronous and parallel requesting - Possibility to use multiple tokens and to login via email address and password of the ClashOfClans developer portal @@ -31,11 +38,34 @@ used tokens --- -### Future +## Contributing + +Feel free to contribute to the repository. + +You can fork the repository and commit your changes in a pull request. Please consider to check out the +[Discord server][discord_url] if so. + +--- + +## Future I'm planning to keep the API wrapper up to date and improve it as good as I can. +### Planned features + +- more bulk requests +- pytests for every request +- pytests for the models +- possibility to download files (images, etc) from `api-assets.clashofclans.com` + +### Planned utils + +- documentation +- real example ([HeadhunterBot][headhunterbot_url] is in development) + +--- + If you find a bug, an error or want custom functionality, please tell me via Discord or open an issue or start a discussion on the GitHub-repository. @@ -45,4 +75,5 @@ GitHub-repository. [discord_shield]: https://img.shields.io/badge/Discord-blue?logo=discord&logoColor=white [discord_url]: https://discord.gg/j2PAF9Wru8 -[last_commit_shield]: https://img.shields.io/github/last-commit/201st-Luka/HeadhunterBot \ No newline at end of file +[last_commit_shield]: https://img.shields.io/github/last-commit/201st-Luka/HeadhunterBot +[headhunterbot_url]: https://github.com/201st-Luka/HeadhunterBot diff --git a/pyclasher/bulk_requests/BulkPlayer.py b/pyclasher/bulk_requests/BulkPlayer.py index 5ae8556..11b08a8 100644 --- a/pyclasher/bulk_requests/BulkPlayer.py +++ b/pyclasher/bulk_requests/BulkPlayer.py @@ -20,7 +20,8 @@ def tags(self): @classmethod async def _async_from_clan(cls, clan): - members = await ClanMembersRequest(clan.tag).request() if isinstance(clan, BaseClan) else await ClanMembersRequest(clan).request() + members = await (ClanMembersRequest(clan.tag).request() if isinstance(clan, BaseClan) else + await ClanMembersRequest(clan).request()) return cls.from_member_list(members) @classmethod diff --git a/pyclasher/bulk_requests/BulkPlayer.pyi b/pyclasher/bulk_requests/BulkPlayer.pyi index 8db8c42..7cbe4b0 100644 --- a/pyclasher/bulk_requests/BulkPlayer.pyi +++ b/pyclasher/bulk_requests/BulkPlayer.pyi @@ -1,4 +1,4 @@ -from typing import Iterable, Coroutine, Any +from typing import Iterable, Coroutine, Any, Iterator from .BulkRequestModel import BulkRequestModel from ..models import BaseClan, ClanMemberList, ClanWarMemberList, ClanWarLeagueClanMemberList, ClanCapitalRaidSeasonMemberList @@ -75,6 +75,9 @@ class PlayerBulkRequest(BulkRequestModel): """ ... + def __iter__(self) -> Iterator[PlayerRequest]: + ... + def __next__(self) -> PlayerRequest: """ returns the next player of the bulk request if an iterator is used diff --git a/pyclasher/bulk_requests/BulkRequestModel.py b/pyclasher/bulk_requests/BulkRequestModel.py index 060d327..0425ef2 100644 --- a/pyclasher/bulk_requests/BulkRequestModel.py +++ b/pyclasher/bulk_requests/BulkRequestModel.py @@ -47,4 +47,5 @@ def __str__(self): return f"{self.__class__.__name__}({self._main_attribute})" def __repr__(self): - return f"{self.__class__.__name__}({', '.join(('='.join((key, str(value))) for key, value in self.__get_properties().items()))})" + return (f"{self.__class__.__name__}" + f"({', '.join(('='.join((key, str(value))) for key, value in self.__get_properties().items()))})") diff --git a/pyclasher/bulk_requests/BulkRequestModel.pyi b/pyclasher/bulk_requests/BulkRequestModel.pyi index a955a6b..1d8996a 100644 --- a/pyclasher/bulk_requests/BulkRequestModel.pyi +++ b/pyclasher/bulk_requests/BulkRequestModel.pyi @@ -1,4 +1,4 @@ -from typing import Any, Coroutine +from typing import Any, Coroutine, Iterator class BulkRequestModel: @@ -80,7 +80,7 @@ class BulkRequestModel: def __getitem__(self, item: int) -> _request_model: ... - def __iter__(self): + def __iter__(self) -> Iterator[_request_model]: self._iter = iter(self._requests) ... diff --git a/pyclasher/models/BaseModels.pyi b/pyclasher/models/BaseModels.pyi index 6912d55..df3a0b9 100644 --- a/pyclasher/models/BaseModels.pyi +++ b/pyclasher/models/BaseModels.pyi @@ -2,7 +2,7 @@ base models for this API wrapper client """ -from typing import Any +from typing import Any, Iterator from ..Exceptions import MISSING, Missing @@ -126,8 +126,9 @@ class IterBaseModel: def __getitem__(self, item: int) -> _iter_rtype: ... - def __iter__(self) -> IterBaseModel: + def __iter__(self) -> Iterator[_iter_rtype]: self._iter = iter(self._data) + ... def __next__(self): ... diff --git a/pyclasher/models/Clan.pyi b/pyclasher/models/Clan.pyi index 2499594..db5b2de 100644 --- a/pyclasher/models/Clan.pyi +++ b/pyclasher/models/Clan.pyi @@ -1,6 +1,7 @@ """ clan models and sub models """ +from typing import Iterator from .BaseModels import BaseModel, IterBaseModel, BaseClan from .ClanMemberList import ClanMemberList @@ -60,6 +61,9 @@ class ClanDistrictDataList(IterBaseModel): def __getitem__(self, item: int) -> ClanDistrictData: ... + def __iter__(self) -> Iterator[ClanDistrictData]: + ... + def __next__(self) -> ClanDistrictData: ... diff --git a/pyclasher/models/ClanBuilderBaseRankingList.pyi b/pyclasher/models/ClanBuilderBaseRankingList.pyi index d65cab1..7378625 100644 --- a/pyclasher/models/ClanBuilderBaseRankingList.pyi +++ b/pyclasher/models/ClanBuilderBaseRankingList.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import BaseModel, IterBaseModel @@ -37,5 +39,8 @@ class ClanBuilderBaseRankingList(IterBaseModel): def __getitem__(self, item: int | str) -> ClanBuilderBaseRanking: ... + def __iter__(self) -> Iterator[ClanBuilderBaseRanking]: + ... + def __next__(self) -> ClanBuilderBaseRanking: ... diff --git a/pyclasher/models/ClanCapitalRaidSeasons.pyi b/pyclasher/models/ClanCapitalRaidSeasons.pyi index 983b2d3..c56b9e7 100644 --- a/pyclasher/models/ClanCapitalRaidSeasons.pyi +++ b/pyclasher/models/ClanCapitalRaidSeasons.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import BaseModel, IterBaseModel, BaseClanMember, BaseClan, Time @@ -90,6 +92,9 @@ class ClanCapitalRaidSeasonAttackList(IterBaseModel): def __getitem__(self, item: int | str) -> ClanCapitalRaidSeasonAttack: ... + def __iter__(self) -> Iterator[ClanCapitalRaidSeasonAttack]: + ... + def __next__(self) -> ClanCapitalRaidSeasonAttack: ... @@ -192,6 +197,9 @@ class ClanCapitalRaidSeasonDistrictList(IterBaseModel): def __getitem__(self, item: int | str) -> ClanCapitalRaidSeasonDistrict: ... + def __iter__(self) -> Iterator[ClanCapitalRaidSeasonDistrict]: + ... + def __next__(self) -> ClanCapitalRaidSeasonDistrict: ... @@ -320,6 +328,9 @@ class ClanCapitalRaidSeasonDefenseLogList(IterBaseModel): def __getitem__(self, item: int | str) -> ClanCapitalRaidSeasonDefenseLogEntry: ... + def __iter__(self) -> Iterator[ClanCapitalRaidSeasonDefenseLogEntry]: + ... + def __next__(self) -> ClanCapitalRaidSeasonDefenseLogEntry: ... @@ -336,6 +347,9 @@ class ClanCapitalRaidSeasonAttackLogList(IterBaseModel): def __getitem__(self, item: int | str) -> ClanCapitalRaidSeasonAttackLogEntry: ... + def __iter__(self) -> Iterator[ClanCapitalRaidSeasonAttackLogEntry]: + ... + def __next__(self) -> ClanCapitalRaidSeasonAttackLogEntry: ... @@ -398,6 +412,9 @@ class ClanCapitalRaidSeasonMemberList(IterBaseModel): def __getitem__(self, item: int | str) -> ClanCapitalRaidSeasonMember: ... + def __iter__(self) -> Iterator[ClanCapitalRaidSeasonMember]: + ... + def __next__(self) -> ClanCapitalRaidSeasonMember: ... @@ -531,5 +548,8 @@ class ClanCapitalRaidSeasons(IterBaseModel): def __getitem__(self, item: int | str) -> ClanCapitalRaidSeason: ... + def __iter__(self) -> Iterator[ClanCapitalRaidSeason]: + ... + def __next__(self) -> ClanCapitalRaidSeason: ... diff --git a/pyclasher/models/ClanCapitalRankingList.pyi b/pyclasher/models/ClanCapitalRankingList.pyi index 86a11ae..1b9e3a0 100644 --- a/pyclasher/models/ClanCapitalRankingList.pyi +++ b/pyclasher/models/ClanCapitalRankingList.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import BaseModel, IterBaseModel @@ -39,5 +41,8 @@ class ClanCapitalRankingList(IterBaseModel): def __getitem__(self, item: int | str) -> ClanCapitalRanking: ... + def __iter__(self) -> Iterator[ClanCapitalRanking]: + ... + def __next__(self) -> ClanCapitalRanking: ... diff --git a/pyclasher/models/ClanList.pyi b/pyclasher/models/ClanList.pyi index 7a4420e..6a1133d 100644 --- a/pyclasher/models/ClanList.pyi +++ b/pyclasher/models/ClanList.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import IterBaseModel from .Clan import Clan @@ -14,5 +16,8 @@ class ClanList(IterBaseModel): def __getitem__(self, item: int | str) -> Clan: ... + def __iter__(self) -> Iterator[Clan]: + ... + def __next__(self) -> Clan: ... diff --git a/pyclasher/models/ClanMemberList.pyi b/pyclasher/models/ClanMemberList.pyi index 2cd107d..85c4a62 100644 --- a/pyclasher/models/ClanMemberList.pyi +++ b/pyclasher/models/ClanMemberList.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import IterBaseModel from .ClanMember import ClanMember @@ -16,5 +18,8 @@ class ClanMemberList(IterBaseModel): def __getitem__(self, item: int | str) -> ClanMember: ... + def __iter__(self) -> Iterator[ClanMember]: + ... + def __next__(self) -> ClanMember: ... diff --git a/pyclasher/models/ClanRankingList.pyi b/pyclasher/models/ClanRankingList.pyi index e54fd16..95cc20b 100644 --- a/pyclasher/models/ClanRankingList.pyi +++ b/pyclasher/models/ClanRankingList.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import BaseModel, IterBaseModel, BadgeUrls from .Location import Location @@ -106,8 +108,11 @@ class ClanRankingList(IterBaseModel): _iter_rtype = ClanRanking - def __getitem__(self, item: int | str) -> _iter_rtype: + def __getitem__(self, item: int | str) -> ClanRanking: + ... + + def __iter__(self) -> Iterator[ClanRanking]: ... - def __next__(self) -> _iter_rtype: + def __next__(self) -> ClanRanking: ... diff --git a/pyclasher/models/ClanWarLeagueGroup.pyi b/pyclasher/models/ClanWarLeagueGroup.pyi index ed596da..1aeee1b 100644 --- a/pyclasher/models/ClanWarLeagueGroup.pyi +++ b/pyclasher/models/ClanWarLeagueGroup.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import BaseModel, IterBaseModel, BaseClanMember, BaseClan from .Enums import ClanWarLeagueGroupState @@ -30,6 +32,9 @@ class ClanWarLeagueRoundList(IterBaseModel): def __getitem__(self, item: int) -> ClanWarLeagueRound: ... + def __iter__(self) -> Iterator[ClanWarLeagueRound]: + ... + def __next__(self) -> ClanWarLeagueRound: ... @@ -62,6 +67,9 @@ class ClanWarLeagueClanMemberList(IterBaseModel): def __getitem__(self, item: int) -> ClanWarLeagueClanMember: ... + def __iter__(self) -> Iterator[ClanWarLeagueClanMember]: + ... + def __next__(self) -> ClanWarLeagueClanMember: ... @@ -104,6 +112,9 @@ class ClanWarLeagueClanList(IterBaseModel): def __getitem__(self, item: int) -> ClanWarLeagueClan: ... + def __iter__(self) -> Iterator[ClanWarLeagueClan]: + ... + def __next__(self) -> ClanWarLeagueClan: ... diff --git a/pyclasher/models/ClanWarLog.pyi b/pyclasher/models/ClanWarLog.pyi index 6e0e47c..3769a42 100644 --- a/pyclasher/models/ClanWarLog.pyi +++ b/pyclasher/models/ClanWarLog.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import IterBaseModel, BaseModel, Time from .Enums import ClanWarResult from .WarClan import WarClan @@ -81,5 +83,8 @@ class ClanWarLog(IterBaseModel): def __getitem__(self, item: int) -> ClanWarLogEntry: ... + def __iter__(self) -> Iterator[ClanWarLogEntry]: + ... + def __next__(self) -> ClanWarLogEntry: ... diff --git a/pyclasher/models/Enums.pyi b/pyclasher/models/Enums.pyi index 32a19c1..8dd9099 100644 --- a/pyclasher/models/Enums.pyi +++ b/pyclasher/models/Enums.pyi @@ -7,14 +7,14 @@ from ..Exceptions import ApiCode class ApiCodes(Enum): - SUCCESS = ApiCode(200, "Successful response") - BAD_REQUEST = ApiCode(400, "Client provided incorrect parameters for the request.") - ACCESS_DENIED = ApiCode(403, + SUCCESS = ApiCode(..., ...) + BAD_REQUEST = ApiCode(..., ...) + ACCESS_DENIED = ApiCode(..., ..., "Access denied, either because of missing/incorrect credentials or used API token does not grant access to the requested resource.") - NOT_FOUND = ApiCode(404, "Resource was not found.") - THROTTLED = ApiCode(429, "Request was throttled, because amount of requests was above the threshold defined for the used API token.") - UNKNOWN = ApiCode(500, "Unknown error happened when handling the request.") - MAINTENANCE = ApiCode(503, "Service is temporarily unavailable because of maintenance.") + NOT_FOUND = ApiCode(..., ...) + THROTTLED = ApiCode(..., ...) + UNKNOWN = ApiCode(..., ...) + MAINTENANCE = ApiCode(..., ...) @classmethod def from_code(cls, code: int) -> ApiCodes: @@ -62,534 +62,418 @@ class WarFrequency(Enum): class Locations(Enum): - EUROPE = Location({'id': 32000000, 'name': 'Europe', 'isCountry': False}) - NORTH_AMERICA = Location({'id': 32000001, 'name': 'North America', 'isCountry': False}) - SOUTH_AMERICA = Location({'id': 32000002, 'name': 'South America', 'isCountry': False}) - ASIA = Location({'id': 32000003, 'name': 'Asia', 'isCountry': False}) - AUSTRALIA_R = Location({'id': 32000004, 'name': 'Australia', 'isCountry': False}) - AFRICA = Location({'id': 32000005, 'name': 'Africa', 'isCountry': False}) - INTERNATIONAL = Location({'id': 32000006, 'name': 'International', 'isCountry': False}) - AFGHANISTAN = Location({'id': 32000007, 'name': 'Afghanistan', 'isCountry': True, 'countryCode': 'AF'}) - LAND_ISLANDS = Location({'id': 32000008, 'name': 'Åland Islands', 'isCountry': True, 'countryCode': 'AX'}) - ALBANIA = Location({'id': 32000009, 'name': 'Albania', 'isCountry': True, 'countryCode': 'AL'}) - ALGERIA = Location({'id': 32000010, 'name': 'Algeria', 'isCountry': True, 'countryCode': 'DZ'}) - AMERICAN_SAMOA = Location({'id': 32000011, 'name': 'American Samoa', 'isCountry': True, 'countryCode': 'AS'}) - ANDORRA = Location({'id': 32000012, 'name': 'Andorra', 'isCountry': True, 'countryCode': 'AD'}) - ANGOLA = Location({'id': 32000013, 'name': 'Angola', 'isCountry': True, 'countryCode': 'AO'}) - ANGUILLA = Location({'id': 32000014, 'name': 'Anguilla', 'isCountry': True, 'countryCode': 'AI'}) - ANTARCTICA = Location({'id': 32000015, 'name': 'Antarctica', 'isCountry': True, 'countryCode': 'AQ'}) - ANTIGUA_AND_BARBUDA = Location({'id': 32000016, 'name': 'Antigua and Barbuda', 'isCountry': True, 'countryCode': 'AG'}) - ARGENTINA = Location({'id': 32000017, 'name': 'Argentina', 'isCountry': True, 'countryCode': 'AR'}) - ARMENIA = Location({'id': 32000018, 'name': 'Armenia', 'isCountry': True, 'countryCode': 'AM'}) - ARUBA = Location({'id': 32000019, 'name': 'Aruba', 'isCountry': True, 'countryCode': 'AW'}) - ASCENSION_ISLAND = Location({'id': 32000020, 'name': 'Ascension Island', 'isCountry': True, 'countryCode': 'AC'}) - AUSTRALIA_C = Location({'id': 32000021, 'name': 'Australia', 'isCountry': True, 'countryCode': 'AU'}) - AUSTRIA = Location({'id': 32000022, 'name': 'Austria', 'isCountry': True, 'countryCode': 'AT'}) - AZERBAIJAN = Location({'id': 32000023, 'name': 'Azerbaijan', 'isCountry': True, 'countryCode': 'AZ'}) - BAHAMAS = Location({'id': 32000024, 'name': 'Bahamas', 'isCountry': True, 'countryCode': 'BS'}) - BAHRAIN = Location({'id': 32000025, 'name': 'Bahrain', 'isCountry': True, 'countryCode': 'BH'}) - BANGLADESH = Location({'id': 32000026, 'name': 'Bangladesh', 'isCountry': True, 'countryCode': 'BD'}) - BARBADOS = Location({'id': 32000027, 'name': 'Barbados', 'isCountry': True, 'countryCode': 'BB'}) - BELARUS = Location({'id': 32000028, 'name': 'Belarus', 'isCountry': True, 'countryCode': 'BY'}) - BELGIUM = Location({'id': 32000029, 'name': 'Belgium', 'isCountry': True, 'countryCode': 'BE'}) - BELIZE = Location({'id': 32000030, 'name': 'Belize', 'isCountry': True, 'countryCode': 'BZ'}) - BENIN = Location({'id': 32000031, 'name': 'Benin', 'isCountry': True, 'countryCode': 'BJ'}) - BERMUDA = Location({'id': 32000032, 'name': 'Bermuda', 'isCountry': True, 'countryCode': 'BM'}) - BHUTAN = Location({'id': 32000033, 'name': 'Bhutan', 'isCountry': True, 'countryCode': 'BT'}) - BOLIVIA = Location({'id': 32000034, 'name': 'Bolivia', 'isCountry': True, 'countryCode': 'BO'}) - BOSNIA_AND_HERZEGOVINA = Location({'id': 32000035, 'name': 'Bosnia and Herzegovina', 'isCountry': True, 'countryCode': 'BA'}) - BOTSWANA = Location({'id': 32000036, 'name': 'Botswana', 'isCountry': True, 'countryCode': 'BW'}) - BOUVET_ISLAND = Location({'id': 32000037, 'name': 'Bouvet Island', 'isCountry': True, 'countryCode': 'BV'}) - BRAZIL = Location({'id': 32000038, 'name': 'Brazil', 'isCountry': True, 'countryCode': 'BR'}) - BRITISH_INDIAN_OCEAN_TERRITORY = Location({'id': 32000039, 'name': 'British Indian Ocean Territory', 'isCountry': True, 'countryCode': 'IO'}) - BRITISH_VIRGIN_ISLANDS = Location({'id': 32000040, 'name': 'British Virgin Islands', 'isCountry': True, 'countryCode': 'VG'}) - BRUNEI = Location({'id': 32000041, 'name': 'Brunei', 'isCountry': True, 'countryCode': 'BN'}) - BULGARIA = Location({'id': 32000042, 'name': 'Bulgaria', 'isCountry': True, 'countryCode': 'BG'}) - BURKINA_FASO = Location({'id': 32000043, 'name': 'Burkina Faso', 'isCountry': True, 'countryCode': 'BF'}) - BURUNDI = Location({'id': 32000044, 'name': 'Burundi', 'isCountry': True, 'countryCode': 'BI'}) - CAMBODIA = Location({'id': 32000045, 'name': 'Cambodia', 'isCountry': True, 'countryCode': 'KH'}) - CAMEROON = Location({'id': 32000046, 'name': 'Cameroon', 'isCountry': True, 'countryCode': 'CM'}) - CANADA = Location({'id': 32000047, 'name': 'Canada', 'isCountry': True, 'countryCode': 'CA'}) - CANARY_ISLANDS = Location({'id': 32000048, 'name': 'Canary Islands', 'isCountry': True, 'countryCode': 'IC'}) - CAPE_VERDE = Location({'id': 32000049, 'name': 'Cape Verde', 'isCountry': True, 'countryCode': 'CV'}) - CARIBBEAN_NETHERLANDS = Location({'id': 32000050, 'name': 'Caribbean Netherlands', 'isCountry': True, 'countryCode': 'BQ'}) - CAYMAN_ISLANDS = Location({'id': 32000051, 'name': 'Cayman Islands', 'isCountry': True, 'countryCode': 'KY'}) - CENTRAL_AFRICAN_REPUBLIC = Location({'id': 32000052, 'name': 'Central African Republic', 'isCountry': True, 'countryCode': 'CF'}) - CEUTA_AND_MELILLA = Location({'id': 32000053, 'name': 'Ceuta and Melilla', 'isCountry': True, 'countryCode': 'EA'}) - CHAD = Location({'id': 32000054, 'name': 'Chad', 'isCountry': True, 'countryCode': 'TD'}) - CHILE = Location({'id': 32000055, 'name': 'Chile', 'isCountry': True, 'countryCode': 'CL'}) - CHINA = Location({'id': 32000056, 'name': 'China', 'isCountry': True, 'countryCode': 'CN'}) - CHRISTMAS_ISLAND = Location({'id': 32000057, 'name': 'Christmas Island', 'isCountry': True, 'countryCode': 'CX'}) - COCOS_KEELING_ISLANDS = Location({'id': 32000058, 'name': 'Cocos (Keeling) Islands', 'isCountry': True, 'countryCode': 'CC'}) - COLOMBIA = Location({'id': 32000059, 'name': 'Colombia', 'isCountry': True, 'countryCode': 'CO'}) - COMOROS = Location({'id': 32000060, 'name': 'Comoros', 'isCountry': True, 'countryCode': 'KM'}) - CONGO_DRC = Location({'id': 32000061, 'name': 'Congo (DRC)', 'isCountry': True, 'countryCode': 'CG'}) - CONGO_REPUBLIC = Location({'id': 32000062, 'name': 'Congo (Republic)', 'isCountry': True, 'countryCode': 'CD'}) - COOK_ISLANDS = Location({'id': 32000063, 'name': 'Cook Islands', 'isCountry': True, 'countryCode': 'CK'}) - COSTA_RICA = Location({'id': 32000064, 'name': 'Costa Rica', 'isCountry': True, 'countryCode': 'CR'}) - CTE_DIVOIRE = Location({'id': 32000065, 'name': 'Côte d’Ivoire', 'isCountry': True, 'countryCode': 'CI'}) - CROATIA = Location({'id': 32000066, 'name': 'Croatia', 'isCountry': True, 'countryCode': 'HR'}) - CUBA = Location({'id': 32000067, 'name': 'Cuba', 'isCountry': True, 'countryCode': 'CU'}) - CURAAO = Location({'id': 32000068, 'name': 'Curaçao', 'isCountry': True, 'countryCode': 'CW'}) - CYPRUS = Location({'id': 32000069, 'name': 'Cyprus', 'isCountry': True, 'countryCode': 'CY'}) - CZECH_REPUBLIC = Location({'id': 32000070, 'name': 'Czech Republic', 'isCountry': True, 'countryCode': 'CZ'}) - DENMARK = Location({'id': 32000071, 'name': 'Denmark', 'isCountry': True, 'countryCode': 'DK'}) - DIEGO_GARCIA = Location({'id': 32000072, 'name': 'Diego Garcia', 'isCountry': True, 'countryCode': 'DG'}) - DJIBOUTI = Location({'id': 32000073, 'name': 'Djibouti', 'isCountry': True, 'countryCode': 'DJ'}) - DOMINICA = Location({'id': 32000074, 'name': 'Dominica', 'isCountry': True, 'countryCode': 'DM'}) - DOMINICAN_REPUBLIC = Location({'id': 32000075, 'name': 'Dominican Republic', 'isCountry': True, 'countryCode': 'DO'}) - ECUADOR = Location({'id': 32000076, 'name': 'Ecuador', 'isCountry': True, 'countryCode': 'EC'}) - EGYPT = Location({'id': 32000077, 'name': 'Egypt', 'isCountry': True, 'countryCode': 'EG'}) - EL_SALVADOR = Location({'id': 32000078, 'name': 'El Salvador', 'isCountry': True, 'countryCode': 'SV'}) - EQUATORIAL_GUINEA = Location({'id': 32000079, 'name': 'Equatorial Guinea', 'isCountry': True, 'countryCode': 'GQ'}) - ERITREA = Location({'id': 32000080, 'name': 'Eritrea', 'isCountry': True, 'countryCode': 'ER'}) - ESTONIA = Location({'id': 32000081, 'name': 'Estonia', 'isCountry': True, 'countryCode': 'EE'}) - ETHIOPIA = Location({'id': 32000082, 'name': 'Ethiopia', 'isCountry': True, 'countryCode': 'ET'}) - FALKLAND_ISLANDS = Location({'id': 32000083, 'name': 'Falkland Islands', 'isCountry': True, 'countryCode': 'FK'}) - FAROE_ISLANDS = Location({'id': 32000084, 'name': 'Faroe Islands', 'isCountry': True, 'countryCode': 'FO'}) - FIJI = Location({'id': 32000085, 'name': 'Fiji', 'isCountry': True, 'countryCode': 'FJ'}) - FINLAND = Location({'id': 32000086, 'name': 'Finland', 'isCountry': True, 'countryCode': 'FI'}) - FRANCE = Location({'id': 32000087, 'name': 'France', 'isCountry': True, 'countryCode': 'FR'}) - FRENCH_GUIANA = Location({'id': 32000088, 'name': 'French Guiana', 'isCountry': True, 'countryCode': 'GF'}) - FRENCH_POLYNESIA = Location({'id': 32000089, 'name': 'French Polynesia', 'isCountry': True, 'countryCode': 'PF'}) - FRENCH_SOUTHERN_TERRITORIES = Location({'id': 32000090, 'name': 'French Southern Territories', 'isCountry': True, 'countryCode': 'TF'}) - GABON = Location({'id': 32000091, 'name': 'Gabon', 'isCountry': True, 'countryCode': 'GA'}) - GAMBIA = Location({'id': 32000092, 'name': 'Gambia', 'isCountry': True, 'countryCode': 'GM'}) - GEORGIA = Location({'id': 32000093, 'name': 'Georgia', 'isCountry': True, 'countryCode': 'GE'}) - GERMANY = Location({'id': 32000094, 'name': 'Germany', 'isCountry': True, 'countryCode': 'DE'}) - GHANA = Location({'id': 32000095, 'name': 'Ghana', 'isCountry': True, 'countryCode': 'GH'}) - GIBRALTAR = Location({'id': 32000096, 'name': 'Gibraltar', 'isCountry': True, 'countryCode': 'GI'}) - GREECE = Location({'id': 32000097, 'name': 'Greece', 'isCountry': True, 'countryCode': 'GR'}) - GREENLAND = Location({'id': 32000098, 'name': 'Greenland', 'isCountry': True, 'countryCode': 'GL'}) - GRENADA = Location({'id': 32000099, 'name': 'Grenada', 'isCountry': True, 'countryCode': 'GD'}) - GUADELOUPE = Location({'id': 32000100, 'name': 'Guadeloupe', 'isCountry': True, 'countryCode': 'GP'}) - GUAM = Location({'id': 32000101, 'name': 'Guam', 'isCountry': True, 'countryCode': 'GU'}) - GUATEMALA = Location({'id': 32000102, 'name': 'Guatemala', 'isCountry': True, 'countryCode': 'GT'}) - GUERNSEY = Location({'id': 32000103, 'name': 'Guernsey', 'isCountry': True, 'countryCode': 'GG'}) - GUINEA = Location({'id': 32000104, 'name': 'Guinea', 'isCountry': True, 'countryCode': 'GN'}) - GUINEA_BISSAU = Location({'id': 32000105, 'name': 'Guinea-Bissau', 'isCountry': True, 'countryCode': 'GW'}) - GUYANA = Location({'id': 32000106, 'name': 'Guyana', 'isCountry': True, 'countryCode': 'GY'}) - HAITI = Location({'id': 32000107, 'name': 'Haiti', 'isCountry': True, 'countryCode': 'HT'}) - HEARD_AND_MCDONALD_ISLANDS = Location({'id': 32000108, 'name': 'Heard & McDonald Islands', 'isCountry': True, 'countryCode': 'HM'}) - HONDURAS = Location({'id': 32000109, 'name': 'Honduras', 'isCountry': True, 'countryCode': 'HN'}) - HONG_KONG = Location({'id': 32000110, 'name': 'Hong Kong', 'isCountry': True, 'countryCode': 'HK'}) - HUNGARY = Location({'id': 32000111, 'name': 'Hungary', 'isCountry': True, 'countryCode': 'HU'}) - ICELAND = Location({'id': 32000112, 'name': 'Iceland', 'isCountry': True, 'countryCode': 'IS'}) - INDIA = Location({'id': 32000113, 'name': 'India', 'isCountry': True, 'countryCode': 'IN'}) - INDONESIA = Location({'id': 32000114, 'name': 'Indonesia', 'isCountry': True, 'countryCode': 'ID'}) - IRAN = Location({'id': 32000115, 'name': 'Iran', 'isCountry': True, 'countryCode': 'IR'}) - IRAQ = Location({'id': 32000116, 'name': 'Iraq', 'isCountry': True, 'countryCode': 'IQ'}) - IRELAND = Location({'id': 32000117, 'name': 'Ireland', 'isCountry': True, 'countryCode': 'IE'}) - ISLE_OF_MAN = Location({'id': 32000118, 'name': 'Isle of Man', 'isCountry': True, 'countryCode': 'IM'}) - ISRAEL = Location({'id': 32000119, 'name': 'Israel', 'isCountry': True, 'countryCode': 'IL'}) - ITALY = Location({'id': 32000120, 'name': 'Italy', 'isCountry': True, 'countryCode': 'IT'}) - JAMAICA = Location({'id': 32000121, 'name': 'Jamaica', 'isCountry': True, 'countryCode': 'JM'}) - JAPAN = Location({'id': 32000122, 'name': 'Japan', 'isCountry': True, 'countryCode': 'JP'}) - JERSEY = Location({'id': 32000123, 'name': 'Jersey', 'isCountry': True, 'countryCode': 'JE'}) - JORDAN = Location({'id': 32000124, 'name': 'Jordan', 'isCountry': True, 'countryCode': 'JO'}) - KAZAKHSTAN = Location({'id': 32000125, 'name': 'Kazakhstan', 'isCountry': True, 'countryCode': 'KZ'}) - KENYA = Location({'id': 32000126, 'name': 'Kenya', 'isCountry': True, 'countryCode': 'KE'}) - KIRIBATI = Location({'id': 32000127, 'name': 'Kiribati', 'isCountry': True, 'countryCode': 'KI'}) - KOSOVO = Location({'id': 32000128, 'name': 'Kosovo', 'isCountry': True, 'countryCode': 'XK'}) - KUWAIT = Location({'id': 32000129, 'name': 'Kuwait', 'isCountry': True, 'countryCode': 'KW'}) - KYRGYZSTAN = Location({'id': 32000130, 'name': 'Kyrgyzstan', 'isCountry': True, 'countryCode': 'KG'}) - LAOS = Location({'id': 32000131, 'name': 'Laos', 'isCountry': True, 'countryCode': 'LA'}) - LATVIA = Location({'id': 32000132, 'name': 'Latvia', 'isCountry': True, 'countryCode': 'LV'}) - LEBANON = Location({'id': 32000133, 'name': 'Lebanon', 'isCountry': True, 'countryCode': 'LB'}) - LESOTHO = Location({'id': 32000134, 'name': 'Lesotho', 'isCountry': True, 'countryCode': 'LS'}) - LIBERIA = Location({'id': 32000135, 'name': 'Liberia', 'isCountry': True, 'countryCode': 'LR'}) - LIBYA = Location({'id': 32000136, 'name': 'Libya', 'isCountry': True, 'countryCode': 'LY'}) - LIECHTENSTEIN = Location({'id': 32000137, 'name': 'Liechtenstein', 'isCountry': True, 'countryCode': 'LI'}) - LITHUANIA = Location({'id': 32000138, 'name': 'Lithuania', 'isCountry': True, 'countryCode': 'LT'}) - LUXEMBOURG = Location({'id': 32000139, 'name': 'Luxembourg', 'isCountry': True, 'countryCode': 'LU'}) - MACAU = Location({'id': 32000140, 'name': 'Macau', 'isCountry': True, 'countryCode': 'MO'}) - NORTH_MACEDONIA = Location({'id': 32000141, 'name': 'North Macedonia', 'isCountry': True, 'countryCode': 'MK'}) - MADAGASCAR = Location({'id': 32000142, 'name': 'Madagascar', 'isCountry': True, 'countryCode': 'MG'}) - MALAWI = Location({'id': 32000143, 'name': 'Malawi', 'isCountry': True, 'countryCode': 'MW'}) - MALAYSIA = Location({'id': 32000144, 'name': 'Malaysia', 'isCountry': True, 'countryCode': 'MY'}) - MALDIVES = Location({'id': 32000145, 'name': 'Maldives', 'isCountry': True, 'countryCode': 'MV'}) - MALI = Location({'id': 32000146, 'name': 'Mali', 'isCountry': True, 'countryCode': 'ML'}) - MALTA = Location({'id': 32000147, 'name': 'Malta', 'isCountry': True, 'countryCode': 'MT'}) - MARSHALL_ISLANDS = Location({'id': 32000148, 'name': 'Marshall Islands', 'isCountry': True, 'countryCode': 'MH'}) - MARTINIQUE = Location({'id': 32000149, 'name': 'Martinique', 'isCountry': True, 'countryCode': 'MQ'}) - MAURITANIA = Location({'id': 32000150, 'name': 'Mauritania', 'isCountry': True, 'countryCode': 'MR'}) - MAURITIUS = Location({'id': 32000151, 'name': 'Mauritius', 'isCountry': True, 'countryCode': 'MU'}) - MAYOTTE = Location({'id': 32000152, 'name': 'Mayotte', 'isCountry': True, 'countryCode': 'YT'}) - MEXICO = Location({'id': 32000153, 'name': 'Mexico', 'isCountry': True, 'countryCode': 'MX'}) - MICRONESIA = Location({'id': 32000154, 'name': 'Micronesia', 'isCountry': True, 'countryCode': 'FM'}) - MOLDOVA = Location({'id': 32000155, 'name': 'Moldova', 'isCountry': True, 'countryCode': 'MD'}) - MONACO = Location({'id': 32000156, 'name': 'Monaco', 'isCountry': True, 'countryCode': 'MC'}) - MONGOLIA = Location({'id': 32000157, 'name': 'Mongolia', 'isCountry': True, 'countryCode': 'MN'}) - MONTENEGRO = Location({'id': 32000158, 'name': 'Montenegro', 'isCountry': True, 'countryCode': 'ME'}) - MONTSERRAT = Location({'id': 32000159, 'name': 'Montserrat', 'isCountry': True, 'countryCode': 'MS'}) - MOROCCO = Location({'id': 32000160, 'name': 'Morocco', 'isCountry': True, 'countryCode': 'MA'}) - MOZAMBIQUE = Location({'id': 32000161, 'name': 'Mozambique', 'isCountry': True, 'countryCode': 'MZ'}) - MYANMAR_BURMA = Location({'id': 32000162, 'name': 'Myanmar (Burma)', 'isCountry': True, 'countryCode': 'MM'}) - NAMIBIA = Location({'id': 32000163, 'name': 'Namibia', 'isCountry': True, 'countryCode': 'NA'}) - NAURU = Location({'id': 32000164, 'name': 'Nauru', 'isCountry': True, 'countryCode': 'NR'}) - NEPAL = Location({'id': 32000165, 'name': 'Nepal', 'isCountry': True, 'countryCode': 'NP'}) - NETHERLANDS = Location({'id': 32000166, 'name': 'Netherlands', 'isCountry': True, 'countryCode': 'NL'}) - NEW_CALEDONIA = Location({'id': 32000167, 'name': 'New Caledonia', 'isCountry': True, 'countryCode': 'NC'}) - NEW_ZEALAND = Location({'id': 32000168, 'name': 'New Zealand', 'isCountry': True, 'countryCode': 'NZ'}) - NICARAGUA = Location({'id': 32000169, 'name': 'Nicaragua', 'isCountry': True, 'countryCode': 'NI'}) - NIGER = Location({'id': 32000170, 'name': 'Niger', 'isCountry': True, 'countryCode': 'NE'}) - NIGERIA = Location({'id': 32000171, 'name': 'Nigeria', 'isCountry': True, 'countryCode': 'NG'}) - NIUE = Location({'id': 32000172, 'name': 'Niue', 'isCountry': True, 'countryCode': 'NU'}) - NORFOLK_ISLAND = Location({'id': 32000173, 'name': 'Norfolk Island', 'isCountry': True, 'countryCode': 'NF'}) - NORTH_KOREA = Location({'id': 32000174, 'name': 'North Korea', 'isCountry': True, 'countryCode': 'KP'}) - NORTHERN_MARIANA_ISLANDS = Location({'id': 32000175, 'name': 'Northern Mariana Islands', 'isCountry': True, 'countryCode': 'MP'}) - NORWAY = Location({'id': 32000176, 'name': 'Norway', 'isCountry': True, 'countryCode': 'NO'}) - OMAN = Location({'id': 32000177, 'name': 'Oman', 'isCountry': True, 'countryCode': 'OM'}) - PAKISTAN = Location({'id': 32000178, 'name': 'Pakistan', 'isCountry': True, 'countryCode': 'PK'}) - PALAU = Location({'id': 32000179, 'name': 'Palau', 'isCountry': True, 'countryCode': 'PW'}) - PALESTINE = Location({'id': 32000180, 'name': 'Palestine', 'isCountry': True, 'countryCode': 'PS'}) - PANAMA = Location({'id': 32000181, 'name': 'Panama', 'isCountry': True, 'countryCode': 'PA'}) - PAPUA_NEW_GUINEA = Location({'id': 32000182, 'name': 'Papua New Guinea', 'isCountry': True, 'countryCode': 'PG'}) - PARAGUAY = Location({'id': 32000183, 'name': 'Paraguay', 'isCountry': True, 'countryCode': 'PY'}) - PERU = Location({'id': 32000184, 'name': 'Peru', 'isCountry': True, 'countryCode': 'PE'}) - PHILIPPINES = Location({'id': 32000185, 'name': 'Philippines', 'isCountry': True, 'countryCode': 'PH'}) - PITCAIRN_ISLANDS = Location({'id': 32000186, 'name': 'Pitcairn Islands', 'isCountry': True, 'countryCode': 'PN'}) - POLAND = Location({'id': 32000187, 'name': 'Poland', 'isCountry': True, 'countryCode': 'PL'}) - PORTUGAL = Location({'id': 32000188, 'name': 'Portugal', 'isCountry': True, 'countryCode': 'PT'}) - PUERTO_RICO = Location({'id': 32000189, 'name': 'Puerto Rico', 'isCountry': True, 'countryCode': 'PR'}) - QATAR = Location({'id': 32000190, 'name': 'Qatar', 'isCountry': True, 'countryCode': 'QA'}) - RUNION = Location({'id': 32000191, 'name': 'Réunion', 'isCountry': True, 'countryCode': 'RE'}) - ROMANIA = Location({'id': 32000192, 'name': 'Romania', 'isCountry': True, 'countryCode': 'RO'}) - RUSSIA = Location({'id': 32000193, 'name': 'Russia', 'isCountry': True, 'countryCode': 'RU'}) - RWANDA = Location({'id': 32000194, 'name': 'Rwanda', 'isCountry': True, 'countryCode': 'RW'}) - SAINT_BARTHLEMY = Location({'id': 32000195, 'name': 'Saint Barthélemy', 'isCountry': True, 'countryCode': 'BL'}) - SAINT_HELENA = Location({'id': 32000196, 'name': 'Saint Helena', 'isCountry': True, 'countryCode': 'SH'}) - SAINT_KITTS_AND_NEVIS = Location({'id': 32000197, 'name': 'Saint Kitts and Nevis', 'isCountry': True, 'countryCode': 'KN'}) - SAINT_LUCIA = Location({'id': 32000198, 'name': 'Saint Lucia', 'isCountry': True, 'countryCode': 'LC'}) - SAINT_MARTIN = Location({'id': 32000199, 'name': 'Saint Martin', 'isCountry': True, 'countryCode': 'MF'}) - SAINT_PIERRE_AND_MIQUELON = Location({'id': 32000200, 'name': 'Saint Pierre and Miquelon', 'isCountry': True, 'countryCode': 'PM'}) - SAMOA = Location({'id': 32000201, 'name': 'Samoa', 'isCountry': True, 'countryCode': 'WS'}) - SAN_MARINO = Location({'id': 32000202, 'name': 'San Marino', 'isCountry': True, 'countryCode': 'SM'}) - SO_TOM_AND_PRNCIPE = Location({'id': 32000203, 'name': 'São Tomé and Príncipe', 'isCountry': True, 'countryCode': 'ST'}) - SAUDI_ARABIA = Location({'id': 32000204, 'name': 'Saudi Arabia', 'isCountry': True, 'countryCode': 'SA'}) - SENEGAL = Location({'id': 32000205, 'name': 'Senegal', 'isCountry': True, 'countryCode': 'SN'}) - SERBIA = Location({'id': 32000206, 'name': 'Serbia', 'isCountry': True, 'countryCode': 'RS'}) - SEYCHELLES = Location({'id': 32000207, 'name': 'Seychelles', 'isCountry': True, 'countryCode': 'SC'}) - SIERRA_LEONE = Location({'id': 32000208, 'name': 'Sierra Leone', 'isCountry': True, 'countryCode': 'SL'}) - SINGAPORE = Location({'id': 32000209, 'name': 'Singapore', 'isCountry': True, 'countryCode': 'SG'}) - SINT_MAARTEN = Location({'id': 32000210, 'name': 'Sint Maarten', 'isCountry': True, 'countryCode': 'SX'}) - SLOVAKIA = Location({'id': 32000211, 'name': 'Slovakia', 'isCountry': True, 'countryCode': 'SK'}) - SLOVENIA = Location({'id': 32000212, 'name': 'Slovenia', 'isCountry': True, 'countryCode': 'SI'}) - SOLOMON_ISLANDS = Location({'id': 32000213, 'name': 'Solomon Islands', 'isCountry': True, 'countryCode': 'SB'}) - SOMALIA = Location({'id': 32000214, 'name': 'Somalia', 'isCountry': True, 'countryCode': 'SO'}) - SOUTH_AFRICA = Location({'id': 32000215, 'name': 'South Africa', 'isCountry': True, 'countryCode': 'ZA'}) - SOUTH_KOREA = Location({'id': 32000216, 'name': 'South Korea', 'isCountry': True, 'countryCode': 'KR'}) - SOUTH_SUDAN = Location({'id': 32000217, 'name': 'South Sudan', 'isCountry': True, 'countryCode': 'SS'}) - SPAIN = Location({'id': 32000218, 'name': 'Spain', 'isCountry': True, 'countryCode': 'ES'}) - SRI_LANKA = Location({'id': 32000219, 'name': 'Sri Lanka', 'isCountry': True, 'countryCode': 'LK'}) - ST_VINCENT_AND_GRENADINES = Location({'id': 32000220, 'name': 'St. Vincent & Grenadines', 'isCountry': True, 'countryCode': 'VC'}) - SUDAN = Location({'id': 32000221, 'name': 'Sudan', 'isCountry': True, 'countryCode': 'SD'}) - SURINAME = Location({'id': 32000222, 'name': 'Suriname', 'isCountry': True, 'countryCode': 'SR'}) - SVALBARD_AND_JAN_MAYEN = Location({'id': 32000223, 'name': 'Svalbard and Jan Mayen', 'isCountry': True, 'countryCode': 'SJ'}) - SWAZILAND = Location({'id': 32000224, 'name': 'Swaziland', 'isCountry': True, 'countryCode': 'SZ'}) - SWEDEN = Location({'id': 32000225, 'name': 'Sweden', 'isCountry': True, 'countryCode': 'SE'}) - SWITZERLAND = Location({'id': 32000226, 'name': 'Switzerland', 'isCountry': True, 'countryCode': 'CH'}) - SYRIA = Location({'id': 32000227, 'name': 'Syria', 'isCountry': True, 'countryCode': 'SY'}) - TAIWAN = Location({'id': 32000228, 'name': 'Taiwan', 'isCountry': True, 'countryCode': 'TW'}) - TAJIKISTAN = Location({'id': 32000229, 'name': 'Tajikistan', 'isCountry': True, 'countryCode': 'TJ'}) - TANZANIA = Location({'id': 32000230, 'name': 'Tanzania', 'isCountry': True, 'countryCode': 'TZ'}) - THAILAND = Location({'id': 32000231, 'name': 'Thailand', 'isCountry': True, 'countryCode': 'TH'}) - TIMOR_LESTE = Location({'id': 32000232, 'name': 'Timor-Leste', 'isCountry': True, 'countryCode': 'TL'}) - TOGO = Location({'id': 32000233, 'name': 'Togo', 'isCountry': True, 'countryCode': 'TG'}) - TOKELAU = Location({'id': 32000234, 'name': 'Tokelau', 'isCountry': True, 'countryCode': 'TK'}) - TONGA = Location({'id': 32000235, 'name': 'Tonga', 'isCountry': True, 'countryCode': 'TO'}) - TRINIDAD_AND_TOBAGO = Location({'id': 32000236, 'name': 'Trinidad and Tobago', 'isCountry': True, 'countryCode': 'TT'}) - TRISTAN_DA_CUNHA = Location({'id': 32000237, 'name': 'Tristan da Cunha', 'isCountry': True, 'countryCode': 'TA'}) - TUNISIA = Location({'id': 32000238, 'name': 'Tunisia', 'isCountry': True, 'countryCode': 'TN'}) - TRKIYE = Location({'id': 32000239, 'name': 'Türkiye', 'isCountry': True, 'countryCode': 'TR'}) - TURKMENISTAN = Location({'id': 32000240, 'name': 'Turkmenistan', 'isCountry': True, 'countryCode': 'TM'}) - TURKS_AND_CAICOS_ISLANDS = Location({'id': 32000241, 'name': 'Turks and Caicos Islands', 'isCountry': True, 'countryCode': 'TC'}) - TUVALU = Location({'id': 32000242, 'name': 'Tuvalu', 'isCountry': True, 'countryCode': 'TV'}) - US_OUTLYING_ISLANDS = Location({'id': 32000243, 'name': 'U.S. Outlying Islands', 'isCountry': True, 'countryCode': 'UM'}) - US_VIRGIN_ISLANDS = Location({'id': 32000244, 'name': 'U.S. Virgin Islands', 'isCountry': True, 'countryCode': 'VI'}) - UGANDA = Location({'id': 32000245, 'name': 'Uganda', 'isCountry': True, 'countryCode': 'UG'}) - UKRAINE = Location({'id': 32000246, 'name': 'Ukraine', 'isCountry': True, 'countryCode': 'UA'}) - UNITED_ARAB_EMIRATES = Location({'id': 32000247, 'name': 'United Arab Emirates', 'isCountry': True, 'countryCode': 'AE'}) - UNITED_KINGDOM = Location({'id': 32000248, 'name': 'United Kingdom', 'isCountry': True, 'countryCode': 'GB'}) - UNITED_STATES = Location({'id': 32000249, 'name': 'United States', 'isCountry': True, 'countryCode': 'US'}) - URUGUAY = Location({'id': 32000250, 'name': 'Uruguay', 'isCountry': True, 'countryCode': 'UY'}) - UZBEKISTAN = Location({'id': 32000251, 'name': 'Uzbekistan', 'isCountry': True, 'countryCode': 'UZ'}) - VANUATU = Location({'id': 32000252, 'name': 'Vanuatu', 'isCountry': True, 'countryCode': 'VU'}) - VATICAN_CITY = Location({'id': 32000253, 'name': 'Vatican City', 'isCountry': True, 'countryCode': 'VA'}) - VENEZUELA = Location({'id': 32000254, 'name': 'Venezuela', 'isCountry': True, 'countryCode': 'VE'}) - VIETNAM = Location({'id': 32000255, 'name': 'Vietnam', 'isCountry': True, 'countryCode': 'VN'}) - WALLIS_AND_FUTUNA = Location({'id': 32000256, 'name': 'Wallis and Futuna', 'isCountry': True, 'countryCode': 'WF'}) - WESTERN_SAHARA = Location({'id': 32000257, 'name': 'Western Sahara', 'isCountry': True, 'countryCode': 'EH'}) - YEMEN = Location({'id': 32000258, 'name': 'Yemen', 'isCountry': True, 'countryCode': 'YE'}) - ZAMBIA = Location({'id': 32000259, 'name': 'Zambia', 'isCountry': True, 'countryCode': 'ZM'}) - ZIMBABWE = Location({'id': 32000260, 'name': 'Zimbabwe', 'isCountry': True, 'countryCode': 'ZW'}) - MISSING32000261 = Location({'id': 32000261, 'name': '', 'isCountry': False}) - MISSING32000262 = Location({'id': 32000262, 'name': '', 'isCountry': False}) - MISSING32000263 = Location({'id': 32000263, 'name': '', 'isCountry': False}) - MISSING32000264 = Location({'id': 32000264, 'name': '', 'isCountry': False}) - MISSING32000265 = Location({'id': 32000265, 'name': '', 'isCountry': False}) + EUROPE = Location(...) + NORTH_AMERICA = Location(...) + SOUTH_AMERICA = Location(...) + ASIA = Location(...) + AUSTRALIA_R = Location(...) + AFRICA = Location(...) + INTERNATIONAL = Location(...) + AFGHANISTAN = Location(...) + LAND_ISLANDS = Location(...) + ALBANIA = Location(...) + ALGERIA = Location(...) + AMERICAN_SAMOA = Location(...) + ANDORRA = Location(...) + ANGOLA = Location(...) + ANGUILLA = Location(...) + ANTARCTICA = Location(...) + ANTIGUA_AND_BARBUDA = Location(...) + ARGENTINA = Location(...) + ARMENIA = Location(...) + ARUBA = Location(...) + ASCENSION_ISLAND = Location(...) + AUSTRALIA_C = Location(...) + AUSTRIA = Location(...) + AZERBAIJAN = Location(...) + BAHAMAS = Location(...) + BAHRAIN = Location(...) + BANGLADESH = Location(...) + BARBADOS = Location(...) + BELARUS = Location(...) + BELGIUM = Location(...) + BELIZE = Location(...) + BENIN = Location(...) + BERMUDA = Location(...) + BHUTAN = Location(...) + BOLIVIA = Location(...) + BOSNIA_AND_HERZEGOVINA = Location(...) + BOTSWANA = Location(...) + BOUVET_ISLAND = Location(...) + BRAZIL = Location(...) + BRITISH_INDIAN_OCEAN_TERRITORY = Location(...) + BRITISH_VIRGIN_ISLANDS = Location(...) + BRUNEI = Location(...) + BULGARIA = Location(...) + BURKINA_FASO = Location(...) + BURUNDI = Location(...) + CAMBODIA = Location(...) + CAMEROON = Location(...) + CANADA = Location(...) + CANARY_ISLANDS = Location(...) + CAPE_VERDE = Location(...) + CARIBBEAN_NETHERLANDS = Location(...) + CAYMAN_ISLANDS = Location(...) + CENTRAL_AFRICAN_REPUBLIC = Location(...) + CEUTA_AND_MELILLA = Location(...) + CHAD = Location(...) + CHILE = Location(...) + CHINA = Location(...) + CHRISTMAS_ISLAND = Location(...) + COCOS_KEELING_ISLANDS = Location(...) + COLOMBIA = Location(...) + COMOROS = Location(...) + CONGO_DRC = Location(...) + CONGO_REPUBLIC = Location(...) + COOK_ISLANDS = Location(...) + COSTA_RICA = Location(...) + CTE_DIVOIRE = Location(...) + CROATIA = Location(...) + CUBA = Location(...) + CURAAO = Location(...) + CYPRUS = Location(...) + CZECH_REPUBLIC = Location(...) + DENMARK = Location(...) + DIEGO_GARCIA = Location(...) + DJIBOUTI = Location(...) + DOMINICA = Location(...) + DOMINICAN_REPUBLIC = Location(...) + ECUADOR = Location(...) + EGYPT = Location(...) + EL_SALVADOR = Location(...) + EQUATORIAL_GUINEA = Location(...) + ERITREA = Location(...) + ESTONIA = Location(...) + ETHIOPIA = Location(...) + FALKLAND_ISLANDS = Location(...) + FAROE_ISLANDS = Location(...) + FIJI = Location(...) + FINLAND = Location(...) + FRANCE = Location(...) + FRENCH_GUIANA = Location(...) + FRENCH_POLYNESIA = Location(...) + FRENCH_SOUTHERN_TERRITORIES = Location(...) + GABON = Location(...) + GAMBIA = Location(...) + GEORGIA = Location(...) + GERMANY = Location(...) + GHANA = Location(...) + GIBRALTAR = Location(...) + GREECE = Location(...) + GREENLAND = Location(...) + GRENADA = Location(...) + GUADELOUPE = Location(...) + GUAM = Location(...) + GUATEMALA = Location(...) + GUERNSEY = Location(...) + GUINEA = Location(...) + GUINEA_BISSAU = Location(...) + GUYANA = Location(...) + HAITI = Location(...) + HEARD_AND_MCDONALD_ISLANDS = Location(...) + HONDURAS = Location(...) + HONG_KONG = Location(...) + HUNGARY = Location(...) + ICELAND = Location(...) + INDIA = Location(...) + INDONESIA = Location(...) + IRAN = Location(...) + IRAQ = Location(...) + IRELAND = Location(...) + ISLE_OF_MAN = Location(...) + ISRAEL = Location(...) + ITALY = Location(...) + JAMAICA = Location(...) + JAPAN = Location(...) + JERSEY = Location(...) + JORDAN = Location(...) + KAZAKHSTAN = Location(...) + KENYA = Location(...) + KIRIBATI = Location(...) + KOSOVO = Location(...) + KUWAIT = Location(...) + KYRGYZSTAN = Location(...) + LAOS = Location(...) + LATVIA = Location(...) + LEBANON = Location(...) + LESOTHO = Location(...) + LIBERIA = Location(...) + LIBYA = Location(...) + LIECHTENSTEIN = Location(...) + LITHUANIA = Location(...) + LUXEMBOURG = Location(...) + MACAU = Location(...) + NORTH_MACEDONIA = Location(...) + MADAGASCAR = Location(...) + MALAWI = Location(...) + MALAYSIA = Location(...) + MALDIVES = Location(...) + MALI = Location(...) + MALTA = Location(...) + MARSHALL_ISLANDS = Location(...) + MARTINIQUE = Location(...) + MAURITANIA = Location(...) + MAURITIUS = Location(...) + MAYOTTE = Location(...) + MEXICO = Location(...) + MICRONESIA = Location(...) + MOLDOVA = Location(...) + MONACO = Location(...) + MONGOLIA = Location(...) + MONTENEGRO = Location(...) + MONTSERRAT = Location(...) + MOROCCO = Location(...) + MOZAMBIQUE = Location(...) + MYANMAR_BURMA = Location(...) + NAMIBIA = Location(...) + NAURU = Location(...) + NEPAL = Location(...) + NETHERLANDS = Location(...) + NEW_CALEDONIA = Location(...) + NEW_ZEALAND = Location(...) + NICARAGUA = Location(...) + NIGER = Location(...) + NIGERIA = Location(...) + NIUE = Location(...) + NORFOLK_ISLAND = Location(...) + NORTH_KOREA = Location(...) + NORTHERN_MARIANA_ISLANDS = Location(...) + NORWAY = Location(...) + OMAN = Location(...) + PAKISTAN = Location(...) + PALAU = Location(...) + PALESTINE = Location(...) + PANAMA = Location(...) + PAPUA_NEW_GUINEA = Location(...) + PARAGUAY = Location(...) + PERU = Location(...) + PHILIPPINES = Location(...) + PITCAIRN_ISLANDS = Location(...) + POLAND = Location(...) + PORTUGAL = Location(...) + PUERTO_RICO = Location(...) + QATAR = Location(...) + RUNION = Location(...) + ROMANIA = Location(...) + RUSSIA = Location(...) + RWANDA = Location(...) + SAINT_BARTHLEMY = Location(...) + SAINT_HELENA = Location(...) + SAINT_KITTS_AND_NEVIS = Location(...) + SAINT_LUCIA = Location(...) + SAINT_MARTIN = Location(...) + SAINT_PIERRE_AND_MIQUELON = Location(...) + SAMOA = Location(...) + SAN_MARINO = Location(...) + SO_TOM_AND_PRNCIPE = Location(...) + SAUDI_ARABIA = Location(...) + SENEGAL = Location(...) + SERBIA = Location(...) + SEYCHELLES = Location(...) + SIERRA_LEONE = Location(...) + SINGAPORE = Location(...) + SINT_MAARTEN = Location(...) + SLOVAKIA = Location(...) + SLOVENIA = Location(...) + SOLOMON_ISLANDS = Location(...) + SOMALIA = Location(...) + SOUTH_AFRICA = Location(...) + SOUTH_KOREA = Location(...) + SOUTH_SUDAN = Location(...) + SPAIN = Location(...) + SRI_LANKA = Location(...) + ST_VINCENT_AND_GRENADINES = Location(...) + SUDAN = Location(...) + SURINAME = Location(...) + SVALBARD_AND_JAN_MAYEN = Location(...) + SWAZILAND = Location(...) + SWEDEN = Location(...) + SWITZERLAND = Location(...) + SYRIA = Location(...) + TAIWAN = Location(...) + TAJIKISTAN = Location(...) + TANZANIA = Location(...) + THAILAND = Location(...) + TIMOR_LESTE = Location(...) + TOGO = Location(...) + TOKELAU = Location(...) + TONGA = Location(...) + TRINIDAD_AND_TOBAGO = Location(...) + TRISTAN_DA_CUNHA = Location(...) + TUNISIA = Location(...) + TRKIYE = Location(...) + TURKMENISTAN = Location(...) + TURKS_AND_CAICOS_ISLANDS = Location(...) + TUVALU = Location(...) + US_OUTLYING_ISLANDS = Location(...) + US_VIRGIN_ISLANDS = Location(...) + UGANDA = Location(...) + UKRAINE = Location(...) + UNITED_ARAB_EMIRATES = Location(...) + UNITED_KINGDOM = Location(...) + UNITED_STATES = Location(...) + URUGUAY = Location(...) + UZBEKISTAN = Location(...) + VANUATU = Location(...) + VATICAN_CITY = Location(...) + VENEZUELA = Location(...) + VIETNAM = Location(...) + WALLIS_AND_FUTUNA = Location(...) + WESTERN_SAHARA = Location(...) + YEMEN = Location(...) + ZAMBIA = Location(...) + ZIMBABWE = Location(...) + MISSING32000261 = Location(...) + MISSING32000262 = Location(...) + MISSING32000263 = Location(...) + MISSING32000264 = Location(...) + MISSING32000265 = Location(...) class Leagues(Enum): - UNRANKED = League({'id': 29000000, 'name': 'Unranked', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png'}}) - BRONZE_LEAGUE_III = League({'id': 29000001, 'name': 'Bronze League III', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/uUJDLEdAh7Lwf6YOHmXfNM586ZlEvMju54bTlt2u6EE.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/uUJDLEdAh7Lwf6YOHmXfNM586ZlEvMju54bTlt2u6EE.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/uUJDLEdAh7Lwf6YOHmXfNM586ZlEvMju54bTlt2u6EE.png'}}) - BRONZE_LEAGUE_II = League({'id': 29000002, 'name': 'Bronze League II', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/U2acNDRaR5rQDu4Z6pQKaGcjWm9dkSnHMAPZCXrHPB4.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/U2acNDRaR5rQDu4Z6pQKaGcjWm9dkSnHMAPZCXrHPB4.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/U2acNDRaR5rQDu4Z6pQKaGcjWm9dkSnHMAPZCXrHPB4.png'}}) - BRONZE_LEAGUE_I = League({'id': 29000003, 'name': 'Bronze League I', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/SZIXZHZxfHTmgseKCH6T5hvMQ3JQM-Js2QfpC9A3ya0.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/SZIXZHZxfHTmgseKCH6T5hvMQ3JQM-Js2QfpC9A3ya0.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/SZIXZHZxfHTmgseKCH6T5hvMQ3JQM-Js2QfpC9A3ya0.png'}}) - SILVER_LEAGUE_III = League({'id': 29000004, 'name': 'Silver League III', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/QcFBfoArnafaXCnB5OfI7vESpQEBuvWtzOyLq8gJzVc.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/QcFBfoArnafaXCnB5OfI7vESpQEBuvWtzOyLq8gJzVc.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/QcFBfoArnafaXCnB5OfI7vESpQEBuvWtzOyLq8gJzVc.png'}}) - SILVER_LEAGUE_II = League({'id': 29000005, 'name': 'Silver League II', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/8OhXcwDJkenBH2kPH73eXftFOpHHRF-b32n0yrTqC44.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/8OhXcwDJkenBH2kPH73eXftFOpHHRF-b32n0yrTqC44.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/8OhXcwDJkenBH2kPH73eXftFOpHHRF-b32n0yrTqC44.png'}}) - SILVER_LEAGUE_I = League({'id': 29000006, 'name': 'Silver League I', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/nvrBLvCK10elRHmD1g9w5UU1flDRMhYAojMB2UbYfPs.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/nvrBLvCK10elRHmD1g9w5UU1flDRMhYAojMB2UbYfPs.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/nvrBLvCK10elRHmD1g9w5UU1flDRMhYAojMB2UbYfPs.png'}}) - GOLD_LEAGUE_III = League({'id': 29000007, 'name': 'Gold League III', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/vd4Lhz5b2I1P0cLH25B6q63JN3Wt1j2NTMhOYpMPQ4M.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/vd4Lhz5b2I1P0cLH25B6q63JN3Wt1j2NTMhOYpMPQ4M.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/vd4Lhz5b2I1P0cLH25B6q63JN3Wt1j2NTMhOYpMPQ4M.png'}}) - GOLD_LEAGUE_II = League({'id': 29000008, 'name': 'Gold League II', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/Y6CveuHmPM_oiOic2Yet0rYL9AFRYW0WA0u2e44-YbM.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/Y6CveuHmPM_oiOic2Yet0rYL9AFRYW0WA0u2e44-YbM.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/Y6CveuHmPM_oiOic2Yet0rYL9AFRYW0WA0u2e44-YbM.png'}}) - GOLD_LEAGUE_I = League({'id': 29000009, 'name': 'Gold League I', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/CorhMY9ZmQvqXTZ4VYVuUgPNGSHsO0cEXEL5WYRmB2Y.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/CorhMY9ZmQvqXTZ4VYVuUgPNGSHsO0cEXEL5WYRmB2Y.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/CorhMY9ZmQvqXTZ4VYVuUgPNGSHsO0cEXEL5WYRmB2Y.png'}}) - CRYSTAL_LEAGUE_III = League({'id': 29000010, 'name': 'Crystal League III', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/Hyqco7bHh0Q81xB8mSF_ZhjKnKcTmJ9QEq9QGlsxiKE.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/Hyqco7bHh0Q81xB8mSF_ZhjKnKcTmJ9QEq9QGlsxiKE.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/Hyqco7bHh0Q81xB8mSF_ZhjKnKcTmJ9QEq9QGlsxiKE.png'}}) - CRYSTAL_LEAGUE_II = League({'id': 29000011, 'name': 'Crystal League II', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/jhP36EhAA9n1ADafdQtCP-ztEAQjoRpY7cT8sU7SW8A.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/jhP36EhAA9n1ADafdQtCP-ztEAQjoRpY7cT8sU7SW8A.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/jhP36EhAA9n1ADafdQtCP-ztEAQjoRpY7cT8sU7SW8A.png'}}) - CRYSTAL_LEAGUE_I = League({'id': 29000012, 'name': 'Crystal League I', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/kSfTyNNVSvogX3dMvpFUTt72VW74w6vEsEFuuOV4osQ.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/kSfTyNNVSvogX3dMvpFUTt72VW74w6vEsEFuuOV4osQ.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/kSfTyNNVSvogX3dMvpFUTt72VW74w6vEsEFuuOV4osQ.png'}}) - MASTER_LEAGUE_III = League({'id': 29000013, 'name': 'Master League III', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/pSXfKvBKSgtvfOY3xKkgFaRQi0WcE28s3X35ywbIluY.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/pSXfKvBKSgtvfOY3xKkgFaRQi0WcE28s3X35ywbIluY.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/pSXfKvBKSgtvfOY3xKkgFaRQi0WcE28s3X35ywbIluY.png'}}) - MASTER_LEAGUE_II = League({'id': 29000014, 'name': 'Master League II', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/4wtS1stWZQ-1VJ5HaCuDPfdhTWjeZs_jPar_YPzK6Lg.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/4wtS1stWZQ-1VJ5HaCuDPfdhTWjeZs_jPar_YPzK6Lg.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/4wtS1stWZQ-1VJ5HaCuDPfdhTWjeZs_jPar_YPzK6Lg.png'}}) - MASTER_LEAGUE_I = League({'id': 29000015, 'name': 'Master League I', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/olUfFb1wscIH8hqECAdWbdB6jPm9R8zzEyHIzyBgRXc.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/olUfFb1wscIH8hqECAdWbdB6jPm9R8zzEyHIzyBgRXc.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/olUfFb1wscIH8hqECAdWbdB6jPm9R8zzEyHIzyBgRXc.png'}}) - CHAMPION_LEAGUE_III = League({'id': 29000016, 'name': 'Champion League III', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/JmmTbspV86xBigM7OP5_SjsEDPuE7oXjZC9aOy8xO3s.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/JmmTbspV86xBigM7OP5_SjsEDPuE7oXjZC9aOy8xO3s.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/JmmTbspV86xBigM7OP5_SjsEDPuE7oXjZC9aOy8xO3s.png'}}) - CHAMPION_LEAGUE_II = League({'id': 29000017, 'name': 'Champion League II', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/kLWSSyq7vJiRiCantiKCoFuSJOxief6R1ky6AyfB8q0.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/kLWSSyq7vJiRiCantiKCoFuSJOxief6R1ky6AyfB8q0.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/kLWSSyq7vJiRiCantiKCoFuSJOxief6R1ky6AyfB8q0.png'}}) - CHAMPION_LEAGUE_I = League({'id': 29000018, 'name': 'Champion League I', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/9v_04LHmd1LWq7IoY45dAdGhrBkrc2ZFMZVhe23PdCE.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/9v_04LHmd1LWq7IoY45dAdGhrBkrc2ZFMZVhe23PdCE.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/9v_04LHmd1LWq7IoY45dAdGhrBkrc2ZFMZVhe23PdCE.png'}}) - TITAN_LEAGUE_III = League({'id': 29000019, 'name': 'Titan League III', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/L-HrwYpFbDwWjdmhJQiZiTRa_zXPPOgUTdmbsaq4meo.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/L-HrwYpFbDwWjdmhJQiZiTRa_zXPPOgUTdmbsaq4meo.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/L-HrwYpFbDwWjdmhJQiZiTRa_zXPPOgUTdmbsaq4meo.png'}}) - TITAN_LEAGUE_II = League({'id': 29000020, 'name': 'Titan League II', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/llpWocHlOoFliwyaEx5Z6dmoZG4u4NmxwpF-Jg7su7Q.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/llpWocHlOoFliwyaEx5Z6dmoZG4u4NmxwpF-Jg7su7Q.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/llpWocHlOoFliwyaEx5Z6dmoZG4u4NmxwpF-Jg7su7Q.png'}}) - TITAN_LEAGUE_I = League({'id': 29000021, 'name': 'Titan League I', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/qVCZmeYH0lS7Gaa6YoB7LrNly7bfw7fV_d4Vp2CU-gk.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/qVCZmeYH0lS7Gaa6YoB7LrNly7bfw7fV_d4Vp2CU-gk.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/qVCZmeYH0lS7Gaa6YoB7LrNly7bfw7fV_d4Vp2CU-gk.png'}}) - LEGEND_LEAGUE = League({'id': 29000022, 'name': 'Legend League', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/leagues/72/R2zmhyqQ0_lKcDR5EyghXCxgyC9mm_mVMIjAbmGoZtw.png', - 'tiny': 'https://api-assets.clashofclans.com/leagues/36/R2zmhyqQ0_lKcDR5EyghXCxgyC9mm_mVMIjAbmGoZtw.png', - 'medium': 'https://api-assets.clashofclans.com/leagues/288/R2zmhyqQ0_lKcDR5EyghXCxgyC9mm_mVMIjAbmGoZtw.png'}}) + UNRANKED = League(...) + BRONZE_LEAGUE_III = League(...) + BRONZE_LEAGUE_II = League(...) + BRONZE_LEAGUE_I = League(...) + SILVER_LEAGUE_III = League(...) + SILVER_LEAGUE_II = League(...) + SILVER_LEAGUE_I = League(...) + GOLD_LEAGUE_III = League(...) + GOLD_LEAGUE_II = League(...) + GOLD_LEAGUE_I = League(...) + CRYSTAL_LEAGUE_III = League(...) + CRYSTAL_LEAGUE_II = League(...) + CRYSTAL_LEAGUE_I = League(...) + MASTER_LEAGUE_III = League(...) + MASTER_LEAGUE_II = League(...) + MASTER_LEAGUE_I = League(...) + CHAMPION_LEAGUE_III = League(...) + CHAMPION_LEAGUE_II = League(...) + CHAMPION_LEAGUE_I = League(...) + TITAN_LEAGUE_III = League(...) + TITAN_LEAGUE_II = League(...) + TITAN_LEAGUE_I = League(...) + LEGEND_LEAGUE = League(...) class CapitalLeagues(Enum): - UNRANKED = CapitalLeague({'id': 85000000, 'name': 'Unranked'}) - BRONZE_LEAGUE_III = CapitalLeague({'id': 85000001, 'name': 'Bronze League III'}) - BRONZE_LEAGUE_II = CapitalLeague({'id': 85000002, 'name': 'Bronze League II'}) - BRONZE_LEAGUE_I = CapitalLeague({'id': 85000003, 'name': 'Bronze League I'}) - SILVER_LEAGUE_III = CapitalLeague({'id': 85000004, 'name': 'Silver League III'}) - SILVER_LEAGUE_II = CapitalLeague({'id': 85000005, 'name': 'Silver League II'}) - SILVER_LEAGUE_I = CapitalLeague({'id': 85000006, 'name': 'Silver League I'}) - GOLD_LEAGUE_III = CapitalLeague({'id': 85000007, 'name': 'Gold League III'}) - GOLD_LEAGUE_II = CapitalLeague({'id': 85000008, 'name': 'Gold League II'}) - GOLD_LEAGUE_I = CapitalLeague({'id': 85000009, 'name': 'Gold League I'}) - CRYSTAL_LEAGUE_III = CapitalLeague({'id': 85000010, 'name': 'Crystal League III'}) - CRYSTAL_LEAGUE_II = CapitalLeague({'id': 85000011, 'name': 'Crystal League II'}) - CRYSTAL_LEAGUE_I = CapitalLeague({'id': 85000012, 'name': 'Crystal League I'}) - MASTER_LEAGUE_III = CapitalLeague({'id': 85000013, 'name': 'Master League III'}) - MASTER_LEAGUE_II = CapitalLeague({'id': 85000014, 'name': 'Master League II'}) - MASTER_LEAGUE_I = CapitalLeague({'id': 85000015, 'name': 'Master League I'}) - CHAMPION_LEAGUE_III = CapitalLeague({'id': 85000016, 'name': 'Champion League III'}) - CHAMPION_LEAGUE_II = CapitalLeague({'id': 85000017, 'name': 'Champion League II'}) - CHAMPION_LEAGUE_I = CapitalLeague({'id': 85000018, 'name': 'Champion League I'}) - TITAN_LEAGUE_III = CapitalLeague({'id': 85000019, 'name': 'Titan League III'}) - TITAN_LEAGUE_II = CapitalLeague({'id': 85000020, 'name': 'Titan League II'}) - TITAN_LEAGUE_I = CapitalLeague({'id': 85000021, 'name': 'Titan League I'}) - LEGEND_LEAGUE = CapitalLeague({'id': 85000022, 'name': 'Legend League'}) + UNRANKED = CapitalLeague(...) + BRONZE_LEAGUE_III = CapitalLeague(...) + BRONZE_LEAGUE_II = CapitalLeague(...) + BRONZE_LEAGUE_I = CapitalLeague(...) + SILVER_LEAGUE_III = CapitalLeague(...) + SILVER_LEAGUE_II = CapitalLeague(...) + SILVER_LEAGUE_I = CapitalLeague(...) + GOLD_LEAGUE_III = CapitalLeague(...) + GOLD_LEAGUE_II = CapitalLeague(...) + GOLD_LEAGUE_I = CapitalLeague(...) + CRYSTAL_LEAGUE_III = CapitalLeague(...) + CRYSTAL_LEAGUE_II = CapitalLeague(...) + CRYSTAL_LEAGUE_I = CapitalLeague(...) + MASTER_LEAGUE_III = CapitalLeague(...) + MASTER_LEAGUE_II = CapitalLeague(...) + MASTER_LEAGUE_I = CapitalLeague(...) + CHAMPION_LEAGUE_III = CapitalLeague(...) + CHAMPION_LEAGUE_II = CapitalLeague(...) + CHAMPION_LEAGUE_I = CapitalLeague(...) + TITAN_LEAGUE_III = CapitalLeague(...) + TITAN_LEAGUE_II = CapitalLeague(...) + TITAN_LEAGUE_I = CapitalLeague(...) + LEGEND_LEAGUE = CapitalLeague(...) class BuilderBaseLeagues(Enum): - WOOD_LEAGUE_V = BuilderBaseLeague({'id': 44000000, 'name': 'Wood League V'}) - WOOD_LEAGUE_IV = BuilderBaseLeague({'id': 44000001, 'name': 'Wood League IV'}) - WOOD_LEAGUE_III = BuilderBaseLeague({'id': 44000002, 'name': 'Wood League III'}) - WOOD_LEAGUE_II = BuilderBaseLeague({'id': 44000003, 'name': 'Wood League II'}) - WOOD_LEAGUE_I = BuilderBaseLeague({'id': 44000004, 'name': 'Wood League I'}) - CLAY_LEAGUE_V = BuilderBaseLeague({'id': 44000005, 'name': 'Clay League V'}) - CLAY_LEAGUE_IV = BuilderBaseLeague({'id': 44000006, 'name': 'Clay League IV'}) - CLAY_LEAGUE_III = BuilderBaseLeague({'id': 44000007, 'name': 'Clay League III'}) - CLAY_LEAGUE_II = BuilderBaseLeague({'id': 44000008, 'name': 'Clay League II'}) - CLAY_LEAGUE_I = BuilderBaseLeague({'id': 44000009, 'name': 'Clay League I'}) - STONE_LEAGUE_V = BuilderBaseLeague({'id': 44000010, 'name': 'Stone League V'}) - STONE_LEAGUE_IV = BuilderBaseLeague({'id': 44000011, 'name': 'Stone League IV'}) - STONE_LEAGUE_III = BuilderBaseLeague({'id': 44000012, 'name': 'Stone League III'}) - STONE_LEAGUE_II = BuilderBaseLeague({'id': 44000013, 'name': 'Stone League II'}) - STONE_LEAGUE_I = BuilderBaseLeague({'id': 44000014, 'name': 'Stone League I'}) - COPPER_LEAGUE_V = BuilderBaseLeague({'id': 44000015, 'name': 'Copper League V'}) - COPPER_LEAGUE_IV = BuilderBaseLeague({'id': 44000016, 'name': 'Copper League IV'}) - COPPER_LEAGUE_III = BuilderBaseLeague({'id': 44000017, 'name': 'Copper League III'}) - COPPER_LEAGUE_II = BuilderBaseLeague({'id': 44000018, 'name': 'Copper League II'}) - COPPER_LEAGUE_I = BuilderBaseLeague({'id': 44000019, 'name': 'Copper League I'}) - BRASS_LEAGUE_III = BuilderBaseLeague({'id': 44000020, 'name': 'Brass League III'}) - BRASS_LEAGUE_II = BuilderBaseLeague({'id': 44000021, 'name': 'Brass League II'}) - BRASS_LEAGUE_I = BuilderBaseLeague({'id': 44000022, 'name': 'Brass League I'}) - IRON_LEAGUE_III = BuilderBaseLeague({'id': 44000023, 'name': 'Iron League III'}) - IRON_LEAGUE_II = BuilderBaseLeague({'id': 44000024, 'name': 'Iron League II'}) - IRON_LEAGUE_I = BuilderBaseLeague({'id': 44000025, 'name': 'Iron League I'}) - STEEL_LEAGUE_III = BuilderBaseLeague({'id': 44000026, 'name': 'Steel League III'}) - STEEL_LEAGUE_II = BuilderBaseLeague({'id': 44000027, 'name': 'Steel League II'}) - STEEL_LEAGUE_I = BuilderBaseLeague({'id': 44000028, 'name': 'Steel League I'}) - TITANIUM_LEAGUE_III = BuilderBaseLeague({'id': 44000029, 'name': 'Titanium League III'}) - TITANIUM_LEAGUE_II = BuilderBaseLeague({'id': 44000030, 'name': 'Titanium League II'}) - TITANIUM_LEAGUE_I = BuilderBaseLeague({'id': 44000031, 'name': 'Titanium League I'}) - PLATINUM_LEAGUE_III = BuilderBaseLeague({'id': 44000032, 'name': 'Platinum League III'}) - PLATINUM_LEAGUE_II = BuilderBaseLeague({'id': 44000033, 'name': 'Platinum League II'}) - PLATINUM_LEAGUE_I = BuilderBaseLeague({'id': 44000034, 'name': 'Platinum League I'}) - EMERALD_LEAGUE_III = BuilderBaseLeague({'id': 44000035, 'name': 'Emerald League III'}) - EMERALD_LEAGUE_II = BuilderBaseLeague({'id': 44000036, 'name': 'Emerald League II'}) - EMERALD_LEAGUE_I = BuilderBaseLeague({'id': 44000037, 'name': 'Emerald League I'}) - RUBY_LEAGUE_III = BuilderBaseLeague({'id': 44000038, 'name': 'Ruby League III'}) - RUBY_LEAGUE_II = BuilderBaseLeague({'id': 44000039, 'name': 'Ruby League II'}) - RUBY_LEAGUE_I = BuilderBaseLeague({'id': 44000040, 'name': 'Ruby League I'}) - DIAMOND_LEAGUE = BuilderBaseLeague({'id': 44000041, 'name': 'Diamond League'}) + WOOD_LEAGUE_V = BuilderBaseLeague(...) + WOOD_LEAGUE_IV = BuilderBaseLeague(...) + WOOD_LEAGUE_III = BuilderBaseLeague(...) + WOOD_LEAGUE_II = BuilderBaseLeague(...) + WOOD_LEAGUE_I = BuilderBaseLeague(...) + CLAY_LEAGUE_V = BuilderBaseLeague(...) + CLAY_LEAGUE_IV = BuilderBaseLeague(...) + CLAY_LEAGUE_III = BuilderBaseLeague(...) + CLAY_LEAGUE_II = BuilderBaseLeague(...) + CLAY_LEAGUE_I = BuilderBaseLeague(...) + STONE_LEAGUE_V = BuilderBaseLeague(...) + STONE_LEAGUE_IV = BuilderBaseLeague(...) + STONE_LEAGUE_III = BuilderBaseLeague(...) + STONE_LEAGUE_II = BuilderBaseLeague(...) + STONE_LEAGUE_I = BuilderBaseLeague(...) + COPPER_LEAGUE_V = BuilderBaseLeague(...) + COPPER_LEAGUE_IV = BuilderBaseLeague(...) + COPPER_LEAGUE_III = BuilderBaseLeague(...) + COPPER_LEAGUE_II = BuilderBaseLeague(...) + COPPER_LEAGUE_I = BuilderBaseLeague(...) + BRASS_LEAGUE_III = BuilderBaseLeague(...) + BRASS_LEAGUE_II = BuilderBaseLeague(...) + BRASS_LEAGUE_I = BuilderBaseLeague(...) + IRON_LEAGUE_III = BuilderBaseLeague(...) + IRON_LEAGUE_II = BuilderBaseLeague(...) + IRON_LEAGUE_I = BuilderBaseLeague(...) + STEEL_LEAGUE_III = BuilderBaseLeague(...) + STEEL_LEAGUE_II = BuilderBaseLeague(...) + STEEL_LEAGUE_I = BuilderBaseLeague(...) + TITANIUM_LEAGUE_III = BuilderBaseLeague(...) + TITANIUM_LEAGUE_II = BuilderBaseLeague(...) + TITANIUM_LEAGUE_I = BuilderBaseLeague(...) + PLATINUM_LEAGUE_III = BuilderBaseLeague(...) + PLATINUM_LEAGUE_II = BuilderBaseLeague(...) + PLATINUM_LEAGUE_I = BuilderBaseLeague(...) + EMERALD_LEAGUE_III = BuilderBaseLeague(...) + EMERALD_LEAGUE_II = BuilderBaseLeague(...) + EMERALD_LEAGUE_I = BuilderBaseLeague(...) + RUBY_LEAGUE_III = BuilderBaseLeague(...) + RUBY_LEAGUE_II = BuilderBaseLeague(...) + RUBY_LEAGUE_I = BuilderBaseLeague(...) + DIAMOND_LEAGUE = BuilderBaseLeague(...) class WarLeagues(Enum): - UNRANKED = WarLeague({'id': 48000000, 'name': 'Unranked'}) - BRONZE_LEAGUE_III = WarLeague({'id': 48000001, 'name': 'Bronze League III'}) - BRONZE_LEAGUE_II = WarLeague({'id': 48000002, 'name': 'Bronze League II'}) - BRONZE_LEAGUE_I = WarLeague({'id': 48000003, 'name': 'Bronze League I'}) - SILVER_LEAGUE_III = WarLeague({'id': 48000004, 'name': 'Silver League III'}) - SILVER_LEAGUE_II = WarLeague({'id': 48000005, 'name': 'Silver League II'}) - SILVER_LEAGUE_I = WarLeague({'id': 48000006, 'name': 'Silver League I'}) - GOLD_LEAGUE_III = WarLeague({'id': 48000007, 'name': 'Gold League III'}) - GOLD_LEAGUE_II = WarLeague({'id': 48000008, 'name': 'Gold League II'}) - GOLD_LEAGUE_I = WarLeague({'id': 48000009, 'name': 'Gold League I'}) - CRYSTAL_LEAGUE_III = WarLeague({'id': 48000010, 'name': 'Crystal League III'}) - CRYSTAL_LEAGUE_II = WarLeague({'id': 48000011, 'name': 'Crystal League II'}) - CRYSTAL_LEAGUE_I = WarLeague({'id': 48000012, 'name': 'Crystal League I'}) - MASTER_LEAGUE_III = WarLeague({'id': 48000013, 'name': 'Master League III'}) - MASTER_LEAGUE_II = WarLeague({'id': 48000014, 'name': 'Master League II'}) - MASTER_LEAGUE_I = WarLeague({'id': 48000015, 'name': 'Master League I'}) - CHAMPION_LEAGUE_III = WarLeague({'id': 48000016, 'name': 'Champion League III'}) - CHAMPION_LEAGUE_II = WarLeague({'id': 48000017, 'name': 'Champion League II'}) - CHAMPION_LEAGUE_I = WarLeague({'id': 48000018, 'name': 'Champion League I'}) + UNRANKED = WarLeague(...) + BRONZE_LEAGUE_III = WarLeague(...) + BRONZE_LEAGUE_II = WarLeague(...) + BRONZE_LEAGUE_I = WarLeague(...) + SILVER_LEAGUE_III = WarLeague(...) + SILVER_LEAGUE_II = WarLeague(...) + SILVER_LEAGUE_I = WarLeague(...) + GOLD_LEAGUE_III = WarLeague(...) + GOLD_LEAGUE_II = WarLeague(...) + GOLD_LEAGUE_I = WarLeague(...) + CRYSTAL_LEAGUE_III = WarLeague(...) + CRYSTAL_LEAGUE_II = WarLeague(...) + CRYSTAL_LEAGUE_I = WarLeague(...) + MASTER_LEAGUE_III = WarLeague(...) + MASTER_LEAGUE_II = WarLeague(...) + MASTER_LEAGUE_I = WarLeague(...) + CHAMPION_LEAGUE_III = WarLeague(...) + CHAMPION_LEAGUE_II = WarLeague(...) + CHAMPION_LEAGUE_I = WarLeague(...) class Labels(Enum): - ACTIVE_DAILY = Label({'id': 57000009, 'name': 'Active Daily', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/mcWhk0ii7CyjiiHOidhRofrSulpVrxjDu24cQtGCQbE.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/mcWhk0ii7CyjiiHOidhRofrSulpVrxjDu24cQtGCQbE.png'}}) - ACTIVE_DONATOR = Label({'id': 57000008, 'name': 'Active Donator', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/MvL0LDt0yv9AI-Vevpu8yE5NAJUIV05Ofpsr4IfGRxQ.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/MvL0LDt0yv9AI-Vevpu8yE5NAJUIV05Ofpsr4IfGRxQ.png'}}) - AMATEUR_ATTACKER = Label({'id': 57000017, 'name': 'Amateur Attacker', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/8Q08M2dj1xz1Zx-sAre6QO14hOX2aiEvg-FaGGSX-7M.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/8Q08M2dj1xz1Zx-sAre6QO14hOX2aiEvg-FaGGSX-7M.png'}}) - BASE_DESIGNING = Label({'id': 56000006, 'name': 'Base Designing', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/LG966XuC6YoEJsPthcgtyJ8uS46LqYDAeiHJNQKR3YQ.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/LG966XuC6YoEJsPthcgtyJ8uS46LqYDAeiHJNQKR3YQ.png'}}) - BUILDER_BASE = Label({'id': 56000005, 'name': 'Builder Base', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/kyuaiAWdnD9v3ReYPS3_x6QP3V3e0nNAPyDroOIDFZQ.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/kyuaiAWdnD9v3ReYPS3_x6QP3V3e0nNAPyDroOIDFZQ.png'}}) - CLAN_CAPITAL = Label({'id': 56000016, 'name': 'Clan Capital', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/Odg2DaLfhMgQOci4QvHovdoYq4SDiBrocWS2Bjm8Ah8.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/Odg2DaLfhMgQOci4QvHovdoYq4SDiBrocWS2Bjm8Ah8.png'}}) - CLAN_GAMES = Label({'id': 56000004, 'name': 'Clan Games', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/7qU7tQGERiVITVG0CPFov1-BnFldu4bMN2gXML5bLIU.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/7qU7tQGERiVITVG0CPFov1-BnFldu4bMN2gXML5bLIU.png'}}) - CLAN_WAR_LEAGUE = Label({'id': 56000001, 'name': 'Clan War League', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/5w60_3bdtYUe9SM6rkxBRyV_8VvWw_jTlDS5ieU3IsI.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/5w60_3bdtYUe9SM6rkxBRyV_8VvWw_jTlDS5ieU3IsI.png'}}) - CLAN_WARS = Label({'id': 56000000, 'name': 'Clan Wars', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/lXaIuoTlfoNOY5fKcQGeT57apz1KFWkN9-raxqIlMbE.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/lXaIuoTlfoNOY5fKcQGeT57apz1KFWkN9-raxqIlMbE.png'}}) - COMPETITIVE = Label({'id': 56000014, 'name': 'Competitive', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/DhBE-1SSnrZQtsfjVHyNW-BTBWMc8Zoo34MNRCNiRsA.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/DhBE-1SSnrZQtsfjVHyNW-BTBWMc8Zoo34MNRCNiRsA.png'}}) - DONATIONS = Label({'id': 56000009, 'name': 'Donations', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/RauzS-02tv4vWm1edZ-q3gPQGWKGANLZ-85HCw_NVP0.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/RauzS-02tv4vWm1edZ-q3gPQGWKGANLZ-85HCw_NVP0.png'}}) - FARMING = Label({'id': 56000008, 'name': 'Farming', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/iLWz6AiaIHg_DqfG6s9vAxUJKb-RsPbSYl_S0ii9GAM.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/iLWz6AiaIHg_DqfG6s9vAxUJKb-RsPbSYl_S0ii9GAM.png'}}) - FRIENDLY = Label({'id': 56000010, 'name': 'Friendly', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/hM7SHnN0x7syFa-s6fE7LzeO5yWG2sfFpZUHuzgMwQg.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/hM7SHnN0x7syFa-s6fE7LzeO5yWG2sfFpZUHuzgMwQg.png'}}) - FRIENDLY_WARS = Label({'id': 56000003, 'name': 'Friendly Wars', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/6NxZMDn9ryFw8-FHJJimcEkKwnXZHMVUp_0cCVT6onY.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/6NxZMDn9ryFw8-FHJJimcEkKwnXZHMVUp_0cCVT6onY.png'}}) - HUNGRY_LEARNER = Label({'id': 57000010, 'name': 'Hungry Learner', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/jEvZf9PnfPaqYh2PMLBoJfB1BoBpomerqmsYWDYisKY.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/jEvZf9PnfPaqYh2PMLBoJfB1BoBpomerqmsYWDYisKY.png'}}) - INTERNATIONAL = Label({'id': 56000007, 'name': 'International', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/zyaTKuJXrsPiU3DvjgdqaSA6B1qvcQ0cjD6ktRah4xs.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/zyaTKuJXrsPiU3DvjgdqaSA6B1qvcQ0cjD6ktRah4xs.png'}}) - NEWBIE = Label({'id': 57000016, 'name': 'Newbie', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/PcgplBTQo2W_PXYqMi0i6g6nrNMjzCM8Ipd_umSnuHw.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/PcgplBTQo2W_PXYqMi0i6g6nrNMjzCM8Ipd_umSnuHw.png'}}) - NEWBIE_FRIENDLY = Label({'id': 56000015, 'name': 'Newbie Friendly', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/3oOuYkPdkjWVrBUITgByz9Ur0nmJ4GsERXc-1NUrjKg.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/3oOuYkPdkjWVrBUITgByz9Ur0nmJ4GsERXc-1NUrjKg.png'}}) - RELAXED = Label({'id': 56000013, 'name': 'Relaxed', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/Kv1MZQfd5A7DLwf1Zw3tOaUiwQHGMwmRpjZqOalu_hI.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/Kv1MZQfd5A7DLwf1Zw3tOaUiwQHGMwmRpjZqOalu_hI.png'}}) - TROPHY_PUSHING = Label({'id': 56000002, 'name': 'Trophy Pushing', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/hNtigjuwJjs6PWhVtVt5HvJgAp4ZOMO8e2nyjHX29sA.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/hNtigjuwJjs6PWhVtVt5HvJgAp4ZOMO8e2nyjHX29sA.png'}}) - TALKATIVE = Label({'id': 56000011, 'name': 'Talkative', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/T1c8AYalTn_RruVkY0mRPwNYF5n802thTBEEnOtNTMw.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/T1c8AYalTn_RruVkY0mRPwNYF5n802thTBEEnOtNTMw.png'}}) - TEACHER = Label({'id': 57000013, 'name': 'Teacher', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/sy5nJmT4BFjS4iT4_iILE02rfrO8VjgpGKFE0rLmot4.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/sy5nJmT4BFjS4iT4_iILE02rfrO8VjgpGKFE0rLmot4.png'}}) - UNDERDOG = Label({'id': 56000012, 'name': 'Underdog', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/ImSgCg88EEl80mwzFZMIiJTqa33bJmJPcl4v2eT6O04.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/ImSgCg88EEl80mwzFZMIiJTqa33bJmJPcl4v2eT6O04.png'}}) - VETERAN = Label({'id': 57000015, 'name': 'Veteran', - 'iconUrls': {'small': 'https://api-assets.clashofclans.com/labels/64/u-VKK5y0hj0U8B1xdawjxNcXciv-fwMK3VqEBWCn1oM.png', - 'medium': 'https://api-assets.clashofclans.com/labels/128/u-VKK5y0hj0U8B1xdawjxNcXciv-fwMK3VqEBWCn1oM.png'}}) + ACTIVE_DAILY = Label(...) + ACTIVE_DONATOR = Label(...) + AMATEUR_ATTACKER = Label(...) + BASE_DESIGNING = Label(...) + BUILDER_BASE = Label(...) + CLAN_CAPITAL = Label(...) + CLAN_GAMES = Label(...) + CLAN_WAR_LEAGUE = Label(...) + CLAN_WARS = Label(...) + COMPETITIVE = Label(...) + DONATIONS = Label(...) + FARMING = Label(...) + FRIENDLY = Label(...) + FRIENDLY_WARS = Label(...) + HUNGRY_LEARNER = Label(...) + INTERNATIONAL = Label(...) + NEWBIE = Label(...) + NEWBIE_FRIENDLY = Label(...) + RELAXED = Label(...) + TROPHY_PUSHING = Label(...) + TALKATIVE = Label(...) + TEACHER = Label(...) + UNDERDOG = Label(...) + VETERAN = Label(...) class Languages(Enum): diff --git a/pyclasher/models/Labels.pyi b/pyclasher/models/Labels.pyi index b6c8043..6366c0d 100644 --- a/pyclasher/models/Labels.pyi +++ b/pyclasher/models/Labels.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from pyclasher.models.BaseModels import BaseModel, IterBaseModel, IconUrls @@ -47,5 +49,8 @@ class LabelList(IterBaseModel): def __getitem__(self, item: int) -> Label: ... + def __iter__(self) -> Iterator[Label]: + ... + def __next__(self) -> Label: ... diff --git a/pyclasher/models/Leagues.pyi b/pyclasher/models/Leagues.pyi index a85bee4..fd77907 100644 --- a/pyclasher/models/Leagues.pyi +++ b/pyclasher/models/Leagues.pyi @@ -1,6 +1,7 @@ """ models concerning the leagues """ +from typing import Iterator from .BaseModels import BaseModel, IconUrls, IterBaseModel, BaseLeague @@ -54,6 +55,9 @@ class LeagueList(IterBaseModel): def __getitem__(self, item: int | str) -> League: ... + def __iter__(self) -> Iterator[League]: + ... + def __next__(self) -> League: ... @@ -70,6 +74,9 @@ class BuilderBaseLeagueList(IterBaseModel): def __getitem__(self, item: int | str) -> BuilderBaseLeague: ... + def __iter__(self) -> Iterator[BuilderBaseLeague]: + ... + def __next__(self) -> BuilderBaseLeague: ... @@ -86,6 +93,9 @@ class CapitalLeagueList(IterBaseModel): def __getitem__(self, item: int | str) -> CapitalLeague: ... + def __iter__(self) -> Iterator[CapitalLeague]: + ... + def __next__(self) -> CapitalLeague: ... @@ -102,6 +112,9 @@ class WarLeagueList(IterBaseModel): def __getitem__(self, item: int) -> WarLeague: ... + def __iter__(self) -> Iterator[WarLeague]: + ... + def __next__(self) -> WarLeague: ... @@ -134,5 +147,8 @@ class LeagueSeasonList(IterBaseModel): def __getitem__(self, item: int | str) -> LeagueSeason: ... + def __iter__(self) -> Iterator[LeagueSeason]: + ... + def __next__(self) -> LeagueSeason: ... diff --git a/pyclasher/models/Location.pyi b/pyclasher/models/Location.pyi index e783aba..eab5504 100644 --- a/pyclasher/models/Location.pyi +++ b/pyclasher/models/Location.pyi @@ -1,6 +1,7 @@ """ models concerning the location """ +from typing import Iterator from .BaseModels import IterBaseModel, BaseModel from ..Exceptions import Missing @@ -64,5 +65,8 @@ class LocationList(IterBaseModel): def __getitem__(self, item: int | str) -> Location: ... + def __iter__(self) -> Iterator[Location]: + ... + def __next__(self) -> Location: ... diff --git a/pyclasher/models/Player.pyi b/pyclasher/models/Player.pyi index bfeac2d..ac084b0 100644 --- a/pyclasher/models/Player.pyi +++ b/pyclasher/models/Player.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import BaseModel, IterBaseModel, BaseClan from .Enums import ClanRole, WarPreference, Village from .Labels import LabelList @@ -121,6 +123,9 @@ class PlayerItemLevelList(IterBaseModel): def __getitem__(self, item: int | str) -> PlayerItemLevel: ... + def __iter__(self) -> Iterator[PlayerItemLevel]: + ... + def __next__(self) -> PlayerItemLevel: ... @@ -158,10 +163,13 @@ class PlayerAchievementProgress(BaseModel): class PlayerAchievementProgressList(IterBaseModel): _iter_rtype = PlayerAchievementProgress - def __getitem__(self, item: int | str) -> _iter_rtype: + def __getitem__(self, item: int | str) -> PlayerAchievementProgress: + ... + + def __iter__(self) -> Iterator[PlayerAchievementProgress]: ... - def __next__(self) -> _iter_rtype: + def __next__(self) -> PlayerAchievementProgress: ... diff --git a/pyclasher/models/PlayerBuilderBaseRankingList.py b/pyclasher/models/PlayerBuilderBaseRankingList.py index 44c127a..6fa3256 100644 --- a/pyclasher/models/PlayerBuilderBaseRankingList.py +++ b/pyclasher/models/PlayerBuilderBaseRankingList.py @@ -12,10 +12,6 @@ def builder_base_league(self): def clan(self): return PlayerRankingClan(self._get_data('clan')) - @property - def versus_trophies(self): - return self._get_data('versusTrophies') - @property def versus_battle_wins(self): return self._get_data('versusBattleWins') diff --git a/pyclasher/models/PlayerBuilderBaseRankingList.pyi b/pyclasher/models/PlayerBuilderBaseRankingList.pyi index b747928..b33ef4a 100644 --- a/pyclasher/models/PlayerBuilderBaseRankingList.pyi +++ b/pyclasher/models/PlayerBuilderBaseRankingList.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import BaseModel, IterBaseModel from .Leagues import BuilderBaseLeague from .PlayerRankingClan import PlayerRankingClan @@ -12,10 +14,6 @@ class PlayerBuilderBaseRanking(BaseModel): def clan(self) -> PlayerRankingClan: ... - @property - def versus_trophies(self) -> int: - ... - @property def versus_battle_wins(self) -> int: ... @@ -51,5 +49,8 @@ class PlayerBuilderBaseRankingList(IterBaseModel): def __getitem__(self, item: int | str) -> PlayerBuilderBaseRanking: ... + def __iter__(self) -> Iterator[PlayerBuilderBaseRanking]: + ... + def __next__(self) -> PlayerBuilderBaseRanking: ... diff --git a/pyclasher/models/PlayerHouse.pyi b/pyclasher/models/PlayerHouse.pyi index 25bccdb..319b0d3 100644 --- a/pyclasher/models/PlayerHouse.pyi +++ b/pyclasher/models/PlayerHouse.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import BaseModel, IterBaseModel from .Enums import PlayerHouseElementType @@ -18,6 +20,9 @@ class PlayerHouseElementList(IterBaseModel): def __getitem__(self, item: int | str) -> PlayerHouseElement: ... + def __iter__(self) -> Iterator[PlayerHouseElement]: + ... + def __next__(self) -> PlayerHouseElement: ... diff --git a/pyclasher/models/PlayerRankingList.pyi b/pyclasher/models/PlayerRankingList.pyi index 449738d..c7dc5d4 100644 --- a/pyclasher/models/PlayerRankingList.pyi +++ b/pyclasher/models/PlayerRankingList.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import BaseModel, IterBaseModel from .Leagues import League from .PlayerRankingClan import PlayerRankingClan @@ -51,5 +53,8 @@ class PlayerRankingList(IterBaseModel): def __getitem__(self, item: int | str) -> PlayerRanking: ... + def __iter__(self) -> Iterator[PlayerRanking]: + ... + def __next__(self) -> PlayerRanking: ... diff --git a/pyclasher/models/WarClan.pyi b/pyclasher/models/WarClan.pyi index 865a50b..b0a085a 100644 --- a/pyclasher/models/WarClan.pyi +++ b/pyclasher/models/WarClan.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .BaseModels import BaseModel, IterBaseModel, BaseClanMember, BaseClan @@ -33,6 +35,9 @@ class ClanWarAttackList(IterBaseModel): def __getitem__(self, item: int) -> ClanWarAttack: ... + def __iter__(self) -> Iterator[ClanWarAttack]: + ... + def __next__(self) -> ClanWarAttack: ... @@ -63,6 +68,9 @@ class ClanWarMemberList(IterBaseModel): def __getitem__(self, item: int) -> ClanWarMember: ... + def __iter__(self) -> Iterator[ClanWarMember]: + ... + def __next__(self) -> ClanWarMember: ... diff --git a/pyclasher/models/misc/WarStatus.pyi b/pyclasher/models/misc/WarStatus.pyi index b786f44..bc6b265 100644 --- a/pyclasher/models/misc/WarStatus.pyi +++ b/pyclasher/models/misc/WarStatus.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from ..BaseModels import BaseModel, Time, IterBaseModel from ..Enums import ClanWarState @@ -68,5 +70,8 @@ class WarStatusList(IterBaseModel): def __getitem__(self, item: int | str) -> WarStatus: ... + def __iter__(self) -> Iterator[WarStatus]: + ... + def __next__(self) -> WarStatus: ... diff --git a/pyclasher/requests/BuilderBaseLeagues.pyi b/pyclasher/requests/BuilderBaseLeagues.pyi index f10f043..a37cfbc 100644 --- a/pyclasher/requests/BuilderBaseLeagues.pyi +++ b/pyclasher/requests/BuilderBaseLeagues.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import BuilderBaseLeagueList, BuilderBaseLeague @@ -18,5 +20,8 @@ class BuilderBaseLeaguesRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/CapitalLeagueSeasons.pyi b/pyclasher/requests/CapitalLeagueSeasons.pyi index 7538ccc..241aae8 100644 --- a/pyclasher/requests/CapitalLeagueSeasons.pyi +++ b/pyclasher/requests/CapitalLeagueSeasons.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import CapitalLeagueList, CapitalLeague @@ -18,5 +20,8 @@ class CapitalLeaguesRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/ClanBuilderBaseRankings.pyi b/pyclasher/requests/ClanBuilderBaseRankings.pyi index 1a32275..df8b144 100644 --- a/pyclasher/requests/ClanBuilderBaseRankings.pyi +++ b/pyclasher/requests/ClanBuilderBaseRankings.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import ClanBuilderBaseRanking, ClanBuilderBaseRankingList, Location @@ -17,5 +19,8 @@ class ClanBuilderBaseRankingsRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/ClanCapitalRaidSeasons.pyi b/pyclasher/requests/ClanCapitalRaidSeasons.pyi index c73c9a7..b928b6f 100644 --- a/pyclasher/requests/ClanCapitalRaidSeasons.pyi +++ b/pyclasher/requests/ClanCapitalRaidSeasons.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import ClanCapitalRaidSeasons, ClanCapitalRaidSeason @@ -17,5 +19,8 @@ class ClanCapitalRaidSeasonsRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/ClanLabels.pyi b/pyclasher/requests/ClanLabels.pyi index bb2084b..54d4c1a 100644 --- a/pyclasher/requests/ClanLabels.pyi +++ b/pyclasher/requests/ClanLabels.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import LabelList, Label @@ -13,5 +15,8 @@ class ClanLabelsRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/ClanMembers.pyi b/pyclasher/requests/ClanMembers.pyi index 14345ec..bfa19e2 100644 --- a/pyclasher/requests/ClanMembers.pyi +++ b/pyclasher/requests/ClanMembers.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import ClanMember, ClanMemberList @@ -17,5 +19,8 @@ class ClanMembersRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/ClanRankings.pyi b/pyclasher/requests/ClanRankings.pyi index db68dd8..8cd6301 100644 --- a/pyclasher/requests/ClanRankings.pyi +++ b/pyclasher/requests/ClanRankings.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import ClanRanking, ClanRankingList, Location @@ -17,5 +19,8 @@ class ClanRankingsRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/ClanSearch.pyi b/pyclasher/requests/ClanSearch.pyi index 4a87c8c..82ea086 100644 --- a/pyclasher/requests/ClanSearch.pyi +++ b/pyclasher/requests/ClanSearch.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import ClanList, WarFrequency, Locations, Labels, Clan @@ -20,5 +22,8 @@ class ClanSearchRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/ClanWarLog.pyi b/pyclasher/requests/ClanWarLog.pyi index f0c693e..91ebe5e 100644 --- a/pyclasher/requests/ClanWarLog.pyi +++ b/pyclasher/requests/ClanWarLog.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import ClanWarLog, ClanWarLogEntry @@ -18,5 +20,8 @@ class ClanWarLogRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/LeagueSeason.pyi b/pyclasher/requests/LeagueSeason.pyi index d275b0e..758bd1b 100644 --- a/pyclasher/requests/LeagueSeason.pyi +++ b/pyclasher/requests/LeagueSeason.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import PlayerRanking, PlayerRankingList, Leagues, Season @@ -20,5 +22,8 @@ class LeagueSeasonRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/Leagues.pyi b/pyclasher/requests/Leagues.pyi index dd87729..0ed3339 100644 --- a/pyclasher/requests/Leagues.pyi +++ b/pyclasher/requests/Leagues.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import LeagueList, League @@ -18,5 +20,8 @@ class LeaguesRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/Locations.pyi b/pyclasher/requests/Locations.pyi index 60ca0b5..a78731d 100644 --- a/pyclasher/requests/Locations.pyi +++ b/pyclasher/requests/Locations.pyi @@ -1,4 +1,4 @@ -from typing import Self +from typing import Self, Iterator from .RequestModels import IterRequestModel from ..models import Location, LocationList @@ -20,5 +20,8 @@ class LocationsRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/PlayerBuilderBaseRankings.pyi b/pyclasher/requests/PlayerBuilderBaseRankings.pyi index 0519bd4..d718e35 100644 --- a/pyclasher/requests/PlayerBuilderBaseRankings.pyi +++ b/pyclasher/requests/PlayerBuilderBaseRankings.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import PlayerBuilderBaseRanking, PlayerBuilderBaseRankingList, Location @@ -20,5 +22,8 @@ class PlayerBuilderBaseRankingsRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/PlayerLabels.pyi b/pyclasher/requests/PlayerLabels.pyi index 6818708..f334de8 100644 --- a/pyclasher/requests/PlayerLabels.pyi +++ b/pyclasher/requests/PlayerLabels.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import LabelList, Label @@ -16,5 +18,8 @@ class PlayerLabelsRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/PlayerRankings.pyi b/pyclasher/requests/PlayerRankings.pyi index a864014..d19361d 100644 --- a/pyclasher/requests/PlayerRankings.pyi +++ b/pyclasher/requests/PlayerRankings.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import PlayerRanking, PlayerRankingList, Location @@ -20,5 +22,8 @@ class PlayerRankingsRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ... diff --git a/pyclasher/requests/RequestModels.pyi b/pyclasher/requests/RequestModels.pyi index 032b274..8afb50c 100644 --- a/pyclasher/requests/RequestModels.pyi +++ b/pyclasher/requests/RequestModels.pyi @@ -1,4 +1,4 @@ -from typing import Any, Self, Coroutine +from typing import Any, Self, Coroutine, Iterator from ..Exceptions import MISSING, Missing from ..client import PyClasherClient, RequestMethods @@ -82,8 +82,8 @@ class IterRequestModel(RequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... - def __iter__(self) -> Self: - self._iter = iter(self._get_data['items']) + def __iter__(self) -> Iterator[_iter_rtype]: + self._iter = iter(self._get_data('items')) ... def __next__(self) -> _iter_rtype: diff --git a/pyclasher/requests/WarLeagues.pyi b/pyclasher/requests/WarLeagues.pyi index 68ae789..74b4bae 100644 --- a/pyclasher/requests/WarLeagues.pyi +++ b/pyclasher/requests/WarLeagues.pyi @@ -1,3 +1,5 @@ +from typing import Iterator + from .RequestModels import IterRequestModel from ..models import WarLeagueList, WarLeague @@ -18,5 +20,8 @@ class WarLeaguesRequest(IterRequestModel): def __getitem__(self, item: int) -> _iter_rtype: ... + def __iter__(self) -> Iterator[_iter_rtype]: + ... + def __next__(self) -> _iter_rtype: ...