Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

The Queb name generator

Project description


Documentation aussi disponible en français

qng, the Queb name generator.


To run qng, you will only need Python ≥ 3.4.

For installing, we recommend using the pip package manager.


To install qng system-wide, run:

sudo pip3 install qng

To install qng manually from source, the steps are as follows:

git clone
cd qng
sudo ./ install


Once installed, you can use qng by running the following command:


This will generate a single random Queb name.

You can also generate names for a specific gender:

qng --gender male

Generate only part of a name:

qng --part first

Generate names according to their relative popularity:

qng --weighted

Generate a name formatted as “snake_case” without any diacritics (useful for naming your containers):

qng --snake-case

Here’s how you could use this to name a Docker container:

docker run --name $(qng --snake-case) hello-world

All the above options may be combined if desired. Refer to the help for more details:

qng --help

Python API

You can also use qng through its Python API, for integration with other applications.

Here is a simple example of programmatic usage:

import qng.generator

generator = qng.generator.QuebNameGenerator()
name = generator.generate()

The generate() function also supports the following options, with the same meaning as the corresponding CLI options:

import qng.generator

generator = qng.generator.QuebNameGenerator()
name = generator.generate(

Refer to the documentation in the source file for more details.


For local development of qng, you may use pipenv. Use pipenv install --dev to generate a virtual environment into which the dependencies will be installed. You may then use pipenv shell to activate that environment.

For publishing releases to PyPI, we recommend using Twine.


The data for qng was sourced from l’institut de la statistique for surnames, and from PrénomsQué for first names (who in turn get their data from Retraite Québec’s banque de prénoms).

Scripts used for scraping the data from the web pages can be found under the scripts/ directory.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for qng, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size qng-1.0.1-py3-none-any.whl (17.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size qng-1.0.1.tar.gz (17.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page