You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
""" Contains methods for accessing the API Endpoints """
2
2
3
-
{%macrosnake_to_pascal_case(name) %}
4
-
{%- forpartinname.split('_') -%}
5
-
{{ part | capitalize }}
6
-
{%- endfor -%}
7
-
{%endmacro%}
8
-
9
-
{%macroto_snake_name(name) %}
10
-
{%setlast_snakize = {'at': 0} %}
11
-
{%- forpartinname -%}
12
-
{{ '_' if not loop.first and part in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' and (loop.index - last_snakize.at) > 1 and not last_snakize.update({'at': loop.index}) }}{{ part | lower }}
13
-
{%- endfor -%}
14
-
{%endmacro%}
15
-
16
3
import types
17
4
{%forendpointinendpoints%}
18
-
from {{ package_name }}.api.{{ tag }} import {{ to_snake_name(endpoint.name) }}
5
+
from {{ package_name }}.api.{{ tag }} import {{ utils.snake_case(endpoint.name) }}
0 commit comments