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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file TrollFactory-2.1.4.tar.gz.

File metadata

  • Download URL: TrollFactory-2.1.4.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for TrollFactory-2.1.4.tar.gz
Algorithm Hash digest
SHA256 a1aaf4cda2621aaad0b7855af46e65922a95f1ec18475edaec7e01323ddf6fed
MD5 207976fcd743367f64d03b7d25da6be7
BLAKE2b-256 ad589e996daac22516d26224df6f2dabb0f62ec3437d6bebbcb368e6eaf8a62a

See more details on using hashes here.

File details

Details for the file TrollFactory-2.1.4-py3-none-any.whl.

File metadata

  • Download URL: TrollFactory-2.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for TrollFactory-2.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d4be6d254cd88b8bea67791f3fcb97a610c320ae28f42a380a63e9e42519071e
MD5 dc4623a5201a9f2a49356b9c8af0e4a0
BLAKE2b-256 0a270ecc311961b316318ea3231d241f2b3a8abae5f8625200ee8deb3347cc79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page