Python Package Exercise
An exercise to create a Python package, build it, test it, distribute it, and use it. See instructions for details.
Description
This package provides a simple Pomodoro timer system that allows developers to create, store, and manage timers programmatically.
PyPl Link
Contributors
For Users
Installation
Install the package via PyPI:
$ python -m pip install pomodoro-penguin
or if you are installing locally:
$ git clone https://github.com/swe-students-spring2026/3-package-emperor_penguins.git
$ cd 3-package-emperor_penguins
$ python -m pip install .
Running the Pomodoro Timer
After installing, you can run the terminal-based Pomodoro timer as follows:
$ python -m pomodoro --work 25 --break 5 --cycles 4
Parameters
--work- Work duration in minutes (default: 25)--break- Break duration in minutes (default: 5)--cycles- Number of Pomodoro cycles (default: 4)--history- Print history of Pomodoro cycles with its ID and Durations--use-timer- Paste timer ID from history and run it normally--version- Show the version of the Pomodoro TUI and exit
Examples
python -m pomodoro --work 10 --break 3 --cycles 2
This will start a Pomodoro session with:
- 10 minutes of work
- 3 minutes of break
- 2 cycles in total
The terminal will show the current sub-session and a progress bar for either studying or resting.
python -m pomodoro --history
This will show a history of pomodoro timers (timer ID, and work duration) that the user used.
python -m pomodoro --user-timer <timer_id>
This will allow to use an old pomodoro timer the user has already customized.
python -m pomodoro --version
This shows the version of the package that is being used currently.
For Developers
How to Contribute
-
If you use Windows OS, switch to git bash and then proceed. If you use a Unix-like OS, just proceed.
-
Clone the repository:
$ git clone https://github.com/swe-students-spring2026/3-package-emperor_penguins.git
-
Create a virtual environment using
pipenv. Please make sure you global python interpreter haspipenvinstalled. If not, install it:$ python -m pip install pipenv
-
After you have
pipenvinstalled, install all dependencies and activate a virtual environment$ python -m pipenv install --dev $ python -m pipenv shell
-
Now you should've noticed a prompt prefix in the terminal:
(3-package-emperor_penguins) xxx$
This indicates that you've been placed in a virtual environment!
-
(optional) Note that in some cases after your entry to the virtual environment, the texts that you code in the prompt might be invisible. Whenever this happens, run:
$ stty echo
and return. Now the texts you code should be visible again.
Example Code
Link to our example code on Github!
Run Coverage Tests
-
Make sure you've completed all the setup steps above.
-
Place all the test files under:
3-package-emperor_penguins/tests -
Direct to the root directory of the project:
$ cd xxx/3-package-emperor_penguins
-
Run the automatic coverage test script:
$ source run-test.sh
- Ideally, this will launch an automatic testing and display the coverage result in the default web browser.
Metadata
Release files for pomodoro-penguin 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pomodoro_penguin-1.0.4.tar.gz | 50.2 kB | Without provenance | Details for pomodoro_penguin-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pomodoro_penguin-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for pomodoro_penguin-1.0.4-py3-none-any.whl |
Total release size: 89.0 kB
Release files / pomodoro_penguin-1.0.4.tar.gz
| Download URL | pomodoro_penguin-1.0.4.tar.gz |
|---|---|
| Size | 50.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f627d909d4c30dc15f49c0499d8b0f0ee1e2783483b8df3703fb5d309ad3b065
|
|
BLAKE2b-256 checksum How to use checksums |
a5d933935f78593af3fc0aba5cbe9045d2ab5a316cc04902faa9814de66255c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / pomodoro_penguin-1.0.4-py3-none-any.whl
| Download URL | pomodoro_penguin-1.0.4-py3-none-any.whl |
|---|---|
| Size | 38.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec0c1cf35f9f7440e594d0385af4f48c1838309dd12b7b19004208bbf0a21c9b
|
|
BLAKE2b-256 checksum How to use checksums |
f35fc9d815472baba7a6284e670b1bd7e5c1e23eb156daf9ae4f1de10a4c2371
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for pomodoro-penguin 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.