DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Deepak Raj
Deepak Raj

Posted on

Generate Random profile data in python

RandomProfileGenerator

What is Random Profile Generator

RandomProfileGenerator is a powerful and simple tool to generate fake data. It's can be used with cli and also can be intergrated as library.

what the use cases

It has lot of use cases like to mock classes, populate databases, Cybersecurity.

How to install it

you can install it via pip

pip install random-profile

Example

Generate a Random profile

rp -p -n 1
Enter fullscreen mode Exit fullscreen mode
[{'address': {'city': 'Epicburg',
              'state': 'West Virginia',
              'street': 'Park',
              'street_num': 226,
              'zip_code': 63033},
  'age': 22,
  'blood_type': 'Unknown',
  'coordinates': "49Β° 17' 16.8342'' N 21Β° 15' 56.8949'' E",
  'dob': '16/07/2000',
  'email': 'ryannsavage@example.com',
  'father': 'J Savage',
  'first_name': 'Ryann',
  'full_address': '226 Park, Epicburg, West Virginia 63033',
  'full_name': 'Ryann Savage',
  'gender': 'Female',
  'hair_color': 'yellow',
  'height': 149,
  'id': 'b0799d77-4ed6-40ad-9dde-5462bd43e941',
  'ip_address': '96.147.13.12',
  'job_job_experience': 'entry-level',
  'job_title': 'Medicare Coordinator',
  'last_name': 'Savage',
  'mother': 'B Savage',
  'payment_card': {'expiration': '01/27',
                   'number': '1558-4743-9482-0880',
                   'type': 'Credit'},
  'phone_number': '+1-470-919-8760',
  'weight': 56}]
Enter fullscreen mode Exit fullscreen mode

Check out the documentation for more use cases in details.

Thanks for reading.

Top comments (0)

50 CLI Tools You Can't Live Without

The top 50 must-have CLI tools, including some scripts to help you automate the installation and updating of these tools on various systems/distros.