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().SettingsBuilder()
.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polish_salary_calc-0.1.3.tar.gz.
File metadata
- Download URL: polish_salary_calc-0.1.3.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.5 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb802d647646a366634205fdfb15c36527602e0c6ea829b6dfd0d4d7d4397857
|
|
| MD5 |
288726dfe8cc4ea8cb77d49cc0c90f34
|
|
| BLAKE2b-256 |
796f2e77aa2d745de51446d7c74519e073dc8826fa271c1d3238f52ff890d6df
|
File details
Details for the file polish_salary_calc-0.1.3-py3-none-any.whl.
File metadata
- Download URL: polish_salary_calc-0.1.3-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.5 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d5474e0ac57f5365d0cbdca07828c289afb767839da376f59a135eba733b038
|
|
| MD5 |
b8a659df2f6749fc2a132635c0699d9b
|
|
| BLAKE2b-256 |
ec1bb10c23c48aa684a97ebfdc5341c447e9fae616b9ed603e2d5803c0200cae
|