Skip to main content

A task management package that lets you add, complete, and fetch random tasks.

Project description

Python build & test

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

  1. Make sure you have pipenv installed. You can install it using pip3:
    pip3 install pipenv
    
  2. To install the package, use pip3 because this package requires Python 3:
    pip3 install funtasks==0.1.11
    
  3. Activate the virtual environment:
    pipenv shell
    
  4. 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

  1. Run the program:
    python3 your_program_filename.py
    
  2. Exit the virtual environment: exit

Additionally, we have provided an example script that you can run directly:

  1. Create an activate pipenv virtual environment as before.
  2. Run the package directly from the command line: python3 -m funtasks. This should directly run the code in the __main__.py.
  3. 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:

  1. Install pytest in a virtual environment
  2. Now, you can run the tests from the main project directory: python3 -m pytest
  3. All tests should pass to ensure that the production code is behaving correctly

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

funtasks-0.1.14.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

funtasks-0.1.14-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

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

Hashes for funtasks-0.1.14.tar.gz
Algorithm Hash digest
SHA256 7685d5e76a4eea1fa01ffa397ff3997b5c90c35611bb038337e3cb7b4b042ba1
MD5 74aba00e0f34a9bfc06a093c1fed8c0d
BLAKE2b-256 5ea0f6f09ab5471b552d4627e94f89e458bd7ed1aa5b929942e386526ea8ed6f

See more details on using hashes here.

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

Hashes for funtasks-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 036d05b23ef8d9cd7ac7cf29e82362ba461cfbaaa8e049d8206bf15c48c29b00
MD5 b4b8cc80aa24f5200923d51f2520e32b
BLAKE2b-256 6c57b7463d416603113299ff8ca629dde939279fd4b6d58a525257fbef9d1f98

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page