Skip to main content

Omkar Account Generator provides a convenient solution for creating accounts. It is particularly useful for automated tasks that require account creation in selenium.

Getting Started

To get started with Omkar Account Generator install omkar-account-generator using the following command:

python -m pip install omkar-account-generator

Usage

  1. generate_account(gender, country)

Generates an account

Parameters - gender (optional): The gender of the user account to generate. Value can be Gender.MEN, Gender.WOMEN, Gender.BOTH. Default’s to Gender.BOTH - country (optional): The country of the user account to generate. It accepts a value from the Country enum. The default value is None, which means the country can be any country.

Example

from omkar_account_generator import AccountGenerator, Gender, Country

account = AccountGenerator.generate_account(gender = Gender.WOMEN, country=Country.IN)
print(account)

Output

{
    "name": "Vibha Almeida",
    "username": "vibhaalmeida@examplecom",
    "email": "vibha.almeida@gmail.com",
    "password": "letter16",
    "profile_picture": "https://randomuser.me/api/portraits/women/81.jpg",
    "phone": "9217029568",
    "address": "7492, Ratha Bheedi, Thanjavur, Tripura, India",
    "gender": "female",
    "country": "IN",
    "dob": {
        "date": "1992-07-29T22:51:53.073Z",
        "age": 30
    }
}
  1. generate_accounts(n, gender, country)

Generates multiple user accounts.

Parameters

  • n: The number of user accounts to generate.

  • gender (optional): The gender of the user account to generate. Value can be Gender.MEN, Gender.WOMEN, Gender.BOTH. Default’s to Gender.BOTH

  • country (optional): The country of the user account to generate. It accepts a value from the Country enum. The default value is None, which means the country can be any country.

Example

from omkar_account_generator import AccountGenerator, Gender, Country

accounts = AccountGenerator.generate_accounts(3, gender = Gender.WOMEN, country=Country.IN)
print(accounts)

Output

[
    {
        "name": "Sahana Nayak",
        "username": "sahananayak@examplecom",
        "email": "sahana.nayak@gmail.com",
        "password": "vietnam6",
        "profile_picture": "https://randomuser.me/api/portraits/women/35.jpg",
        "phone": "8679648937",
        "address": "424, Naiduthota, Khammam, Uttar Pradesh, India",
        "gender": "female",
        "country": "IN",
        "dob": {
            "date": "1997-10-03T07:38:31.090Z",
            "age": 25
        }
    },
    {
        "name": "Madhura Shroff",
        "username": "madhurashroff@examplecom",
        "email": "madhura.shroff@gmail.com",
        "password": "bettina1",
        "profile_picture": "https://randomuser.me/api/portraits/women/87.jpg",
        "phone": "8738692847",
        "address": "5106, Maharanipeta, Mehsana, Maharashtra, India",
        "gender": "female",
        "country": "IN",
        "dob": {
            "date": "1989-08-15T05:10:47.967Z",
            "age": 33
        }
    },
    {
        "name": "Hetal Kavser",
        "username": "hetalkavser@examplecom",
        "email": "hetal.kavser@gmail.com",
        "password": "django27",
        "profile_picture": "https://randomuser.me/api/portraits/women/94.jpg",
        "phone": "8033453360",
        "address": "5222, Colaba Causeway, Buxar, Daman and Diu, India",
        "gender": "female",
        "country": "IN",
        "dob": {
            "date": "1961-05-29T07:35:50.196Z",
            "age": 62
        }
    }
]

If my code helped you in creating accounts, please take a moment to star the repository. Your act of starring will help developers in discovering our Repository and contribute towards helping fellow developers in their automation tasks. Dhanyawad 🙏! Vande Mataram!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omkar_account_generator-1.0.6.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file omkar_account_generator-1.0.6.tar.gz.

File metadata

  • Download URL: omkar_account_generator-1.0.6.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for omkar_account_generator-1.0.6.tar.gz
Algorithm Hash digest
SHA256 6af448d1e8bc450c55f99b53268aa5b896d815f498d14732afd3deafb209bf57
MD5 ba1bc7d54d4c1906e62a81f87e6f8efd
BLAKE2b-256 d706508a9b1f96713ada44edbb6230f87a6e1f90f0cb79ba37b8591965bc88fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page