kittycad.models.account_provider

Classes

AccountProvider(value)

An account provider.

class kittycad.models.account_provider.AccountProvider(value)[source][source]

An account provider.

DISCORD = 'discord'[source]

# The Google account provider.

GITHUB = 'github'[source]
GOOGLE = 'google'[source]

# The GitHub account provider.

__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.account_provider', '__doc__': 'An account provider.', '__str__': <function AccountProvider.__str__>, '__dict__': <attribute '__dict__' of 'AccountProvider' objects>, '__weakref__': <attribute '__weakref__' of 'AccountProvider' objects>, '_member_names_': ['DISCORD', 'GOOGLE', 'GITHUB'], '_member_map_': {'DISCORD': <AccountProvider.DISCORD: 'discord'>, 'GOOGLE': <AccountProvider.GOOGLE: 'google'>, 'GITHUB': <AccountProvider.GITHUB: 'github'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'discord': <AccountProvider.DISCORD: 'discord'>, 'google': <AccountProvider.GOOGLE: 'google'>, 'github': <AccountProvider.GITHUB: 'github'>}, 'DISCORD': <AccountProvider.DISCORD: 'discord'>, 'GOOGLE': <AccountProvider.GOOGLE: 'google'>, 'GITHUB': <AccountProvider.GITHUB: 'github'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.account_provider'[source]
_generate_next_value_(start, count, last_values)[source]

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'DISCORD': AccountProvider.DISCORD, 'GITHUB': AccountProvider.GITHUB, 'GOOGLE': AccountProvider.GOOGLE}[source]
_member_names_ = ['DISCORD', 'GOOGLE', 'GITHUB'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'discord': AccountProvider.DISCORD, 'github': AccountProvider.GITHUB, 'google': AccountProvider.GOOGLE}[source]