Skip to main content

German income tax library

Project description

This is an experimental package, allowing the calculation of income tax rates in Germany (useful for freelancers, since they usually pay tax once per year only, resulting in a substantial amount owed).

The package is fairly incomplete, but can be used as a starting point; bug reports, feedback and pull requests are very welcome.

CLI

While being usable as a library, the package comes with an optional CLI. To use it, the click package must be installed as well:

$ detax --help
Usage: detax [OPTIONS] INCOME

Options:
  -y, --year INTEGER          Tax year
  -c, --church-tax [rk|ev]
  -s, --state TEXT
  -p, --perc / -P, --no-perc  Show total tax percentage
  --help                      Show this message and exit.

An example calculation for Baden-Württemberg:

$ detax -y 2017 -c rk -s BW 50000
Steuerjahr: 2017
Bundesland: BW
Einkommen: 50000.0 
Anz. Kinder: 0
Steuerklasse: 1
Kirchensteuer: katholisch, 8.00 %, capped at 3.50 % total income

   12636.00     Einkommenssteuer
     694.98     Solidaritätszuschlag
    1010.88     Kirchensteuer
-------------
   14341.86     Gesamt
Tax percentage: 28.7%

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for detax, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size detax-0.1-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size detax-0.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page