Skip to content

Comments

Create real-ish usernames#6

Open
ctrl-i wants to merge 4 commits intoschemen:mainfrom
ctrl-i:create_real-ish_usernames
Open

Create real-ish usernames#6
ctrl-i wants to merge 4 commits intoschemen:mainfrom
ctrl-i:create_real-ish_usernames

Conversation

@ctrl-i
Copy link
Contributor

@ctrl-i ctrl-i commented Jul 20, 2023

This PR allows the user to supply a template to the script which is used to create a more real username.

It uses Faker to generate a real-ish name using a simple structure:

{prefix:f:en}{first_name:f:en}{last_name:en}-{last_name:en}_{suffix:f:en}{number:1:500}

If the TEMPLATE variable is not provided then the existing mailcow username generator is used.

ctrl-i added 4 commits July 20, 2023 13:40
Include TEMPLATE instructions
Faker is required to generate a new fake identity.

Unidecode is required to convert accented characters into plain characters.
Use Faker to generate more lifelike usernames for the email address.
Added:
Faker==19.1.0
Unidecode==1.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant