Skip to main content

台灣勞健保勞退法定費用計算引擎 — 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


Download files

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

Source Distribution

taiwan_payroll-1.1.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

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

taiwan_payroll-1.1.0-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file taiwan_payroll-1.1.0.tar.gz.

File metadata

  • Download URL: taiwan_payroll-1.1.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for taiwan_payroll-1.1.0.tar.gz
Algorithm Hash digest
SHA256 22605449898081a5d16b5e744ab7ff4d6d4c124a0b2069bc3f526be65fb1a043
MD5 391b07c04e7a416f0091d2149506c1bf
BLAKE2b-256 c05b0aa28b82aa3370f988ed24a501c17c0848c311ee775d51f38a11cd7e54dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for taiwan_payroll-1.1.0.tar.gz:

Publisher: publish.yml on supra126/taiwan-payroll

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file taiwan_payroll-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: taiwan_payroll-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for taiwan_payroll-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96504630481119c97aa835c51b039fd1060d8885154b3d9e05c157cb58ff322f
MD5 d333136fa4c21bdb8e227bef4bf73d74
BLAKE2b-256 f02f388e51580e44ca4ea6c0c558bf8c1f322b5c496381a73be66be2e4fd11d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for taiwan_payroll-1.1.0-py3-none-any.whl:

Publisher: publish.yml on supra126/taiwan-payroll

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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