Skip to main content

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

Metadata

Release files for TrollFactory 2.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TrollFactory 2.1.4
File Size Uploaded Provenance
TrollFactory-2.1.4.tar.gz 2.6 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for TrollFactory 2.1.4
File Interpreter ABI Platform
TrollFactory-2.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 MB

Release files / TrollFactory-2.1.4.tar.gz

Download URL TrollFactory-2.1.4.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
a1aaf4cda2621aaad0b7855af46e65922a95f1ec18475edaec7e01323ddf6fed
BLAKE2b-256 checksum
How to use checksums
ad589e996daac22516d26224df6f2dabb0f62ec3437d6bebbcb368e6eaf8a62a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / TrollFactory-2.1.4-py3-none-any.whl

Download URL TrollFactory-2.1.4-py3-none-any.whl
Size 2.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d4be6d254cd88b8bea67791f3fcb97a610c320ae28f42a380a63e9e42519071e
BLAKE2b-256 checksum
How to use checksums
0a270ecc311961b316318ea3231d241f2b3a8abae5f8625200ee8deb3347cc79
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for TrollFactory 2.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page