Skip to main content

Library containing name generation methods

Project description

libnamegen

Dependabot Status Codacy Badge

PyPI PyPI - License

GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests

Package containing various name generation methods. Originally on my NameGenerator project.

Features

  • Easy to use
  • Imported as module
  • Always tested before release
  • Supports latest three versions of Python 3

How to Install

Run the command pip install libnamegen. If you want to specify a specific Python version to use for pip, use a command such as pip3 or pip3.8.

libnamegen requires the package libprogress, but it will automatically be installed by pip.


Documentation

API

Generate one classic name without debug:

from libnamegen import classic

# this uses the defaults which are one name, debug disabled, and classic generator
print(classic.gen())

Generate seven classic names with debug:

from libnamegen import classic

print(classic.gen(count=7, debug=True))
# print(classic.gen(7, True))  # also valid

Prompt the user for the amount of names, enable debug, and generate classic names:

from libnamegen import classic

amt = input("Amount of names to generate >> ")
count = int(amt)

names = classic.gen(count, true)
for name in names:
  print(name)

Generate one random name without debug:

from libnamegen import random

print(random.gen())

Generate one name using the random method 15 characters long:

from libnamegen import random

print(random.gen(length=15))

You can also import the entire libnamegen package, which will import all generation methods:

import libnamegen

print(libnamegen.classic.gen())

License

libnamegen is licensed under the GPLv3 license. For more information, please refer to LICENSE.

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

libnamegen-3.0.2.post1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

libnamegen-3.0.2.post1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file libnamegen-3.0.2.post1.tar.gz.

File metadata

  • Download URL: libnamegen-3.0.2.post1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for libnamegen-3.0.2.post1.tar.gz
Algorithm Hash digest
SHA256 aa3e03bc1ea660e92e2e95490af47ef3d5a5352a788da62c26f72890e812cb72
MD5 04c9f3dc2a06fdd13164b71a6db16260
BLAKE2b-256 488aab7b1ad59a26c149a0c6ceb514090bed36b47e1b8ccb109f78555865cc12

See more details on using hashes here.

File details

Details for the file libnamegen-3.0.2.post1-py3-none-any.whl.

File metadata

  • Download URL: libnamegen-3.0.2.post1-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for libnamegen-3.0.2.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a30a9eaefc2f6d97187fb9e00937c2496e4211e1cb9b3b7a720164e2b5cbdc9
MD5 03a7f470561ffa0a3bd05f549c4f8021
BLAKE2b-256 b66671a7f507fc82bfbdc0d3d028d66f4137dc41b93bd83af13def60de3b8bd4

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