Skip to main content

A populater for databases and generator for user information

Project description

Random name generator. Random email generator. Random age generator.

Doel van het programma

Als developer wil je soms je database populeren met gebruikers om testen uit te voeren of een MVP te demonstreren of je hebt simpelweg gewoon een random voornaam, achternaam, gender, email of leeftijd nodig. Met dit programma kan je MySQL of SQLite database populeren met gebruikers of de module gebruiken om een eigen populatie programma te maken.

PyPi package: https://pypi.org/project/worldnames/

Installation manual for the Populating program

  1. Clone the repository (required)
git clone https://github.com/ayoub-abdessadak/world-names.git
  1. Create a python virtual environment (optional)
python -m venv venvworldnames
  1. Activate the python virtual environment (optional)
source venvworldnames/bin/activate

3.1 If you're on windows you can activate the virtual environment as is (optional)

.\venvworldnames\Scripts\activate
  1. Navigate to the repository (world-names) and install the required packages (required)
pip install -r requirments.txt
  1. Run the population simulator
python -m worldnames.populate

Or use the worldnames module to populate you're database:

  1. Install the worldnames module (required)
pip install worldnames
  1. Use the worldnames module in you're python program
import worldnames

worldnames.full_name() # returns 'Ashanti Qjtkbyh' for example. Type is a string.

worldnames.first_name() # returns 'Teodor' for example. Type is a string.

worldnames.last_name() # returns 'Pmgnwzqls' for example. Type is a string.

worldnames.age() # returns 50 for example. Type is an int.

worldnames.gender() # returns male for example. Type is a string.

worldnames.email() # returns 'Ashanti.Qjtkbyh@gmail.com' for example. Type is a string.

worldnames.email('Ashanti', 'Qjtkby') # It is possible to pass a first_name and last_name to the email method.

worldnames.user() # Returns all the attributes above in a tuple, for example: ('Cuauhtémoc', 'Sfzn', 'Woman', 88, 'Cuauhtémoc.Sfzn@outlook.com'). Type is an tuple.

worldnames.phone_number() # Returns a random phone number 

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

worldnames-0.0.8.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

worldnames-0.0.8-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file worldnames-0.0.8.tar.gz.

File metadata

  • Download URL: worldnames-0.0.8.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for worldnames-0.0.8.tar.gz
Algorithm Hash digest
SHA256 4f13868e27f3a1f71c246195081fd8675a61fe70b4f86d695fb880358a4a77fd
MD5 457591d74f0c1614c8b8129bfdb14d59
BLAKE2b-256 4c0553b518bf9bc65b733ccd95bc9a7b58ccef791f808f0cdea9d60c5f80973c

See more details on using hashes here.

File details

Details for the file worldnames-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: worldnames-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for worldnames-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3274ef7678d6089b1327aa949f51fe04cc32ce8765bd92cbc4ca6c26c416f534
MD5 9921c26962c191212dd85d5817ea7ab4
BLAKE2b-256 20b790fc40f8054aedb79e4f4e8530b81c5ff5ea41ad767d42b4b648a8c407e7

See more details on using hashes here.

Supported by

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