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.
A "multiclipboards" script for an efficient way to improve the original clipboards which are only able to save one string at a time

A "multiclipboards" script for an efficient way to improve the original clipboards which are only able to save one string at a time. Works on both Windows and Linux.

1 Jan 24, 2022
Python interface to IEX and IEX cloud APIs

Python interface to IEX Cloud Referral Please subscribe to IEX Cloud using this referral code. Getting Started Install Install from pip pip install py

IEX Cloud 41 Dec 21, 2022
SimplePyBLE - Python bindings for SimpleBLE

The ultimate fully-fledged cross-platform Python BLE library, designed for simplicity and ease of use.

Open Bluetooth Toolbox 27 Aug 28, 2022
Earth-to-orbit ballistic trajectories with atmospheric resistance

Earth-to-orbit ballistic trajectories with atmospheric resistance Overview Space guns are a theoretical technology that reduces the cost of getting bu

1 Dec 03, 2021
A conda-smithy repository for boost-histogram.

The official Boost.Histogram Python bindings. Provides fast, efficient histogramming with a variety of different storages combined with dozens of composable axes. Part of the Scikit-HEP family.

conda-forge 0 Dec 17, 2021
Telegram bot to upload media to telegra.ph

Telegraph @StarkTelegraphBot A star ⭐ from you means a lot to us ! Telegram bot to upload media to telegra.ph Usage Deploy to Heroku Tap on above butt

Stark Bots 24 Dec 29, 2022
Material de apoio da oficina de SAST apresentada pelo CAIS no Webinar de 28/05/21.

CAIS-CAIS Conjunto de Aplicações Intencionamente Sem-Vergonha do CAIS Material didático do Webinar "EP1. Oficina - Práticas de análise estática de cód

Fausto Filho 14 Jul 25, 2022
A command line interface tool converting starknet warp transpiled outputs into readable cairo contracts.

warp-to-cairo warp-to-cairo is a simple tool converting starknet warp outputs (NethermindEth/warp) outputs into readable cairo contracts. The warp out

Michael K 5 Jun 10, 2022
Hydralit package is a wrapping and template project to combine multiple independant Streamlit applications into a multi-page application.

Hydralit The Hydralit package is a wrapping and template project to combine multiple independant (or somewhat dependant) Streamlit applications into a

Jackson Storm 108 Jan 08, 2023
A cheat sheet for streamlit

Streamlit Cheat Sheet App to summarise streamlit docs v1.0.0 There is also an accompanying png and pdf version https://github.com/daniellewisDL/stream

Daniel Lewis 221 Jan 04, 2023
A tool to allow New World players to calculate the best place to put their Attribute Points for their build and level

New World Damage Simulator A tool designed to take a characters base stats including armor and weapons, level, and base damage of their items (slash d

Joseph P Langford 31 Nov 01, 2022
Fixed waypoint(pose) navigation for turtlebot simulation.

Turtlebot-NavigationStack-Fixed-Waypoints fixed waypoint(pose) navigation for turtlebot simulation. Task Details Task Permformed using Navigation Stac

Shanmukha Vishnu 1 Apr 08, 2022
Mommas-cookbook - A Repository About Mom's Recipes

Mommas Cookbook A Repository for Mom's Recipes Contents bacalhau à Gomes de Sá Beef-Rendang bacalhau à Gomes de Sá, recommended by @s0undt3ch One of t

1 Jan 08, 2022
ChieriBot,词云API版,用于统计群友说过的怪话

wordCloud_API 词云API版,用于统计群友说过的怪话,基于wordCloud 消息储存在mysql数据库中.数据表结构见table.sql 为啥要做成API:这玩意太吃性能了,如果和Bot放在同一个服务器,可能会影响到bot的正常运行 你服务器性能够用的话就当我在放屁 依赖包 pip i

chinosk 7 Mar 20, 2022
Mnemosyne: efficient learning with powerful digital flash-cards.

Mnemosyne: Optimized Flashcards and Research Project Mnemosyne is: a free, open-source, spaced-repetition flashcard program that helps you learn as ef

359 Dec 24, 2022
API wrapper for VCS hosting system.

PythonVCS API wrapper for VCS hosting system. Supported platforms Gitea Github, Gitlab, Bitbucket support will not, until that packages is not updated

MisileLaboratory 1 Apr 02, 2022
Python implementation of an automatic parallel parking system in a virtual environment, including path planning, path tracking, and parallel parking

Automatic Parallel Parking: Path Planning, Path Tracking & Control This repository contains a python implementation of an automatic parallel parking s

134 Jan 09, 2023
Python binding to rust zw-fast-quantile

zw_fast_quantile_py zw-fast-quantile python binding Installation pip install zw_fast_quantile_py Usage import zw_fast_quantile_py

Paul Meng 1 Dec 30, 2021
Transpiles some Python into human-readable Golang.

pytago Transpiles some Python into human-readable Golang. Try out the web demo Installation and usage There are two "officially" supported ways to use

Michael Phelps 318 Jan 03, 2023
Simple package to make requests throughout Tor with circuit renewal.

AutoTor Table of Contents About the Project Contents Dependencies Getting Started Installation Coding Contributing About the Project Simple package to

Salvador Belenguer 6 Jan 01, 2023