Skip to main content

A library for generating realistic dummy data for Indonesian context

Project description

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

pip install dummy-data-generator-id

Usage

Basic Usage

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

# 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

# Random email
email = DummyDataGeneratorId.generate_email()

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

Generate Phone Number

# Indonesian phone number (default)
phone = DummyDataGeneratorId.generate_phone()

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

Generate Address

# Random address
address = DummyDataGeneratorId.generate_address()

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

Generate Job Title

job = DummyDataGeneratorId.generate_job()

Generate Company Name

company = DummyDataGeneratorId.generate_company()

Generate Birthdate

# 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

credit_card = DummyDataGeneratorId.generate_credit_card()

Generate Username

username = DummyDataGeneratorId.generate_username()

Generate UUID

uuid = DummyDataGeneratorId.generate_uuid()

Output Examples

Single User Data

{
    '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

Project details


Download files

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

Source Distribution

dummy-data-generator-id-0.2.3.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

dummy_data_generator_id-0.2.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file dummy-data-generator-id-0.2.3.tar.gz.

File metadata

File hashes

Hashes for dummy-data-generator-id-0.2.3.tar.gz
Algorithm Hash digest
SHA256 901dc7d0d01bff870336f069821066d25a11dc13089b4a9852f5fb5386e0068c
MD5 1933c2f4a6e6778bb702730d045eb725
BLAKE2b-256 aa4934840b062b2429eb991d5267128e5cb2ed8399ba314369fef7567eaa5e18

See more details on using hashes here.

File details

Details for the file dummy_data_generator_id-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for dummy_data_generator_id-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 59156dd1afdad301d7dfaf09d8d8dee48385a0e314d32de9f71dc236ce7459f6
MD5 c7a1f247a4399f633857fafd6b4570f1
BLAKE2b-256 28e6c1722603e969eaebc1913b29b87a2ad74023c4a4a086266781f655043d80

See more details on using hashes here.

Supported by

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