Skip to main content

A procrastination helper package

Project description

Python Package Exercise

CI

Procastinatrix is a lighthearted Python package for procrastinators who still want to feel a little productive.

procastinatrix gives you:

  • encouraging messages
  • fake productive activity suggestions
  • snack recommendations based on mood
  • break suggestions based on your deadline and other helpful messages to keep you focused and motivated.

PyPI

Install from PyPI: https://pypi.org/project/procastinatrix

pip install procastinatrix

Importing the Package

A developer can import the package using:

import procastinatrix as lib

Usage and Functions

instructions()

Returns a short summary of the package functions

lib.instructions()

motivation()

Returns a random encouraging message

lib.motivation()

fake_productivity()

Prompts the user to choose a category and returns an activity in that category

lib.fake_productivity()

recommend_snack(mood, sweet_level)

Returns a snack based on mood and sweet level

  • mood should be "happy", "stressed", or "sleepy"
  • sweet_level should be between 0 and 10
lib.recommend_snack("stressed", 8)

break_excuse(deadline)

Suggests a break time based on deadline provided

  • deadline: integer representing minutes until the deadline
lib.break_excuse(120)

procrastination_plan(task, urgency, guilt_level)

Returns a procrastination strategy based on urgency and guilt level

  • task: non-empty string describing the task
  • urgency: integer between 0 and 10
  • guilt_level: integer between 0 and 10
lib.procrastination_plan("essay", 7, 8)

reward(snack, task)

Returns a reward message encouraging the user to complete a task.

  • snack: string representing a reward (e.g., "boba")
  • task: string describing the task
lib.reward("boba", "essay")

return_to_work_message(task, break_length)

Returns a message encouraging the user to return to work after a break.

  • task: string describing the task
  • break_length: integer representing minutes of the break
lib.return_to_work_message("essay", 20)

Example Program

A complete example program using all package functions is included here:

example.py

Run it with:

python example.py

Development Setup

1. Clone the repository

git clone https://github.com/swe-students-spring2026/3-package-spotted_hyena.git
cd 3-package-spotted_hyena

2. Create and activate a virtual environment

On macOS and Linux

python3 -m venv venv
source venv/bin/activate

On Windows

python -m venv venv
venv\Scripts\activate

3. Install dependencies

pip install pipenv build
pipenv install --dev

4. Run tests

pipenv run pytest

5. Build the package

pipenv run python -m build

Running the Project

Run by importing the package or by running the example package

Configuration

No configuration is required

Team Members

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

procastinatrix-0.1.4.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

procastinatrix-0.1.4-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file procastinatrix-0.1.4.tar.gz.

File metadata

  • Download URL: procastinatrix-0.1.4.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for procastinatrix-0.1.4.tar.gz
Algorithm Hash digest
SHA256 731cf2d9fd77f2bde0465a9eec48eae8d6c6d276e5e48212a5e22833deef75fb
MD5 e882bf00b221f0dc012103a86b4c5ab6
BLAKE2b-256 4457db21b9e717d85a3eda57ef2806f9562e59369376806e544b49017c46abeb

See more details on using hashes here.

File details

Details for the file procastinatrix-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: procastinatrix-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for procastinatrix-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 28c54dee2dfc2f3c44bf05ff1f93ba87eb4b136349dc19fe75200d3fe965d4fe
MD5 d3de24a152318d31529945a5d4062b62
BLAKE2b-256 9b83059ed3d30180a27372fd082239e58f4feee222a913cab23250dc128f7406

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