dummy-data-generator-id


Namedummy-data-generator-id JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://github.com/bri-anadi/dummy-data-generator-id
SummaryA library for generating realistic dummy data for Indonesian context
upload_time2024-11-30 07:32:31
maintainerNone
docs_urlNone
authorBrian Adi
requires_python>=3.7
licenseNone
keywords dummy-data generator indonesia random
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # DummyDataGeneratorId

A Python utility class for generating realistic dummy data with Indonesian context. This generator can create various types of data including names, emails, addresses, phone numbers, and more.

## Installation

```bash
pip install dummy-data-generator-id
```

# Usage
## Basic Usage
```python
from dummy_data_generator_id import DummyDataGeneratorId

# Generate a single complete user data
user = DummyDataGeneratorId.generate_user_data()

# Generate multiple user data
users = DummyDataGeneratorId.generate_user_data(count=5)
```

# Individual Data Generation
## Generate Name
```python
# Random gender name
name = DummyDataGeneratorId.generate_name()

# Specific gender name
male_name = DummyDataGeneratorId.generate_name(gender='male')
female_name = DummyDataGeneratorId.generate_name(gender='female')
```

## Generate Email
```python
# Random email
email = DummyDataGeneratorId.generate_email()

# Email based on name
email = DummyDataGeneratorId.generate_email(name="John Doe")
```

## Generate Phone Number
```python
# Indonesian phone number (default)
phone = DummyDataGeneratorId.generate_phone()

# Custom country code
phone = DummyDataGeneratorId.generate_phone(country_code='60')
```

## Generate Address
```python
# Random address
address = DummyDataGeneratorId.generate_address()

# Address with specific province
address = DummyDataGeneratorId.generate_address(province='DKI Jakarta')
```

## Generate Job Title
```python
job = DummyDataGeneratorId.generate_job()
```

## Generate Company Name
```python
company = DummyDataGeneratorId.generate_company()
```

## Generate Birthdate
```python
# Default age range (18-65)
birthdate = DummyDataGeneratorId.generate_birthdate()

# Custom age range
birthdate = DummyDataGeneratorId.generate_birthdate(min_age=25, max_age=45)
```

## Generate Credit Card Details
```python
credit_card = DummyDataGeneratorId.generate_credit_card()
```

## Generate Username
```python
username = DummyDataGeneratorId.generate_username()
```

## Generate UUID
```python
uuid = DummyDataGeneratorId.generate_uuid()
```

# Output Examples
Single User Data
```python
{
    'id': '123e4567-e89b-12d3-a456-426614174000',
    'name': 'Ahmad Setiawan',
    'email': 'ahmad.setiawan76@gmail.com',
    'username': 'BlueKangaroo123',
    'gender': 'male',
    'phone': '6281234567890',
    'birthdate': datetime.datetime(1990, 5, 15),
    'address': {
        'street': 'Jalan Merdeka No. 45',
        'city': 'Kota DKI Jakarta',
        'province': 'DKI Jakarta',
        'postal_code': '12345'
    },
    'job': 'Senior Developer - IT',
    'company': 'PT Teknologi Maju',
    'credit_card': {
        'type': 'Visa',
        'number': '4532015112830366',
        'expiry_date': '05/25',
        'cvv': '123'
    }
}
```
# Features
- Generate Indonesian-context dummy data
- Support for both single and bulk data generation
- Customizable parameters for most generators
- Realistic data patterns
- Built-in validation (e.g., Luhn algorithm for credit card numbers)

# Data Types Available
- Full Names (Gender-specific)
- Email Addresses
- Phone Numbers (Indonesian format)
- Addresses (Indonesian provinces)
- Job Titles
- Company Names
- Birthdates
- Credit Card Details
- Usernames
- UUIDs

# Notes
- All generated data is fictional and should only be used for testing purposes
- Credit card numbers are valid format but not real cards
- Phone numbers follow Indonesian mobile number formats
- Addresses use Indonesian provinces and city naming conventions

# Requirements
- Python 3.6+
- UUID library

# License
MIT License



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bri-anadi/dummy-data-generator-id",
    "name": "dummy-data-generator-id",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "dummy-data generator indonesia random",
    "author": "Brian Adi",
    "author_email": "uix.brianadi@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/aa/49/34840b062b2429eb991d5267128e5cb2ed8399ba314369fef7567eaa5e18/dummy-data-generator-id-0.2.3.tar.gz",
    "platform": null,
    "description": "# DummyDataGeneratorId\n\nA Python utility class for generating realistic dummy data with Indonesian context. This generator can create various types of data including names, emails, addresses, phone numbers, and more.\n\n## Installation\n\n```bash\npip install dummy-data-generator-id\n```\n\n# Usage\n## Basic Usage\n```python\nfrom dummy_data_generator_id import DummyDataGeneratorId\n\n# Generate a single complete user data\nuser = DummyDataGeneratorId.generate_user_data()\n\n# Generate multiple user data\nusers = DummyDataGeneratorId.generate_user_data(count=5)\n```\n\n# Individual Data Generation\n## Generate Name\n```python\n# Random gender name\nname = DummyDataGeneratorId.generate_name()\n\n# Specific gender name\nmale_name = DummyDataGeneratorId.generate_name(gender='male')\nfemale_name = DummyDataGeneratorId.generate_name(gender='female')\n```\n\n## Generate Email\n```python\n# Random email\nemail = DummyDataGeneratorId.generate_email()\n\n# Email based on name\nemail = DummyDataGeneratorId.generate_email(name=\"John Doe\")\n```\n\n## Generate Phone Number\n```python\n# Indonesian phone number (default)\nphone = DummyDataGeneratorId.generate_phone()\n\n# Custom country code\nphone = DummyDataGeneratorId.generate_phone(country_code='60')\n```\n\n## Generate Address\n```python\n# Random address\naddress = DummyDataGeneratorId.generate_address()\n\n# Address with specific province\naddress = DummyDataGeneratorId.generate_address(province='DKI Jakarta')\n```\n\n## Generate Job Title\n```python\njob = DummyDataGeneratorId.generate_job()\n```\n\n## Generate Company Name\n```python\ncompany = DummyDataGeneratorId.generate_company()\n```\n\n## Generate Birthdate\n```python\n# Default age range (18-65)\nbirthdate = DummyDataGeneratorId.generate_birthdate()\n\n# Custom age range\nbirthdate = DummyDataGeneratorId.generate_birthdate(min_age=25, max_age=45)\n```\n\n## Generate Credit Card Details\n```python\ncredit_card = DummyDataGeneratorId.generate_credit_card()\n```\n\n## Generate Username\n```python\nusername = DummyDataGeneratorId.generate_username()\n```\n\n## Generate UUID\n```python\nuuid = DummyDataGeneratorId.generate_uuid()\n```\n\n# Output Examples\nSingle User Data\n```python\n{\n    'id': '123e4567-e89b-12d3-a456-426614174000',\n    'name': 'Ahmad Setiawan',\n    'email': 'ahmad.setiawan76@gmail.com',\n    'username': 'BlueKangaroo123',\n    'gender': 'male',\n    'phone': '6281234567890',\n    'birthdate': datetime.datetime(1990, 5, 15),\n    'address': {\n        'street': 'Jalan Merdeka No. 45',\n        'city': 'Kota DKI Jakarta',\n        'province': 'DKI Jakarta',\n        'postal_code': '12345'\n    },\n    'job': 'Senior Developer - IT',\n    'company': 'PT Teknologi Maju',\n    'credit_card': {\n        'type': 'Visa',\n        'number': '4532015112830366',\n        'expiry_date': '05/25',\n        'cvv': '123'\n    }\n}\n```\n# Features\n- Generate Indonesian-context dummy data\n- Support for both single and bulk data generation\n- Customizable parameters for most generators\n- Realistic data patterns\n- Built-in validation (e.g., Luhn algorithm for credit card numbers)\n\n# Data Types Available\n- Full Names (Gender-specific)\n- Email Addresses\n- Phone Numbers (Indonesian format)\n- Addresses (Indonesian provinces)\n- Job Titles\n- Company Names\n- Birthdates\n- Credit Card Details\n- Usernames\n- UUIDs\n\n# Notes\n- All generated data is fictional and should only be used for testing purposes\n- Credit card numbers are valid format but not real cards\n- Phone numbers follow Indonesian mobile number formats\n- Addresses use Indonesian provinces and city naming conventions\n\n# Requirements\n- Python 3.6+\n- UUID library\n\n# License\nMIT License\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A library for generating realistic dummy data for Indonesian context",
    "version": "0.2.3",
    "project_urls": {
        "Homepage": "https://github.com/bri-anadi/dummy-data-generator-id"
    },
    "split_keywords": [
        "dummy-data",
        "generator",
        "indonesia",
        "random"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28e6c1722603e969eaebc1913b29b87a2ad74023c4a4a086266781f655043d80",
                "md5": "c7a1f247a4399f633857fafd6b4570f1",
                "sha256": "59156dd1afdad301d7dfaf09d8d8dee48385a0e314d32de9f71dc236ce7459f6"
            },
            "downloads": -1,
            "filename": "dummy_data_generator_id-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c7a1f247a4399f633857fafd6b4570f1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 6627,
            "upload_time": "2024-11-30T07:31:52",
            "upload_time_iso_8601": "2024-11-30T07:31:52.619818Z",
            "url": "https://files.pythonhosted.org/packages/28/e6/c1722603e969eaebc1913b29b87a2ad74023c4a4a086266781f655043d80/dummy_data_generator_id-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aa4934840b062b2429eb991d5267128e5cb2ed8399ba314369fef7567eaa5e18",
                "md5": "1933c2f4a6e6778bb702730d045eb725",
                "sha256": "901dc7d0d01bff870336f069821066d25a11dc13089b4a9852f5fb5386e0068c"
            },
            "downloads": -1,
            "filename": "dummy-data-generator-id-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "1933c2f4a6e6778bb702730d045eb725",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 6456,
            "upload_time": "2024-11-30T07:32:31",
            "upload_time_iso_8601": "2024-11-30T07:32:31.669133Z",
            "url": "https://files.pythonhosted.org/packages/aa/49/34840b062b2429eb991d5267128e5cb2ed8399ba314369fef7567eaa5e18/dummy-data-generator-id-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-30 07:32:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bri-anadi",
    "github_project": "dummy-data-generator-id",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "dummy-data-generator-id"
}
        
Elapsed time: 0.40744s