Create your own Shit Happens playing cards!
Project description
Customized Shit Happens
Create your own Shit Happens playing cards!
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
About The Project
Ever wanted to play with your own Shit Happens playing cards? Now you can. Write down the most miserable situations you can think of and rank them. This project automatically outputs playing cards in pdf format.
This project is not related to the original card game. Open an issue in case of any objections.
Built With
Getting Started
Prerequisites
A virtual environment with python 3.11 or higher.
Installation
Run
pip install shithappens
from within the target environment.
To allow for pdf merging, run pip install shithappens[merge]
.
To show a progressbar, run pip install shithappens[pbar]
.
To install all dependencies, run pip install shithappens[all]
.
Usage
CLI
The tool is available as a command line interface (CLI). It requires an Excel file in the input directory (default current working directory). The excel files must have two columns with any header. The first column must contain the miserable situations. The second column must contain the corresponding misery indices. See the examples directory for an example.
usage: shithappens [-h] [-n NAME] [-m | --merge | --no-merge] [-s {front,back,both}] [-l {en,nl}] [-w WORKERS] [-c CHUNKS] [input_dir]
help:
-h, --help show this help message and exit
input:
input_dir Input directory. Defaults to current working directory.
options:
-n NAME, --name NAME Expansion name. If no name is specified, infers name from input_dir.
-m, --merge, --no-merge
Merge output. Defaults to --no-merge
-s {front,back,both}, --side {front,back,both}
Side(s) to generate. Defaults to both.
-l {en,nl}, --lang {en,nl}
Language. Defaults to 'en'.
multiprocessing:
-w WORKERS, --workers WORKERS
Number of workers. Defaults to 4.
-c CHUNKS, --chunks CHUNKS
Number of chunks for the workers to process. Defaults to 30.
The input directory must be structured as follows:
expansion
├───images
│ └───expansion-logo.*
├───outputs
│ ├───back
│ └───front
└───*.xlsx
If the output folder does not exist, it will be created. The format of the expansion logo must be on this list.
Contributing
Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the GPL-3.0 license. See LICENSE
for more information.
Contact
Project Link: https://github.com/siemdejong/shit-happens
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for shithappens-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff86b4acefc17520bb3f706ffb59f78e17508967dc4b23955f09da256be3951c |
|
MD5 | 653dfececdf65d6e4c635f458be760bf |
|
BLAKE2b-256 | 24628bea56f8fd5ff4c974bb487320413f2098337601cec1bc743a6f899e72be |