omkar-account-generator


Nameomkar-account-generator JSON
Version 1.1.1 PyPI version JSON
download
home_page
SummaryGenerate user accounts
upload_time2023-06-14 13:01:29
maintainer
docs_urlNone
authorChetan Jain
requires_python
licenseMIT
keywords account-generator account-creator accountgenerator generator user-generator dummy-users user-data fake-user python random-user-generator account
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Omkar Account Generator
=======================

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:

.. code:: bash

   python -m pip install omkar-account-generator

Usage
-----

1. ``generate_account(gender, country)``

Generates an account

**Arguments**

-  ``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**

.. code:: python

   from omkar_account_generator import AccountGenerator, Gender, Country

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

**Output**

.. code:: json

   {
       "name": "Vibha Almeida",
       "username": "vibhaalmeida",
       "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
       }
   }

2. ``generate_accounts(n, gender, country)``

Generates multiple user accounts.

**Arguments**

-  ``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**

.. code:: python

   from omkar_account_generator import AccountGenerator, Gender, Country

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

**Output**

.. code:: json

   [
       {
           "name": "Sahana Nayak",
           "username": "sahananayak",
           "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",
           "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",
           "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 <https://github.com/omkarcloud/omkar-account-generator>`__. Your act of starring will help developers in discovering our Repository and contribute towards helping fellow developers in their account creation tasks. Dhanyawad 🙏! Vande Mataram!
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "omkar-account-generator",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "account-generator,account-creator,accountgenerator,generator,user-generator,dummy-users,user-data,fake-user,python,random-user-generator,account",
    "author": "Chetan Jain",
    "author_email": "chetan@omkar.cloud",
    "download_url": "https://files.pythonhosted.org/packages/d3/1f/b2a3731cd583dc47c943054e024603fa9fdb042f83cb224febe98497c936/omkar_account_generator-1.1.1.tar.gz",
    "platform": null,
    "description": "Omkar Account Generator\n=======================\n\nOmkar Account Generator provides a convenient solution for creating\naccounts. It is particularly useful for automated tasks that require\naccount creation in selenium.\n\nGetting Started\n---------------\n\nTo get started with Omkar Account Generator install\n``omkar-account-generator`` using the following command:\n\n.. code:: bash\n\n   python -m pip install omkar-account-generator\n\nUsage\n-----\n\n1. ``generate_account(gender, country)``\n\nGenerates an account\n\n**Arguments**\n\n-  ``gender`` (optional): The gender of the user account to generate.\n   Value can be ``Gender.MEN``, ``Gender.WOMEN``, ``Gender.BOTH``.\n   Default\u2019s to ``Gender.BOTH``\n-  ``country`` (optional): The country of the user account to generate.\n   It accepts a value from the ``Country`` enum. The default value is\n   ``None``, which means the country can be any country.\n\n**Example**\n\n.. code:: python\n\n   from omkar_account_generator import AccountGenerator, Gender, Country\n\n   account = AccountGenerator.generate_account(gender = Gender.WOMEN, country=Country.IN)\n   print(account)\n\n**Output**\n\n.. code:: json\n\n   {\n       \"name\": \"Vibha Almeida\",\n       \"username\": \"vibhaalmeida\",\n       \"email\": \"vibha.almeida@gmail.com\",\n       \"password\": \"letter16\",\n       \"profile_picture\": \"https://randomuser.me/api/portraits/women/81.jpg\",\n       \"phone\": \"9217029568\",\n       \"address\": \"7492, Ratha Bheedi, Thanjavur, Tripura, India\",\n       \"gender\": \"female\",\n       \"country\": \"IN\",\n       \"dob\": {\n           \"date\": \"1992-07-29T22:51:53.073Z\",\n           \"age\": 30\n       }\n   }\n\n2. ``generate_accounts(n, gender, country)``\n\nGenerates multiple user accounts.\n\n**Arguments**\n\n-  ``n``: The number of user accounts to generate.\n-  ``gender`` (optional): The gender of the user account to generate.\n   Value can be ``Gender.MEN``, ``Gender.WOMEN``, ``Gender.BOTH``.\n   Default\u2019s to ``Gender.BOTH``\n-  ``country`` (optional): The country of the user account to generate.\n   It accepts a value from the ``Country`` enum. The default value is\n   ``None``, which means the country can be any country.\n\n**Example**\n\n.. code:: python\n\n   from omkar_account_generator import AccountGenerator, Gender, Country\n\n   accounts = AccountGenerator.generate_accounts(3, gender = Gender.WOMEN, country=Country.IN)\n   print(accounts)\n\n**Output**\n\n.. code:: json\n\n   [\n       {\n           \"name\": \"Sahana Nayak\",\n           \"username\": \"sahananayak\",\n           \"email\": \"sahana.nayak@gmail.com\",\n           \"password\": \"vietnam6\",\n           \"profile_picture\": \"https://randomuser.me/api/portraits/women/35.jpg\",\n           \"phone\": \"8679648937\",\n           \"address\": \"424, Naiduthota, Khammam, Uttar Pradesh, India\",\n           \"gender\": \"female\",\n           \"country\": \"IN\",\n           \"dob\": {\n               \"date\": \"1997-10-03T07:38:31.090Z\",\n               \"age\": 25\n           }\n       },\n       {\n           \"name\": \"Madhura Shroff\",\n           \"username\": \"madhurashroff\",\n           \"email\": \"madhura.shroff@gmail.com\",\n           \"password\": \"bettina1\",\n           \"profile_picture\": \"https://randomuser.me/api/portraits/women/87.jpg\",\n           \"phone\": \"8738692847\",\n           \"address\": \"5106, Maharanipeta, Mehsana, Maharashtra, India\",\n           \"gender\": \"female\",\n           \"country\": \"IN\",\n           \"dob\": {\n               \"date\": \"1989-08-15T05:10:47.967Z\",\n               \"age\": 33\n           }\n       },\n       {\n           \"name\": \"Hetal Kavser\",\n           \"username\": \"hetalkavser\",\n           \"email\": \"hetal.kavser@gmail.com\",\n           \"password\": \"django27\",\n           \"profile_picture\": \"https://randomuser.me/api/portraits/women/94.jpg\",\n           \"phone\": \"8033453360\",\n           \"address\": \"5222, Colaba Causeway, Buxar, Daman and Diu, India\",\n           \"gender\": \"female\",\n           \"country\": \"IN\",\n           \"dob\": {\n               \"date\": \"1961-05-29T07:35:50.196Z\",\n               \"age\": 62\n           }\n       }\n   ]\n\nIf my code helped you in creating accounts, please take a moment to `star the repository <https://github.com/omkarcloud/omkar-account-generator>`__. Your act of starring will help developers in discovering our Repository and contribute towards helping fellow developers in their account creation tasks. Dhanyawad \ud83d\ude4f! Vande Mataram!\n-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Generate user accounts",
    "version": "1.1.1",
    "project_urls": null,
    "split_keywords": [
        "account-generator",
        "account-creator",
        "accountgenerator",
        "generator",
        "user-generator",
        "dummy-users",
        "user-data",
        "fake-user",
        "python",
        "random-user-generator",
        "account"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d31fb2a3731cd583dc47c943054e024603fa9fdb042f83cb224febe98497c936",
                "md5": "39bb81d1d76f8151d27801b67c7701dd",
                "sha256": "7bb7f163b24656209ee8da64c23e6ad0dbbab732ba9c51a7e656def9cdd42b30"
            },
            "downloads": -1,
            "filename": "omkar_account_generator-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "39bb81d1d76f8151d27801b67c7701dd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4421,
            "upload_time": "2023-06-14T13:01:29",
            "upload_time_iso_8601": "2023-06-14T13:01:29.102040Z",
            "url": "https://files.pythonhosted.org/packages/d3/1f/b2a3731cd583dc47c943054e024603fa9fdb042f83cb224febe98497c936/omkar_account_generator-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-14 13:01:29",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "omkar-account-generator"
}
        
Elapsed time: 0.09846s