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.

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.7.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.7-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: worldnames-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 3d19ceb9ddde7d802095ab8f49e8b6a9c47e81ee7af4fddae3b48caf47773f86
MD5 c4b3af1d0061d3bac99420239536f7db
BLAKE2b-256 cf33f42f209f8fd767e30c24f35d73a446a353f88515dc9b7a0b3c30108431a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: worldnames-0.0.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a3e8b84e18da28f56054c14424115b78830f50d628ba503fa5ce359d11af50a8
MD5 ea4c16ebe2ee08c4ed4beabbca0117de
BLAKE2b-256 7d3276cec04d7e2737b23d0b6c1d05c55fea11c5a534b6a4731da58109b2bebc

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