users_api.management.commands package
Submodules
users_api.management.commands.dataset_groups module
- class users_api.management.commands.dataset_groups.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
BaseCommand
,DatasetBaseMixin
- handle(*args, **options)[source]
The actual logic of the command. Subclasses must implement this method.
- help = 'Check an existing dataset access groups'
users_api.management.commands.dataset_mixin module
- class users_api.management.commands.dataset_mixin.DatasetBaseMixin(gpf_instance=None)[source]
Bases:
DatasetHelpers
Mixin for dataset management.
users_api.management.commands.datasets_export module
users_api.management.commands.datasets_restore module
- class users_api.management.commands.datasets_restore.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
BaseCommand
- handle(*args, **options)[source]
The actual logic of the command. Subclasses must implement this method.
- help = 'Add rights to datasets from an input CSV file'
users_api.management.commands.datasets_show module
users_api.management.commands.export_base module
users_api.management.commands.groups_cleanup module
users_api.management.commands.import_base module
users_api.management.commands.unlock_user module
- class users_api.management.commands.unlock_user.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
ImportUsersBase
,BaseCommand
- handle(*args, **options)[source]
The actual logic of the command. Subclasses must implement this method.
- help = "Remove a lockout on a user's account."
users_api.management.commands.user_create module
users_api.management.commands.user_set_name module
- class users_api.management.commands.user_set_name.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
BaseCommand
- handle(*args, **options)[source]
The actual logic of the command. Subclasses must implement this method.
- help = 'Change the name of the user with the given email'
users_api.management.commands.user_setpasswd module
- class users_api.management.commands.user_setpasswd.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
BaseCommand
- handle(*args, **options)[source]
The actual logic of the command. Subclasses must implement this method.
- help = 'Change the password of a user with the given email'
users_api.management.commands.users_add module
- class users_api.management.commands.users_add.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
ImportUsersBase
,BaseCommand
- handle(*args, **options)[source]
The actual logic of the command. Subclasses must implement this method.
- help = 'Add users from csv. Required column names for the csv file - Email.Optional column names - Groups, Name, Password'
users_api.management.commands.users_export module
- class users_api.management.commands.users_export.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
BaseCommand
,ExportUsersBase
Export users command.
- add_arguments(parser: CommandParser) None [source]
Entry point for subclassed commands to add custom arguments.
- handle(*args: Any, **options: Any) None [source]
The actual logic of the command. Subclasses must implement this method.
- help = 'Export all users to stdout/csv file.'
users_api.management.commands.users_group_add module
users_api.management.commands.users_group_remove module
users_api.management.commands.users_remove module
users_api.management.commands.users_restore module
- class users_api.management.commands.users_restore.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
ImportUsersBase
,BaseCommand
Restore users command.
- add_arguments(parser: CommandParser) None [source]
Entry point for subclassed commands to add custom arguments.
- handle(*args: Any, **options: Any) None [source]
The actual logic of the command. Subclasses must implement this method.
- help = 'Delete all users and adds new ones from csv. Required column names for the csv file - Email. Optional column names - Groups, Name, Password'
users_api.management.commands.users_show module
- class users_api.management.commands.users_show.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
BaseCommand
,ExportUsersBase
- handle(*args, **options)[source]
The actual logic of the command. Subclasses must implement this method.
- help = 'Show all information about user'