This script prints a file with the activities with their priority in the root directory
Project description
Calculate priority of the activities
This project was born after readning the comments in this post of HackerNews. This application writes a file with a list of the activites and their priority (numeric index: 1 highest priority, 2 less prioritary, etc). In detail:
- The application reads two existing files:
- activity-date.csv (Activity,Start,End) about the duration of an activity
- activity-importance.csv (Activity,Importance) about the importance of an activity. The meaning of importance is relative and vague. A definition can be: if you have two activites A and B in the same time, A is more important of B if doing A you can earn more money (or, lose less money) than doing B.
- The application writes one file ordered-activities.csv (Activity, Priority)
Feature
[O] The input files can have a different order of the activities each other (now the order has to be the same, otherwise an Exception will be run) [O] The final list can be separated in "activities already started" (start date minor than today) and "future activities" (start date major than today) [O] The final list can be separated by the area of interest of the project (Area of responsability in GTD meaning)
Bug
[X] Fix the unit test [O] Resolve the TODO in the code [O] Organize the structure following the guidelines in The Hitchhiker's Guide to Python!
Status CI Integration
I use Travis
Getting started
Prerequisites
- Python 3.0+
- pip
- pytest
Installing
- Clone the project with git-clone (or download directly it)
- Have fun!
Running the tests
- In this version the unit test are inside the module and are not completed. TDD, sorry :(
Break down into to end to end tests
No indications
Coding styles sheets
Please read the file CONTRIBUTING.md
Deployment
- No package built (sorry, I'm a beginner in Python :) )
- Run >>> python Main.py
Built with:
Contributing
Please read the CONTRIBUTING.md for the details about the code of conduct and the process for submitting pull requests.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Alessandro Puzielli - creator - Alepuzio
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- PurpleBooth - to publish an excellent template of README that I used in this project
- Yegor256 - to write the post Elegant READMEs about the README file and the An Open Code Base Is Not Yet an Open Source Project for the Open Source activities
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 Distributions
Built Distribution
File details
Details for the file calculate_priority_activities-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: calculate_priority_activities-1.0.4-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 826205de740baea28785fdf22de9abe8a0d6c361b100d93fb89b108a2ccbb337 |
|
MD5 | 8969cd4ba3bbb2617dae3b13d59baab8 |
|
BLAKE2b-256 | 8ea76459a2f0a32aedaf23140bc0877b5cf4d47a7cf2b2b28e2550fa00bfc90b |