Python Library to get fast extensive Dummy Data for testing

Overview

Dumda

Python Library to get fast extensive Dummy Data for testing https://pypi.org/project/dumda/

Installation

pip install dumda

Usage:

Cities

from dumda import cities

# get a single random city, either from the
# entire pool or from a specific country
print(cities.get_random_city())
print(cities.get_random_city("United States"))

# get a list of random cities, this can also be
# called with a given country (cities.get_random_cities(5, "Zimbabwe")
print(cities.get_random_cities(10))

output

Somerset East
Paducah
['Watsa', 'Westerstede', 'Porto-Novo', 'Dushanbe', 
'Hoeyang', 'Uozu', 'Riyadh', 'Lashio', 'Arendal', 
'Tlapa de Comonfort']

Names

the meta is pretty much the same with names and cities, except a few additional operations

from dumda import names
# get a random name
print(names.get_random_name())
# instead of specific countries, you can pass specific sex
print(names.get_random_name("boy"))
print()
# like, cities get a random list
b = names.get_random_names(15, "boy")
g = names.get_random_names(15, "girl")
the_class = b + g
print("class list: {}".format(the_class))

print()
# additional query options
# generate a full name, for more accurate dummy data
print(names.get_full_name())

# there is also a multiple version of the function, 
# and of course you can enter a sex
print(names.get_full_names(5))
print(names.get_full_name("boy"))
print(names.get_full_names(3, "girl"))

print()
# I added this just because, but you can also 
# get a list of names based on letter
good_names = names.get_names_by_letter("o", 3)
print(good_names)
print(good_names[-1])

output

Armando
Andre

class list: ['Lupe', 'Wilbert', 'Torrence', 'Shad', 'Kyson', 
'Keaton', 'Destin', 'Ridge', 'Jorden', 'Enzo', 'Reginal', 
'Aarav', 'Deontae', 'Reggie', 'Kameron', 'Anya', 'Therese', 
'Kaylee', 'Linette', 'Greta', 'Allie', 'Deanne', 'Coretta', 
'Nila', 'Jazlyn', 'Lolita', 'Cherry', 'Clare', 'Breanne', 'Cheri']

Davian Yung
['Glynda Zavala', 'Unknown Booth', 'Leigh Flood', 'Ben Dupree', 
'Adrien Zachary']
Kimberly Higgins
['Jocelyn Zelaya', 'Kalene Ross', 'Melba Tran']

['Oscar', 'Otis', 'Oliver']
Oliver

Phone Numbers

In cases that you are making something like a phonebook or directory, you can also generate phone numbers (that follow U.S. formatting). You can optionally pass an area code if you want to generate phones for people from a specific area.

from dumda.phones import generate_number
# generate a random phone number based on US standard
print(generate_number())
# generate based on a given area code
print(generate_number("202"))

output:

901-212-2734
202-741-8998

Emails

Using this package's name class you can also generate random emails

from dumda.names import get_full_name
from dumda.emails import generate_email
# Pass a full name to generate an email
y = get_full_name()
x = generate_email(y)
print(y)
print(x)
z = get_full_name()
print(z)
print(generate_email(z))
output:
Armando Charles
[email protected]
Virgie Innocent
[email protected]

Person Object

Now if you were thinking of combining these for some objects in your program and wanted to keep it simple, I've got it covered.

from dumda import Person
person_one = Person()
# optionally pass sex and country of person
person_two = Person(country="United Kingdom", sex="girl")
print(person_one.json())
print(person_two.json())
output:
{'full_name': 'Armando Charles', 'location': 'Fairhope', 'email': '[email protected]', 'phone': '763-859-7018'}
{'full_name': 'Kinsley Louis', 'location': 'Weybridge', 'email': '[email protected]', 'phone': '623-88-6788'}
You might also like...
Performance monitoring and testing of OpenStack

Browbeat Browbeat is a performance tuning and analysis tool for OpenStack. Browbeat is free, Open Source software. Analyze and tune your Cloud for opt

A python script based on OpenCV-Python, you can automatically hang up the Destiny 2 Throne to get the Dawning  Essence.
A python script based on OpenCV-Python, you can automatically hang up the Destiny 2 Throne to get the Dawning Essence.

A python script based on OpenCV-Python, you can automatically hang up the Destiny 2 Throne to get the Dawning Essence.

Daily knowledge pills to get better in Python.

Python daily pills Daily knowledge pills to get better Python code. Why Does your Python code suffers of any of this symptoms? Incorrect Indentation I

Small exercises to get you used to reading and writing Python code!

Pythonlings Welcome to Pythonlings, an automated Python tutorial program (inspired by Rustlings and Haskellings). WIP This program is still working in

This python code will get requests from SET (The Stock Exchange of Thailand) a previously-close stock price and return it in Thai Baht currency using beautiful soup 4 HTML scrapper.

This python code will get requests from SET (The Stock Exchange of Thailand) a previously-close stock price and return it in Thai Baht currency using beautiful soup 4 HTML scrapper.

A python script to get your activity

activities A python script to get your activity Not complete Requirements Python (=3.7) Pip (for python = 3.7) Git Pip packages psutil asyncio aioht

A faster Python generator that get function results from multi-process workers

multiyield This package implements a Python generator that get function results from multi-process workers. The faster_fifo Queue (instead of the stan

Sample python script for monitoring Rocketchat database and get statistics of users.
Sample python script for monitoring Rocketchat database and get statistics of users.

rocketchat-DB-monitoring Sample python script for monitoring Rocketchat database and get statistics of users. 1. Update python: yum check-update && yu

Get information about what a Python frame is currently doing, particularly the AST node being executed

executing This mini-package lets you get information about what a frame is currently doing, particularly the AST node being executed. Usage Getting th

Owner
Oliver B.
Oliver B.
This app is to use algorithms to find the root of the equation

In this repository, I made an amazing app with tkinter python language and other libraries the idea of this app is to use algorithms to find the root of the equation I used three methods from numeric

Mohammad Al Jadallah 3 Sep 16, 2022
A simple 3D rigid body simulation written in python

pyRigidBody3d A simple 3D rigid body simulation written in python

30 Oct 07, 2022
Anti VirusTotal written in Python.

How it works Most of the anti-viruses on VirusToal uses sandboxes or vms to scan and detect malicious activity. The code checks to see if the devices

cliphd 3 Dec 26, 2021
A basic tool to generate Hydrogen drum machine kits.

Generate Hydrogen Kit A basic tool to generate drumkit.xml files for Hydrogen drum machine. Saves a bit of time when making kits. Supply it with a nam

Luna Langton 2 Nov 28, 2021
An open-source hyper-heuristic framework for multi-objective optimization

MOEA-HH An open-source hyper-heuristic framework for multi-objective optimization. Introduction The multi-objective optimization technique is widely u

Hengzhe Zhang 1 Feb 10, 2022
ioztat is a storage load analysis tool for OpenZFS

ioztat is a storage load analysis tool for OpenZFS. It provides iostat-like statistics at an individual dataset/zvol level.

Jim Salter 116 Nov 25, 2022
Learning with Peter Norvig's lis.py interpreter

Learning with lis.py This repository contains variations of Peter Norvig's lis.py interpreter for a subset of Scheme, described in (How to Write a (Li

Fluent Python 170 Dec 15, 2022
TrackGen - The simplest tropical cyclone track map generator

TrackGen - The simplest tropical cyclone track map generator Usage Each line is a point to be plotted on the map Each field gives information about th

TrackGen 6 Jul 20, 2022
We are building an open database of COVID-19 cases with chest X-ray or CT images.

🛑 Note: please do not claim diagnostic performance of a model without a clinical study! This is not a kaggle competition dataset. Please read this pa

Joseph Paul Cohen 2.9k Dec 30, 2022
Two predictive attributes (Speed and Angle) and one attribute target (Power)

Two predictive attributes (Speed and Angle) and one attribute target (Power). A container crane has the function of transporting containers from one point to another point. The difficulty of this tas

Astitva Veer Garg 1 Jan 11, 2022
【幼盾】个性化图片徽章服务!

【幼盾】个性化图片徽章服务! 你对方形的徽章感到无聊了吗?想要定制属于自己的开源项目徽章了吗? 快来使用unv-shield吧! unv-shield提供包含自定义图片的徽章服务,可以让你的项目主页更加个性化!

黄巍 130 Dec 23, 2022
A QGIS integration plugin for Kart repositories

QGIS Kart Plugin A plugin to work with Kart repositories Installation The Kart plugin is available in the QGIS Plugins server. To install the latest v

Koordinates 27 Jan 04, 2023
Python AVL Protocols Server for Codec 8 and Codec 8 Extended Protocols

pycodecs Package provides python AVL Protocols Server for Codec 8 and Codec 8 Extended Protocols This package will parse the AVL Data and log it in hu

Vardharajulu K N 2 Jun 21, 2022
Automatically re-open threads when they get archived, no matter your boost level!

ThreadPersist Automatically re-open threads when they get archived, no matter your boost level! Installation You will need to install poetry to run th

7 Sep 18, 2022
Get information about what a Python frame is currently doing, particularly the AST node being executed

executing This mini-package lets you get information about what a frame is currently doing, particularly the AST node being executed. Usage Getting th

Alex Hall 211 Jan 01, 2023
A calculator for common measurements used in sci-fi books.

Sci-fi-speed-calculator A calculator for common measurements used in sci-fi books. Author: Tyler Windmemuth Purpose: This program allows sci-fi author

Tyler Windemuth 0 Apr 22, 2022
Choice Coin 633 Dec 23, 2022
A small project of two newbies, who wanted to learn something about Python language programming, via fun way.

HaveFun A small project of two newbies, who wanted to learn something about Python language programming, via fun way. What's this project about? Well.

Patryk Sobczak 2 Nov 24, 2021
A water drinking notification every hour to keep you healthy while coding :)

Water_Notification A water drinking notification every hour to keep you healthy while coding. 💧 💧 Stay Hydrated Stay Healthy 💧 💧 Authors @CrazyCat

Arghya Banerjee 1 Dec 22, 2021
Код файнтюнинга оригинального CLIP на русский язык

О чем репозиторий В этом репозитории представлен способ файтюнить оригинальный CLIP на новый язык Почему модель не видит женщину и откуда на картинке

Valentina Biryukova 7 Feb 06, 2022