A task management package that lets you add, complete, and fetch random tasks.
Project description
Python Package Exercise
Funtasks: A Task Management Package
This package was created by generally following the Packaging Python Projects guide, with the addition of pipenv
for virtual environment management.
Overview
Funtasks is a simple and efficient task management package designed to help you add, complete, and randomly select tasks. It includes features for adding tasks with urgency levels, marking tasks as complete, and generating random tasks or daily goals based on your available time.
How to install and use this package
- Make sure you have
pipenv
installed. You can install it usingpip3
:pip3 install pipenv
- To install the package, use
pip3
because this package requires Python 3:pip3 install funtasks==0.1.11
- Activate the virtual environment:
pipenv shell
- Create a Python program file that imports the package and uses it, e.g.
from funtasks.tasks import add_task, complete_task, random_task, random_daily_goal, tasks
This approach lets you directly use add_task
, complete_task
, random_task
, and random_daily_goal
- Run the program:
python3 your_program_filename.py
- Exit the virtual environment:
exit
Additionally, we have provided an example script that you can run directly:
- Create an activate
pipenv
virtual environment as before. - Run the package directly from the command line:
python3 -m funtasks
. This should directly run the code in the__main__.py
. - Exit the virtual environment:
exit
How to run unit tests
We've included 3 unit tests for each function in our funtasks
package. To run these tests:
- Install pytest in a virtual environment
- Now, you can run the tests from the main project directory:
python3 -m pytest
- All tests should pass to ensure that the production code is behaving correctly
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
File details
Details for the file funtasks-0.1.14.tar.gz
.
File metadata
- Download URL: funtasks-0.1.14.tar.gz
- Upload date:
- Size: 42.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7685d5e76a4eea1fa01ffa397ff3997b5c90c35611bb038337e3cb7b4b042ba1 |
|
MD5 | 74aba00e0f34a9bfc06a093c1fed8c0d |
|
BLAKE2b-256 | 5ea0f6f09ab5471b552d4627e94f89e458bd7ed1aa5b929942e386526ea8ed6f |
File details
Details for the file funtasks-0.1.14-py3-none-any.whl
.
File metadata
- Download URL: funtasks-0.1.14-py3-none-any.whl
- Upload date:
- Size: 29.2 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 | 036d05b23ef8d9cd7ac7cf29e82362ba461cfbaaa8e049d8206bf15c48c29b00 |
|
MD5 | b4b8cc80aa24f5200923d51f2520e32b |
|
BLAKE2b-256 | 6c57b7463d416603113299ff8ca629dde939279fd4b6d58a525257fbef9d1f98 |