Skip to content

An amazingly accurate fake personalities generator.

License

Notifications You must be signed in to change notification settings

stanislavovsky/TrollFactory

Repository files navigation

TrollFactory

License GitHub code size in bytes GitHub last commit PyPI version

An amazingly accurate fake personality generator.

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

About

An amazingly accurate fake personalities generator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages