Python Package for functions that will procrastinate on their outputs
Project description
Code Procrastinator
Code Procrastinator is a Python package that humanizes your code by giving it the ability to procrastinate—just like you! :D
Instead of executing tasks efficiently, it gets distracted, mindlessly browses the internet, or justifies its procrastination with excuses.
Installation
You can install Code Procrastinator from PyPI using pip:
This package requires Python 3.7 or higher
pip install code-procrastinator
Contributing
Want to improve Code Procrastinator? Follow these steps to set up your development environment!
Clone Repository
git clone https://github.com/software-students-spring2025/3-python-package-jeff-bezos.git
cd 3-python-package-jeff-bezos
Create a Virtual Environment
pip install pipenv
pipenv shell
Building
We automatically upload our package to PyPi using twine.
Before merging anything, ensure your contributions pass the unit tests
pytest procrastinator.py
Procrastinate()
The procrastinate function simulates what a human might do when procrastinating—whether it's scrolling the web, making excuses, or delaying execution.
Usage
To use Code Procrastinator in your own Python projects, simply import and call the procrastinate function:
from code_procrastinator import procrastinate
# Make your program procrastinate for up to 10 seconds, with 3 random delays
procrastinate(10, 3)
Function Behavior
- Randomly selects a number of unique delays between
0andmax_time. - After each delay, it executes a random procrastination action.
- Available actions include:
- Printing excuses for procrastination.
- Opening a fun website for distraction.
Arguments
| Argument | Type | Description |
|---|---|---|
max_time |
int |
The maximum number of seconds for any delay. Must be greater than 0. |
delay_count |
int |
The number of procrastination delays. Must be greater than 0. |
Exceptions
ValueError: Raised ifmax_timeordelay_countis less than or equal to0.
Return Value
set: A set of unique delay times used during procrastination.
Example Usage
>>> procrastinate(10, 3)
Procrastinating...
Let's take an internet break! :D https://en.wikipedia.org/wiki/Special:Random
Procrastinating...
Wow, this 4-hour video essay looks interesting...
Procrastinating...
I'll do it tomorrow
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 code_procrastinator-0.1.6.tar.gz.
File metadata
- Download URL: code_procrastinator-0.1.6.tar.gz
- Upload date:
- Size: 43.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72419b741848cc0a30cdec6d9eccf3a9f197d1868ec21cab70cea9c3ca184094
|
|
| MD5 |
754540c68b180b7ff2f865dea69f9b36
|
|
| BLAKE2b-256 |
41de9893feb74e5d4c847206352f1ae43cc0c9a64aa96df522bfd8d6f3c7237d
|
File details
Details for the file code_procrastinator-0.1.6-py3-none-any.whl.
File metadata
- Download URL: code_procrastinator-0.1.6-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de7aa12c5665bc040c2a8cf2942f0dee948273bd5bde248766c84405174b7a59
|
|
| MD5 |
bde4e24c79266c9b4e1b0b90b3539b44
|
|
| BLAKE2b-256 |
3801a1568f7089a6cc1c70ac8d18a4b84e3c9fef4fd57dab861474e7db04c0aa
|