Skip to main content

Generate random names

Project description

Random name generator

Usage

Names can be used as a command line utility or imported as a Python package.

Command Line Usage

To use the script from the command line:

$ names
John Powell

Python Package Usage

Here are examples of all current features:

>>> import names
>>> names.get_full_name()
u'Patricia Halford'
>>> names.get_full_name(gender='male')
u'Patrick Keating'
>>> names.get_first_name()
'Bernard'
>>> names.get_first_name(gender='female')
'Christina'
>>> names.get_last_name()
'Szczepanek'

Installation

The script is available on PyPI. To install with pip:

sudo pip install names

License

This project is released under an MIT License.

Data in the following files are public domain (derived from 1990 Census data):

  • dist.all.last

  • dist.female.first

  • dist.male.first

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

names-0.2.tar.gz (786.5 kB view details)

Uploaded Source

File details

Details for the file names-0.2.tar.gz.

File metadata

  • Download URL: names-0.2.tar.gz
  • Upload date:
  • Size: 786.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for names-0.2.tar.gz
Algorithm Hash digest
SHA256 203b37143c94ac098cd6e27fbaef8ff94a3ff76dce2ffb1a378f3f1c54d21a31
MD5 35cc48636c5a4144d144e20e5e15ed89
BLAKE2b-256 ede5152526eac5700d6b5a188b71e6ad7b45cb990c0eb55e4efdaaa6a7b65781

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