§ 9, section 4a of the German Einkommensteuergesetz (EStG) defines height of reimbursements on business trips. This library takes the from/to dates of a trip as well as the already-paid-for meals for each day and returns a list of days detailing how much must be paid to the employee.
As noted in the license, this software is provided without any warranty or guarantee for correctness.
Install libestg9s4a via pip:
$ pip install libestg9s4a
>>> import datetime as DT
>>> from libestg9s4a import EStG9s4a
Using python 3.6, do the following:
$ virtualenv venv --python=python3.6
$ pip install -e ".[dev]"
make test
: run tests (usetox
orpy.test
directly to supply flags like-k
)make lint
: run pylava and friendsmake fixlint
: sort imports correctly
Assuming you have been handed the required credentials, a new version can be released as follows.
- adapt the version in
setup.py
, according to semver. - commit this change as
Version 1.2.3
- tag the resulting commit as
v1.2.3
- push the new tag as well as the
master
branch - update the package on PyPI:
$ rm dist/*
$ python setup.py sdist bdist_wheel
$ twine upload dist/*
This library is currently python 3.6+. If you would like to use this library with a lower python version, please open an issue. We're happy to change things around.
New version numbers are assigned following semver. All 0.x.y versions are tested and usable, but do not have a stable public interface.
A version 1.0 will be released, once we deem the library stable.
All code in this repository is licensed under the MIT license.