rebrickable.cli.utils module¶
-
class
rebrickable.cli.utils.
EnumType
(enum, casesensitive=True)¶ Bases:
click.types.Choice
-
convert
(value, param, state)¶ Converts the value. This is not invoked for values that are None (the missing value).
-
get_metavar
(param)¶ Returns the metavar default for this param if it provides one.
-
-
exception
rebrickable.cli.utils.
NotLoggedIn
¶ Bases:
Exception
-
exception
rebrickable.cli.utils.
Unregistered
¶ Bases:
Exception
-
rebrickable.cli.utils.
get_api_client
()¶
-
rebrickable.cli.utils.
get_api_key
()¶
-
rebrickable.cli.utils.
get_data
(data_path='/home/runner/.config/pyrebrickable/config.json')¶
-
rebrickable.cli.utils.
get_user_token
(username=None)¶
-
rebrickable.cli.utils.
write_data
(data, data_path='/home/runner/.config/pyrebrickable/config.json')¶