Metadata-Version: 2.4
Name: haracz
Version: 0.1.2
Summary: Polish employment & tax calculator — UoP, JDG/B2B, all tax forms
Project-URL: Homepage, https://github.com/saiden-dev/haracz
Project-URL: Repository, https://github.com/saiden-dev/haracz
Author-email: Adam Ladachowski <adam@saiden.pl>
License-Expression: MIT
License-File: LICENSE
Keywords: b2b,calculator,jdg,pit,poland,tax,uop,zus
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Office/Business :: Financial
Requires-Python: >=3.12
Provides-Extra: all
Requires-Dist: fastapi>=0.115; extra == 'all'
Requires-Dist: httpx>=0.28; extra == 'all'
Requires-Dist: rich>=13; extra == 'all'
Requires-Dist: typer>=0.15; extra == 'all'
Requires-Dist: uvicorn>=0.34; extra == 'all'
Provides-Extra: cli
Requires-Dist: rich>=13; extra == 'cli'
Requires-Dist: typer>=0.15; extra == 'cli'
Provides-Extra: currency
Requires-Dist: httpx>=0.28; extra == 'currency'
Provides-Extra: server
Requires-Dist: fastapi>=0.115; extra == 'server'
Requires-Dist: uvicorn>=0.34; extra == 'server'
Description-Content-Type: text/markdown

# haracz

Polish employment & tax calculator — CLI tool and Python library.

Compare net income across UoP (Umowa o Pracę), JDG/B2B with all tax forms, side by side.

## Install

```bash
pip install haracz[all]    # CLI + currency conversion
pip install haracz          # library only
```

## CLI Usage

```bash
haracz uop 15000                          # gross to net
haracz jdg 25000 --form liniowy           # JDG flat 19%
haracz compare 25000                      # all scenarios side-by-side
haracz convert 94450 NOK --compare        # foreign contract comparison
```

## Library Usage

```python
from decimal import Decimal
from haracz import uop, compare_all

result = uop.gross_to_net(Decimal("15000"))
print(f"Net: {result.total_net}, Effective rate: {result.effective_rate:.1%}")
```

## Scenarios

- **UoP** — gross to net, net to gross, employer cost
- **JDG Skala Podatkowa** — 12%/32% progressive
- **JDG Podatek Liniowy** — 19% flat
- **JDG Ryczałt** — 12% (IT), 8.5%, 15%

## License

MIT
