Skip to main content

Python module that generates random names

Project description

Nomix v1.0

License Version Python Version

Overview

This Python module generates random names based on parameters such as gender and nationality. It provides functions to retrieve random names and last names from various cultures.

Table of Contents

Installation

Clone the repository:

git clone https://github.com/tomasilluminati/Nomix

Or use the pip command:

pip install nomix 

Usage

Import the module in your project

import nomix 

Functions

get_name()

Returns a random name based on the specified data type. Available data types include:

  • "USA_MALE_NAME"
  • "USA_FEMALE_NAME"
  • "ENGLISH_MALE_NAME"
  • "ENGLISH_FEMALE_NAME"
  • "FRENCH_MALE_NAME"
  • "FRENCH_FEMALE_NAME"
  • "SPANISH_MALE_NAME"
  • "SPANISH_FEMALE_NAME"
  • "RUSSIAN_MALE_NAME"
  • "RUSSIAN_FEMALE_NAME"
  • "GERMAN_MALE_NAME"
  • "GERMAN_FEMALE_NAME"
  • "CHINESE_MALE_NAME"
  • "CHINESE_FEMALE_NAME"
  • "GREEK_MALE_NAME"
  • "GREEK_FEMALE_NAME"
  • "JAPANESE_MALE_NAME"
  • "JAPANESE_FEMALE_NAME"
  • "KOREAN_MALE_NAME"
  • "KOREAN_FEMALE_NAME"
  • "HINDI_MALE_NAME"
  • "HINDI_FEMALE_NAME"
  • "ITALIAN_MALE_NAME"
  • "ITALIAN_FEMALE_NAME"
  • "AFRICAN_MALE_NAME"
  • "AFRICAN_FEMALE_NAME"
  • "PORTUGUESE_MALE_NAME"
  • "PORTUGUESE_FEMALE_NAME"

Example:

import nomix 

name = nomix.get_name("USA_MALE_NAME")
print(name)

#Output: Maxwell 

get_name_random()

Returns a random name from any available nationality and gender (No required parameters).

Example:

import nomix 

name = nomix.get_name_random()
print(name)

#Output: Yulia

get_lastname()

Returns a random last name based on the specified data type. Available data types include:

  • "USA_LASTNAME"
  • "ENGLISH_LASTNAME"
  • "FRENCH_LASTNAME"
  • "SPANISH_LASTNAME"
  • "RUSSIAN_LASTNAME"
  • "GERMAN_LASTNAME"
  • "CHINESE_LASTNAME"
  • "GREEK_LASTNAME"
  • "JAPANESE_LASTNAME"
  • "KOREAN_LASTNAME"
  • "HINDI_LASTNAME"
  • "ITALIAN_LASTNAME"
  • "AFRICAN_LASTNAME"
  • "PORTUGUESE_LASTNAME"

Example:

import nomix 

lastname = nomix.get_lastname("JAPANESE_LASTNAME")
print(lastname)

#Output: Matsui 

get_lastname_random()

Returns a random last name from any available nationality (No required parameters).

Example:

import nomix 

lastname = nomix.get_lastname_random()
print(lastname)

#Output: Sander 

get_fullname()

Returns a full name based on the specified genre (male/female) and nationality. If genre or nationality is not provided, it randomly selects them.

Parameters

genre: (Optional) The gender of the name. It can be "MALE" for male or "FEMALE" for female.

nationality: (Optional) The nationality of the name. It must be one of the following options:

  • "USA"
  • "ENGLISH"
  • FRENCH"
  • "SPANISH"
  • "RUSSIAN"
  • "GERMAN"
  • "CHINESE"
  • "GREEK"
  • "JAPANESE"
  • "KOREAN"
  • "HINDI"
  • "ITALIAN"
  • "AFRICAN"
  • "PORTUGUESE".

Example:

import nomix 

full_name = nomix.get_fullname("MALE", "KOREAN")
print(full_name)

#Output: Younghoon Seol

get_fullname_random()

Returns a random full name from any available nationality and gender (No required parameters).

Example:

import nomix 

full_name = nomix.get_fullname_random()
print(full_name)

#Output: Anatoliy Afanasiev

Contributing

Contributions are welcome! Please feel free to open a pull request.

License

This project is licensed under the MIT License.

Copyright

Copyright (c) 2024 Tomas Illuminati

Project details


Release history Release notifications | RSS feed

This version

1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nomix-1.1.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

nomix-1.1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file nomix-1.1.tar.gz.

File metadata

  • Download URL: nomix-1.1.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for nomix-1.1.tar.gz
Algorithm Hash digest
SHA256 d1b298af37620ba51d4bff6e569b714e91847971d31bfbc5410c86b70d253974
MD5 f34be4018cb21a9eaec589a2c0b1d1c3
BLAKE2b-256 cb4ecea49eea6d743c7c47e79f40ea21119e398f23c737f7257031bfda57b8c2

See more details on using hashes here.

File details

Details for the file nomix-1.1-py3-none-any.whl.

File metadata

  • Download URL: nomix-1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for nomix-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8cd535914e4b5b054b19ded4fc3c552c8cd3b08cb61bda9f731bff866db6a52b
MD5 c9bea30603b8ebcb062e4da821daa2f9
BLAKE2b-256 089b831fa41bbe9b57c520de9d112340463164c750e8c2e9e28b00f15bda3473

See more details on using hashes here.

Supported by

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