Skip to main content

A fun excuse generator for software engineers.

Project description

Excuse Generator for Software Engineers

Build Status Build Status

excuse-generator is a fun and practical Python package that helps software engineers come up with excuses for common coding problems. Whether you're dealing with bugs, missed deadlines, PR delays, failed deployments, or awkward meetings, this package has you covered!

Table of Contents

Installation

With pipenv:

  1. Install pipenv if you don't have it yet:
pip install pipenv
  1. Install the package and dependencies:
pipenv install --dev
pipenv shell

Or with pip:

  1. Install the package:
pip install excuse-gnerator

Lastly, Start the code with:

pipenv run python -m excuse_generator

Usage

You can import the excuse_genertator module and start generating excuses! Here are a few examples of how to use the package:

from excuse_generator.excuses import generate_excuse, add_custom_excuse, random_excuse, list_categories

# Get a random excuse
print(random_excuse())

# Get an excuse for a specific category (e.g., bug, deadline)
print(generate_excuse("bug"))

# Add a custom excuse to a category
add_custom_excuse("bug", "It's a feature, not a bug.")
print(generate_excuse("bug"))

# List all available categories
print(list_categories())

Example Output

It works on my machine.
The timeline was more of a suggestion.
It's a feature, not a bug.
['bug', 'deadline', 'PR', 'meeting', 'deployment']

Functions

1. generate_excuse(category: str, resp_type: str = None) -> str
   - Generates a random excuse based on the specified category.
   - Categories: "bug", "deadline", "PR", "meeting", "deployment", "meeting_resp"
   - Some categories (like "meeting_resp") have subcategories.
   - Example: generate_excuse("bug")
   - Example: generate_excuse("meeting_resp", "technical")

2. random_excuse() -> str
   - Returns a random excuse from any category.

3. add_custom_excuse(category: str, excuse: str, resp_type: str = None)
   - Adds a new excuse to an existing category.
   - If the category has subcategories, specify resp_type.
   - Example: add_custom_excuse("meeting_resp", "Dog unplugged my router.", "technical")

4. list_categories() -> list
   - Returns a list of available excuse categories and subcategories.

5. help()
   - Displays functions

Authors

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

excuse_generator-1.0.2.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

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

excuse_generator-1.0.2-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file excuse_generator-1.0.2.tar.gz.

File metadata

  • Download URL: excuse_generator-1.0.2.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for excuse_generator-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3602935504b3d378c3906319aa1b22d7ff2766a135abed48e3587b102f361efb
MD5 4c386a92cf377db1a0041a0bff59e194
BLAKE2b-256 2e93a7829c385045b4c5b31891bb9ce59cb0c700ed73e661c414a2a8e2c29c90

See more details on using hashes here.

File details

Details for the file excuse_generator-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for excuse_generator-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58ea212c70d4561f0428f23bfbe768f4f5861a5a7bd8bc0ac62331402e34fdf0
MD5 7e3b0ca8d0464ec7ee90ceae8acc8aff
BLAKE2b-256 c8c7c494d3d1359079cf7bed73f5e25265a2f17eb26962676e93be8fab608da2

See more details on using hashes here.

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