Git Product home page Git Product logo

namecreator's Introduction

nameCreator

GitHub release (latest by date) GitHub forks GitHub license GitHub issues

A python name generator for Windows.

This is a python package for name generation. It can generate names from different countries, and can generate both male and female names. Ethnicities: "american", "russian", "spanish", "italian", "german", "french", "swedish", "finnish", "japaneser" (japanese romanized), "japanese", "chineser" (chinese romanized), and "chinese".

Installation

From pypi

Install from pypi with pip:

pip install nameCreator

Build from source

Clone the repository and cd into the nameCreator directory, then:

pip install build
python -m build
cd dist
pip install nameCreator-1.0.0-py3-none-any.whl

Usage (Only applies when built from source, read the release's corresponding README for that version's usage)

In python file

firstNameMale = nameCreator.FirstNameMale('nationality')

print(firstNameMale)

lastName = nameCreator.LastName('nationality')

print(lastName)

firstNameFemale = nameCreator.FirstNameFemale('nationality')

print(firstNameFemale)

lastName = nameCreator.LastName('nationality')

print(lastName)

In command line

Displays help message:

nameCreatorCLI generate --help

Generates 10 male finnish names:

nameCreatorCLI generate -a 10 -e finnish -g m

Generates 10 italian female names, sends to a text file and does not print the output to the terminal:

nameCreatorCLI generate -a 10 -e italian -g f -o italianNames.txt -n

Arguments:

Specifies the amount of names to generate:

-a --amount

Specifies the ethnicity:

-e --ethnicity

Specifies the gender of the generated names:

-g --gender

Specifies the output path (like C:/Users/You/test.txt or test.txt to put in the current path):

-o --output

Specifies whether or not to print the output to the terminal (useless if there is no output path specified):

-n --noprint

SOURCES:

https://github.com/ironarachne/namegen

namecreator's People

Contributors

jhudd435 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.