Skip to main content

An amazingly accurate fake personality generator.

Project description

TrollFactory

Codacy Badge License GitHub code size in bytes GitHub last commit PyPI version

Fake personality generator for the 21st century!

About

TrollFactory is a fairly advanced fake personality generator written in Python. It aims to generate as much data about a person as possible. At the moment it only supports Polish personalities, we're finishing US dataset soon.

Installation

TrollFactory is available as a PyPI package: pip3 install trollfactory

Usage

TrollFactory CLI

The TrollFactory PyPI package also contains TrollFactory CLI. It's currently the most reliable way of using TrollFactory.
To use it, run the trollfactory binary from your terminal emulator.

If ran without any parameters, it will generate a personality with default options (Polish dataset, female gender).

At the moment, you can specify a custom dataset and gender (support for other static properties is coming soon):
trollfactory --gender male --dataset english_us

You can also generate many personalities at once:
trollfactory --amount 10

You can run trollfactory --help to read the full help.

Python library

After installing the TrollFactory Python package, you can use it in your scripts.

import trollfactory.functions as tf
tf.generate_personality('polish', 'male')

The generate_personality() function returns a dict with generated data.

TODO

  • non-binary gender
  • finish english_us dataset
  • tests for english_us dataset
  • setting static properties
  • cli arguments help
  • add more test scripts
  • improve CC prop & write test
  • type hints for generated props
  • docstrings
  • split datasets into separate modules

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

TrollFactory-2.1.4.tar.gz (2.6 MB view hashes)

Uploaded Source

Built Distribution

TrollFactory-2.1.4-py3-none-any.whl (2.7 MB view hashes)

Uploaded Python 3

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