DEV Community

Deepak Raj
Deepak Raj

Posted on • Edited on

2 1

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.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay