Skip to main content

Generate and manage simulated human-like personalities based on the Big Five model.

Project description

personalitygen

personalitygen social preview

Build Status Supports Python versions 3.11+

personalitygen generates and manages simulated human-like personalities based on the Big Five (OCEAN) model. It is designed for simulation, storytelling, and testing scenarios where you want plausible, varied personality profiles without running surveys.

Intent and scope

  • Generate full Big Five profiles with sub-trait components and aggregate scores.
  • Bias outputs by life stage using tuned Gaussian distributions (child, young adult, adult).
  • Derive a conflict-resolution style from trait weights, plus mapped concern-for-self/others.
  • Support deterministic generation by accepting a seeded random source.
  • Stay lightweight and dependency-free (pure Python).

This package is not a clinical assessment tool and does not implement questionnaires or scoring rubrics.

Model overview

  • Big Five traits: openness, conscientiousness, extraversion, agreeableness, neuroticism.
  • Each trait is composed of three sub-traits and a weighted aggregate score.
  • Life stage influences distribution means and standard deviations for sampling.
  • Conflict-resolution style is selected from avoiding, obliging, integrating, dominating, or compromising based on trait scores.

Usage

from personalitygen import BigFivePersonality, LifeStage

personality = BigFivePersonality.random(LifeStage.ADULT)
print(personality.trait_configuration)
print(personality.conflict_resolution_configuration)

If you want deterministic output, pass a seeded random number generator:

import random
from personalitygen import BigFiveTraitConfiguration, LifeStage

rng = random.Random(42)
traits = BigFiveTraitConfiguration.random(LifeStage.YOUNG_ADULT, rng=rng)
print(traits)

Development

pdm install --group dev
pdm run test

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

personalitygen-0.1.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

personalitygen-0.1.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file personalitygen-0.1.2.tar.gz.

File metadata

  • Download URL: personalitygen-0.1.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for personalitygen-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cbe90f1fd02a2d8288aec512b185fadc6df698eca9f9f652fdd5e5188817b541
MD5 a188113e6363c12cdc88cc6bbac11416
BLAKE2b-256 79814ce77c50f4d5ea8f5baf6e652da03bc3f18eb21b1ec68dd4d4b1c073ff4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for personalitygen-0.1.2.tar.gz:

Publisher: python-publish.yml on btfranklin/personalitygen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file personalitygen-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: personalitygen-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for personalitygen-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 15c2c6a6b0b911ee4ffb61d1b8f2ad0e9d9291ffa155dbd8671b58301bf49f1e
MD5 d11b8a69654ee416dc61cc377555d713
BLAKE2b-256 c9b4041ec3fb078d707f4183713443f984dbb2deea5a4ed60199e6ccdac1dee3

See more details on using hashes here.

Provenance

The following attestation bundles were made for personalitygen-0.1.2-py3-none-any.whl:

Publisher: python-publish.yml on btfranklin/personalitygen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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