Skip to content
/ pkup Public
forked from pwittchen/pkup

semi-automated generating of PKUP report

License

Notifications You must be signed in to change notification settings

Drupi/pkup

 
 

Repository files navigation

pkup Build Status

semi-automated generating of PKUP report

PKUP stands for Podwyższone Koszty Uzyskania Przychodu in Polish language. Every month every employee of my current company needs to generate PKUP report. It's legal issue, which allows to pay lower income taxes due to creative work. Preparing such report is boring & repeatable work, which can be automated. That's why this project was created. Read more in the article on the blog.

Requirements

  • unix shell
  • python
  • pip

Satisfying requirements

Installation

Assuming you have python, pip and git installed, run the following commands:

git clone https://github.com/pwittchen/pkup.git
cd pkup
./install.sh

Then, edit ~/.pkup.conf file to personalize your future reports. Remember that pkup script also takes into consideration your user name in .gitconfig file and it should be in format: Name Surname.

If you have problem with installing dependencies via installation script, try to install them manually via pip in the following way:

pip install -r requirements.txt

or

pip install python-docx

If it doesn't work, try to call pip3 instead of pip.

Usage

Parameters of the pkup script are as follows:

-h                             shows help
-m "<message for the report>"  generates a report with a provided message
-g                             generates a report with an empty message

exemplary usage of the script is as follows:

pkup -m "<message with description of your work>"

This command will generate *.diff files with changes made by user in defined repositories and appropriate report in *.docx file. Location of the reports and *.diff files is defined in .pkup.conf file and can be adjusted to user's needs.

You can also use script with -g parameter, which will generate report with an empty message and fill in the *.docx document later:

pkup -g

To show help, type:

pkup -h

Update

To update scripts, type:

cd pkup
git pull
./install.sh

Uninstallation

To uninstall scripts, type:

./uninstall.sh

Tests

To run python tests, type:

./pkup_doc_test.py

Please note: Tests are quite poor right now and require improvements.

About

semi-automated generating of PKUP report

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 55.5%
  • Shell 44.5%