addon_helpers
create_short_name(name)
create a shortname from the full name when a shortname is not present
Source code in server/kitsu/addon_helpers.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
remove_accents(input_str)
swap accented characters for a-z equivilants ž => z
Source code in server/kitsu/addon_helpers.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
required_values(entity, keys, allow_empty_value=False)
check the entity dict has the required keys and a value for each
Source code in server/kitsu/addon_helpers.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | |
to_entity_name(name)
convert names so they will pass AYON Entity name validation @see ayon_server.types.NAME_REGEX r"^a-zA-Z0-9_?$"
Source code in server/kitsu/addon_helpers.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | |
to_username(first_name, last_name=None)
converts usernames from kitsu - converts accents
Source code in server/kitsu/addon_helpers.py
51 52 53 54 55 56 57 58 59 60 61 62 | |