Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williexu/random_username
A package to randomly generate usernames
https://github.com/williexu/random_username
Last synced: about 2 months ago
JSON representation
A package to randomly generate usernames
- Host: GitHub
- URL: https://github.com/williexu/random_username
- Owner: williexu
- Created: 2019-01-11T18:44:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-20T11:49:58.000Z (almost 4 years ago)
- Last Synced: 2024-07-09T17:57:49.123Z (3 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 21
- Watchers: 2
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.rst
Awesome Lists containing this project
README
# Random Username Generator
A package to randomly generate compelling usernames in the format ``.
Inspiration from [marstr](https://github.com/marstr/randname).
## Installation
You can install the Random Username Generator from [PyPI](https://pypi.org/project/random-username/#description):
pip install random-username
This package is supported on Python 2.7, as well as Python 3.5 and above.
## How to use
This is a command-line application to generate usernames. To use, simply call:
$ random_username -h
usage: random_username [-h] [num_results]Generate Compelling Usernames.
positional arguments:
num_results Number of results to returnoptional arguments:
-h, --help show this help message and exitTo generate usernames, call the program like so (not specifying a number will default to 1):
$ random_username 10
vengefulSausage3
pacifiedIcecream7
amazedOtter4
lovesickSardines2
grizzledChowder1
grumpyRat1
troubledCod7
dopeyPiglet7
dreadfulOtter4
giddyOil7You can also call the Random Username Generator from your own python code by importing from `random_username.generate`
>>> from random_username.generate import generate_username
>>> generate_username(5)
['insecureJaguar0', 'spiritedMuesli8', 'cautiousSmelt2', 'mereVenison4', 'offendedPie6']