A fun excuse generator for software engineers.
Project description
Excuse Generator for Software Engineers
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:
- Install pipenv if you don't have it yet:
pip install pipenv
- Install the package and dependencies:
pipenv install --dev
pipenv shell
Or with pip:
- 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
- Andrew Jung (AndrewJung03)
- Juno Cheung (avacheungx)
- Ray Huang (RayHuang3339)
-
- Krish Kothari (krish-nyu)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3602935504b3d378c3906319aa1b22d7ff2766a135abed48e3587b102f361efb
|
|
| MD5 |
4c386a92cf377db1a0041a0bff59e194
|
|
| BLAKE2b-256 |
2e93a7829c385045b4c5b31891bb9ce59cb0c700ed73e661c414a2a8e2c29c90
|
File details
Details for the file excuse_generator-1.0.2-py3-none-any.whl.
File metadata
- Download URL: excuse_generator-1.0.2-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58ea212c70d4561f0428f23bfbe768f4f5861a5a7bd8bc0ac62331402e34fdf0
|
|
| MD5 |
7e3b0ca8d0464ec7ee90ceae8acc8aff
|
|
| BLAKE2b-256 |
c8c7c494d3d1359079cf7bed73f5e25265a2f17eb26962676e93be8fab608da2
|