台灣勞健保勞退法定費用計算引擎 — Taiwan statutory payroll calculation engine
Project description
taiwan-payroll (Python)
台灣勞健保勞退法定費用計算引擎的 Python 實作。讀同一份 data/,跑通同一套 testdata/ 黃金向量,與 TypeScript 版計算結果完全一致。零執行期依賴(純 stdlib)。
安裝
pip install taiwan-payroll
用法
from taiwan_payroll import create_payroll_engine, CalculateInput, SupplementaryInput, ProratedInput
engine = create_payroll_engine(year=2026)
engine.calculate(CalculateInput(monthly_salary=42000, dependents=1, pension_self_contribution=0.06))
engine.calculate_supplementary(SupplementaryInput(type="bonus", amount=200000, monthly_insured_salary=42000))
engine.calculate_prorated(ProratedInput(monthly_salary=29500, start_date="2026-03-08"))
開發
cd packages/python && python3 -m venv .venv && .venv/bin/python -m pip install -e ".[test]"
.venv/bin/python -m pytest
跨語言一致性:tests/test_vectors.py 載入 repo 根 testdata/ 的同一套黃金向量,與 TypeScript 引擎逐位元比對。
免責聲明
計算結果僅供參考,實際應繳金額以勞保局、健保署核發之繳款單為準。
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 taiwan_payroll-1.0.1.tar.gz.
File metadata
- Download URL: taiwan_payroll-1.0.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
601afe9780bc3b040b1a1c41067bc8814b023d6cae309e61658b0ff8ec9aa9b7
|
|
| MD5 |
33b35631ff8bf35ba570a61993914ada
|
|
| BLAKE2b-256 |
cc59196e5cac008310f6da1373374a2021b1d4f5bb5589991f9b345b89138083
|
Provenance
The following attestation bundles were made for taiwan_payroll-1.0.1.tar.gz:
Publisher:
publish.yml on supra126/taiwan-payroll
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
taiwan_payroll-1.0.1.tar.gz -
Subject digest:
601afe9780bc3b040b1a1c41067bc8814b023d6cae309e61658b0ff8ec9aa9b7 - Sigstore transparency entry: 1731436466
- Sigstore integration time:
-
Permalink:
supra126/taiwan-payroll@024e7db9f6171f54dcbdcb18fcd0c46b62b03ebc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/supra126
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@024e7db9f6171f54dcbdcb18fcd0c46b62b03ebc -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file taiwan_payroll-1.0.1-py3-none-any.whl.
File metadata
- Download URL: taiwan_payroll-1.0.1-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c3310a6068145d2a6a1a8f34b96cc19b1e63d87a67e639b49c60243915a5535
|
|
| MD5 |
fdf65786e368c8b4fb55b87c380c511a
|
|
| BLAKE2b-256 |
7f5c1b39cdc302265710c39bd26bc37d5ac7815ef78f3dbb0757dfe8ddfe6e7e
|
Provenance
The following attestation bundles were made for taiwan_payroll-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on supra126/taiwan-payroll
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
taiwan_payroll-1.0.1-py3-none-any.whl -
Subject digest:
9c3310a6068145d2a6a1a8f34b96cc19b1e63d87a67e639b49c60243915a5535 - Sigstore transparency entry: 1731436510
- Sigstore integration time:
-
Permalink:
supra126/taiwan-payroll@024e7db9f6171f54dcbdcb18fcd0c46b62b03ebc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/supra126
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@024e7db9f6171f54dcbdcb18fcd0c46b62b03ebc -
Trigger Event:
workflow_dispatch
-
Statement type: