A command-line tool that generates random interrupts throughout a specified time period, inspired by Andrew Huberman's research on productivity and focus.
Project description
Random Interrupt Helper - Usage Guide
Basic Usage
The Random Interrupt Helper is a command-line tool that generates random interrupts over a specified time period, inspired by Andrew Huberman's research on productivity and focus. Here's how to use it:
- Open a terminal or command prompt.
- Navigate to the project directory.
- Run the script with the required arguments:
python src/random_interrupt/main.py --overall-time <minutes> --number-of-interrupts <count> [--min-gap <minutes>] [--notification-title <title>] [--notification-message <message>] [--notification-timeout <seconds>]
Arguments
--overall-time: (Required) The total time period in minutes for which you want to generate interrupts.--number-of-interrupts: (Required) The total number of interrupts to generate.--min-gap: (Optional) The minimum time between interrupts in minutes.--notification-title: (Optional) Title for the notification (default: "Random Interrupt").--notification-message: (Optional) Message for the notification (default: "Time for a break!").--notification-timeout: (Optional) Notification timeout in seconds (default: 10).
Examples
-
Generate 5 interrupts over a 60-minute period:
python src/random_interrupt/main.py --overall-time 60 --number-of-interrupts 5 -
Generate 10 interrupts over a 2-hour period with a minimum gap of 5 minutes:
python src/random_interrupt/main.py --overall-time 120 --number-of-interrupts 10 --min-gap 5 -
Generate 5 interrupts over a 60-minute period with custom notification settings:
python src/random_interrupt/main.py --overall-time 60 --number-of-interrupts 5 --notification-title "Focus Break" --notification-message "Take a deep breath" --notification-timeout 15 -
Combine all optional parameters:
python src/random_interrupt/main.py --overall-time 90 --number-of-interrupts 6 --min-gap 10 --notification-title "Productivity Boost" --notification-message "Stand up and stretch!" --notification-timeout 20
Behaviour
- The script will generate random interrupt times based on your input.
- It will print the generated interrupt times to the console.
- At each interrupt time, a desktop notification will be displayed with the specified title, message, and timeout duration.
- The script will run for the entire duration specified by
--overall-time.
Tips
- Use this tool to implement random break schedules in your work routine.
- Experiment with different settings to find what works best for your focus and productivity.
- Customize notification messages to include specific actions or reminders.
- Adjust the notification timeout to ensure you have enough time to read and act on the message.
- Remember that this tool is inspired by Andrew Huberman's research on optimizing focus and productivity throughout the day.
For more information on the science behind this approach, visit Huberman Lab.
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 random_interrupt-0.1.2.tar.gz.
File metadata
- Download URL: random_interrupt-0.1.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1854df7c05ffc1a7b4658aaa1d0c5739e3d7d2ecf1bb89ce52a98e0eacdc5efa
|
|
| MD5 |
3d5c797241ba51514d51cb1048edf163
|
|
| BLAKE2b-256 |
82898f8b97717c5c3dc99f93550ff37d22b245bf0cb504d0233702c372a94a69
|
File details
Details for the file random_interrupt-0.1.2-py3-none-any.whl.
File metadata
- Download URL: random_interrupt-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48adbedd75913b0e54f4b68b2f193a50e43031491584de38d1e0734cddd076ef
|
|
| MD5 |
56205e2e7eb86b394918e1b9e2de9150
|
|
| BLAKE2b-256 |
4715440f2388f864a710ff9a17f3b2954cbdcb53d2c1537cdd9038977806842a
|