Skip to content

MartianLee/bbyu-nickname-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bbyu-nickname-generator

Generate nickname with various options(animal, color etc.)

Currently supports only korean. but have plans to add all of the language in the world

Objects

  • adjective
  • animal
  • color

Install

pip install bbyu-nickname-generator

Usage

>> from bbyu import generator
>> print(generator.easy_generate())
>> '수다스러운도마뱀'
>> print(generator.generate(max_length=12, number_length=3, seperator='-'))
>> '뒤늦은-물개-234'
>> print(generator.generate(max_length=10, number_length=2)) # default seperator = None
>> '외로운원숭이28'
>> generate(max_length=10, number_length=2, items=['number', '번째', 'color', 'animal'])
>> '72번째분홍색문어'
  • Find out test.py for basic use case.

Setting

easy_generate()

generator.easy_generate()
  • = generate(max_length=15, number_length=0))

generate()

generator.generate(max_length=12, number_length=3, items=['color', 'animal', 'number'], seperator='-')
  • max_length : The maximum length of nickname. It's easy to limit length of field.

  • number_length : The length of number which locates end of the nickname.

  • item : List of item type. item is the object which you can put in nickname. If you don't set any sequence, default is ['adjective', 'number'].

    • item list : 'color', 'animal', 'number'

    • else : except above item name, generator understand it's plain text. So they just put it to all nicknames. ex) '73th_red_mouse', '42th_green_horse'

  • seperator : The seperator which shows up in between two item(adj, color, animal etc).

Sources

About

Generate nickname with various options(animal, color etc.)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages