github.com/quickfeed/quickfeed@v0.0.0-20240507093252-ed8ca812a09c/cmd/anonymize/readme.md (about)

     1  # Database Tool
     2  
     3  ## Installation
     4  
     5  ```bash
     6  % pip install -r requirements.txt
     7  ```
     8  
     9  ## Example usage
    10  
    11  ```bash
    12  # Shows available options
    13  % python3 main.py --help
    14  # Anonymizes the database
    15  % python3 main.py --database /path/to/database/file.db --anonymize true
    16  # Anonymizes the database, but excludes anonymization of the user with login `superuser`
    17  % python3 main.py --database /path/to/database/file.db --anonymize true --exclude superuser
    18  # Sets the admin status of the user with login `superuser` to true
    19  % python3 main.py --database /path/to/database/file.db --admin superuser
    20  # Prints the ID of the user with login `superuser`
    21  % python3 main.py --database /path/to/database/file.db --user-id superuser
    22  # Sets the remote ID of the user with ID 1 to `123456789`
    23  % python3 main.py --database /path/to/database/file.db --remote 1 123456789
    24  ```