georgewatson / spookify

Spooky Halloween name generator
MIT License
1 stars 0 forks source link

GitHub PyPI GitHub commits since latest release PyPI - Python Version PyPI - Wheel PyPI - Downloads

spookify

Spooky Halloween name generator

Also supports a limited festive dictionary

Installation

This project is available on PyPI; install using

Or clone this repo and build it yourself, if you prefer.

Non-standard dependencies:

Usage

Once installed through pip, run using

If no name is provided on the command line, the script will run in interactive mode, allowing many names to be generated in a single session. This also allows the selection of alternative dictionaries (see "Available dictionaries", below).

If you don't wish to install the package through pip, spookify can be run directly by cloning this repo and running spookify/__main__.py.

Spookify can also be imported for use in other Python scripts, in the typical fashion:

This exposes the following functions:

Functions with pseudo-random elements all support a shuffle argument. By setting this to False, this can be disabled, resulting in a consistent return value.

See the function docstrings for more details.

Available dictionaries

Examples

Name spooky festive
George Watson Ge-ogre Bats-on Geo-tree Hats-on
Richard Stallman Witch-ard Skull-man Ri-card Star-lman
Linus Torvalds Li-guts To-graveyards Pine-us Toy-valds
Donald Trump Demon-ald T-pumpkin Coal-d T-jumper
Theresa May T-eerie-sa Candy Cheers-a Mary
Ubuntu U-haunt-u U-fun-tu

Licensing

This software is made available under an MIT License. See the LICENSE file for more information.

This allows you to do whatever you want with the software, free of charge, including making modifications and distributing it commercially, provided you retain the contents of the (very short) LICENSE file in an appropriate place in all copies you distribute. This file includes an attribution to the authors of this repository.

All potential contributors are expected to license their contributions under the same licence, and may add their names to the copyright notice in a pull request.

Although no patents are, at present, claimed on this software, for the avoidance of doubt, the "without limitation" line in the license text is considered by the authors to be an explicit licence of any relevant patents.