Skip to main content

Polish salary calculator

Project description

Polish Salary Calculator

A precise and configurable salary calculator for the Polish tax and social contribution system. The library supports multiple contract types, including Employment, Mandate, Work Contract, and Self-Employment, with full control over contribution rates, cost deductions, and tax configuration.

This library is intended for:

  • HR systems
  • Payroll automation tools
  • Business and accounting applications
  • Financial simulations and benchmarking

All monetary calculations use Decimal for accuracy.

Features

  • Employment Contract (Umowa o pracę)
  • Mandate Contract (Umowa zlecenie)
  • Work Contract (Umowa o dzieło)
  • Self-Employment (B2B) including lump-sum, linear tax, and more
  • Yearly salary summary and month-by-month adjustment
  • Contract-to-contract cost comparison
  • Export to Excel, CSV, JSON, and Pandas DataFrame
  • Builder-based configuration interface

Installation

pip install polish-salary-calc

Basic Example

from decimal import Decimal
from polish_salary_calc.rates.rates import Rates
from polish_salary_calc.contracts.employment_contract import EmploymentContract
from polish_salary_calc.contract_settings.employment_contract_settings import EmploymentContractSettings
from polish_salary_calc.contracts.base_contract import SalaryType

rates = Rates()

settings = (
    EmploymentContractSettings().builder()
    .is_increased_costs(True)
    .build()
)

contract = EmploymentContract(rates, settings)
contract.calculate(Decimal("7000"), SalaryType.GROSS)

print(contract)

Year Summary Example

from polish_salary_calc.summary.contract_summary import YearContractSummary
year_summary = YearContractSummary(rates, settings, Decimal("8000"), SalaryType.NET)
year_summary.calculate()
print(year_summary)

Export

contract.to_excel("contract.xlsx")
year_summary.to_json("summary.json")

Python Version Requirement

Python 3.9+

License

MIT

Project details


Download files

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

Source Distribution

polish_salary_calc-0.1.1.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polish_salary_calc-0.1.1-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file polish_salary_calc-0.1.1.tar.gz.

File metadata

  • Download URL: polish_salary_calc-0.1.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.5 Windows/11

File hashes

Hashes for polish_salary_calc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 37a11c34e51a435a49f1e3cd0f02721fbeca81a5313b3e719e70ca7ed0b6fbf6
MD5 444180e2ff2119e1dc0b1a66f0422ad9
BLAKE2b-256 4db2bddfccc4fa998f71e48639009d90b681592573ac8209147f604d72ab35e6

See more details on using hashes here.

File details

Details for the file polish_salary_calc-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for polish_salary_calc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 442732aa5b920615eb51c7ea274e01e2a4c0858417f5765cd16fbf2275b43eed
MD5 968a2cf97921735706acdbeb414a8efb
BLAKE2b-256 a655345f1db56fa8a17f867e7433005a9ccda2481c79b7218e1c5c597b324d7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page