Skip to content
/ pkup Public

semi-automated generating of PKUP report

License

Notifications You must be signed in to change notification settings

pwittchen/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.

Usage

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.

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_test.py

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