This repository has been archived on 2023-06-09. You can view files and clone it, but cannot push or open issues or pull requests.
jarvis-server/jarvis/utils/fake_emails_generator.py

16 lines
386 B
Python

import random
import string
def get_random_domain():
domains = ["hotmail.com", "gmail.com", "aol.com", "mail.com", "mail.kz", "yahoo.com"]
return random.choice(domains)
def get_random_name(length):
return ''.join(random.choice(string.ascii_lowercase[:12]) for i in range(length))
def generate_random_email():
return get_random_name(12) + '@' + get_random_domain()