TrollFactory

所属分类:工具库
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2023-04-10 04:59:25
上 传 者sh-1993
说明:  一个惊人准确的假人格发生器。
(An amazingly accurate fake personality generator.)

文件列表:
.bumpversion.cfg (317, 2023-11-15)
LICENSE (35149, 2023-11-15)
MANIFEST.in (101, 2023-11-15)
requirements.txt (20, 2023-11-15)
setup.py (1156, 2023-11-15)
tests/ (0, 2023-11-15)
tests/requirements.txt (26, 2023-11-15)
tests/test_address_prop.py (1388, 2023-11-15)
tests/test_bank_prop.py (565, 2023-11-15)
tests/test_birthdate_prop.py (927, 2023-11-15)
tests/test_blood_type_prop.py (337, 2023-11-15)
tests/test_car_prop.py (2011, 2023-11-15)
tests/test_cc_prop.py (1563, 2023-11-15)
tests/test_colors_prop.py (520, 2023-11-15)
tests/test_document_id_prop.py (483, 2023-11-15)
tests/test_gender_prop.py (419, 2023-11-15)
tests/test_language_prop.py (435, 2023-11-15)
tests/test_measurements_prop.py (525, 2023-11-15)
tests/test_name_prop.py (524, 2023-11-15)
tests/test_online_prop.py (1625, 2023-11-15)
tests/test_personality_generated.py (368, 2023-11-15)
tests/test_phone_prop.py (1330, 2023-11-15)
tests/test_ssn_prop.py (558, 2023-11-15)
trollfactory/ (0, 2023-11-15)
trollfactory/__init__.py (148, 2023-11-15)
trollfactory/cli.py (2461, 2023-11-15)
trollfactory/exceptions.py (417, 2023-11-15)
trollfactory/functions.py (2108, 2023-11-15)
trollfactory/props/ (0, 2023-11-15)
trollfactory/props/__init__.py (344, 2023-11-15)
trollfactory/props/address.py (3415, 2023-11-15)
trollfactory/props/bank.py (1851, 2023-11-15)
trollfactory/props/birthdate.py (2734, 2023-11-15)
trollfactory/props/blood_type.py (904, 2023-11-15)
... ...

# TrollFactory [![License](https://img.shields.io/github/license/stanislawowski/TrollFactory.svg)](https://github.com/stanislawowski/TrollFactory) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/stanislawowski/TrollFactory) ![GitHub last commit](https://img.shields.io/github/last-commit/stanislawowski/TrollFactory) [![PyPI version](https://badge.fury.io/py/TrollFactory.svg)](https://badge.fury.io/py/TrollFactory) **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. ```python import trollfactory.functions as tf tf.generate_personality('polish', 'male') ``` The `generate_personality()` function returns a dict with generated data. ## TODO - [x] non-binary gender - [ ] finish english_us dataset - [ ] tests for english_us dataset - [ ] setting static properties - [x] cli arguments help - [x] add more test scripts - [x] improve CC prop & write test - [x] type hints for generated props - [x] docstrings - [ ] split datasets into separate modules

近期下载者

相关文件


收藏者