Skip to main content

Call of Cthulhu character generator

Project description

PyPI version License: GNU AGPL v3 Code style: black Language: Python Author: Walu

Call Of Cthulhu Character Generator

Fast way of creating a random character for Call of Cthulhu RPG 7th ed.

Summary

cochar stands for Call of Cthulhu Character. It's a python package design to create a full characters for Call of Cthulhu RPG 7th ed.

www.cochar.pl demonstrates a power of cochar package.

Table of Contents

Installation

pip3 install cochar

Usage

Basic

Example:

>>> from cochar import create_character
>>> person = create_character(1925, "US")
>>> person
>>> Character(year=1925, country='US', first_name='Anthem', last_name='Pharr', age=22, sex='M', occupation='doctor of medicine', strength=33, condition=30, size=78, dexterity=40, appearance=23, education=87, intelligence=65, power=50, move_rate=7, luck=38, skills={'first aid': 38, 'language [latin]': 9, 'medicine': 73, 'science [biology]': 48, 'ride': 64, 'anthropology': 6, 'charm': 46, 'intimidate': 32, 'art/craft (sculptor)': 9, 'credit rating': 74, 'dodge': 20}, damage_bonus='0', build=0, dodge=20, sanity_points=50, magic_points=10, hit_points=10)

Default settings

Default settings are defined in ./data/settings.json.

{
  "min_age": 15,
  "max_age": 90,
  "max_skill_level": 90,
  "year": 1925,
  "age": null,
  "sex": null,
  "first_name": null,
  "last_name": null,
  "country": "US",
  "occupation": null,
  "weights": true,
  "database": "",
  "show_warnings": false,
  "occupation_type": null,
  "era": null,
  "tags": null
}

Dependencies

cochar depends on randname module for generating random names.

For more details please see:

Documentation

Detailed documentation of module can by found here: cochar documentation

Contribution

If you want to contribute to cochar project read contribution for more information.

Web Version

Web application is not a part of cochar package.

Web application was design to present the power of cochar package. You can check it out on www.cochar.pl

Author

Adam Walkiewicz

License

Cochar is licensed under the terms of the GNU AGPL v3

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

cochar-1.0.1.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

cochar-1.0.1-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

File details

Details for the file cochar-1.0.1.tar.gz.

File metadata

  • Download URL: cochar-1.0.1.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for cochar-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4e840ce985f580b22a041b27d695c3924b3b158eca8944cef0ebf1a8f4249b8f
MD5 680ccf5559691a174733cfd1b4c83855
BLAKE2b-256 d5c388f365991e1b93b06fd2d4dad93a3cd28d7d85b1a71a8c0da97aac780a6a

See more details on using hashes here.

File details

Details for the file cochar-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: cochar-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 44.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for cochar-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9c7f0de87741d3dc324114ba6f5b7accf42d4c53bb7665277caa660a0ff8173
MD5 606f897d70e2ad7937cc972bc579b0fb
BLAKE2b-256 56f1972a84a752de16effaa107e0c390ad88daa8b47c9701403209b09e125eb3

See more details on using hashes here.

Supported by

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