Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pwittchen/pkup
semi-automated generating of PKUP report
https://github.com/pwittchen/pkup
diff document git hybris pkup report sap word
Last synced: 2 months ago
JSON representation
semi-automated generating of PKUP report
- Host: GitHub
- URL: https://github.com/pwittchen/pkup
- Owner: pwittchen
- License: apache-2.0
- Created: 2016-12-21T19:51:23.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T11:19:40.000Z (almost 4 years ago)
- Last Synced: 2023-08-13T12:11:38.166Z (over 1 year ago)
- Topics: diff, document, git, hybris, pkup, report, sap, word
- Language: Python
- Homepage:
- Size: 37.1 KB
- Stars: 5
- Watchers: 4
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pkup [![Build Status](https://travis-ci.org/pwittchen/pkup.svg?branch=master)](https://travis-ci.org/pwittchen/pkup)
====
semi-automated generating of PKUP reportPKUP 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](https://wittchen.io/posts/automate-boring-stuff/).
Requirements
------------
- unix shell
- python
- pip### Satisfying requirements
- **macOS**: `brew install python3`
- **Ubuntu**: `sudo apt-get install python python-pip` (on other **Linux** distros simply use another package manager)
- **MS Windows**: this solution wasn't tested on MS Windows, but it should work with [Python](https://www.python.org/downloads/) and [Cygwin](https://cygwin.com/install.html). Here's a good resource regarding this topic: https://www.davidbaumgold.com/tutorials/set-up-python-windows/. Free VMs with Windows for non-Windows users, who want to perform tests, can be downloaded here: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/.Installation
------------Assuming you have `python`, `pip` and `git` installed, run the following commands:
```shell
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:
```shell
-h shows help
-m "" generates a report with a provided message
-g generates a report with an empty message
```exemplary usage of the script is as follows:
```shell
pkup -m ""
```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:
```shell
pkup -g
```To show help, type:
```shell
pkup -h
```Update
------To update scripts, type:
```shell
cd pkup
git pull
./install.sh
```Uninstallation
--------------To uninstall scripts, type:
```shell
./uninstall.sh
```Tests
-----To run python tests, type:
```shell
./pkup_doc_test.py
```**Please note**: Tests are quite poor right now and require improvements.