Metadata-Version: 2.5
Name: rosterops
Version: 0.1.0
Summary: Deterministic, configurable, Polars-based pharma roster processing and validation engine
Author: rosterops contributors
License: MIT License
        
        Copyright (c) 2026 rosterops contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: effective-dates,pharma,polars,roster,validation
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Office/Business
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: polars<3.0,>=1.0
Requires-Dist: pydantic<3.0,>=2.6
Requires-Dist: pyyaml<7.0,>=6.0
Provides-Extra: dev
Requires-Dist: build>=1.2; extra == 'dev'
Requires-Dist: hypothesis>=6.100; extra == 'dev'
Requires-Dist: mypy>=1.10; extra == 'dev'
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.6; extra == 'dev'
Requires-Dist: types-pyyaml>=6.0; extra == 'dev'
Provides-Extra: excel
Requires-Dist: fastexcel<1.0,>=0.10; extra == 'excel'
Requires-Dist: openpyxl<4.0,>=3.1; extra == 'excel'
Provides-Extra: pandas
Requires-Dist: pandas<3.0,>=2.0; extra == 'pandas'
Requires-Dist: pyarrow>=14.0; extra == 'pandas'
Description-Content-Type: text/markdown

# rosterops

**A deterministic, configurable, Polars-based pharma roster processing and
validation engine.**

`rosterops` ingests a baseline roster (or a single snapshot) plus optional
movement files — transfers, promotions, terminations, leave, hires/rehires,
temporary coverage — normalizes them into a canonical model, reconstructs the
expected roster as of a requested date, applies configurable business rules,
and returns validated Polars DataFrames with audit-ready reports.

It is a local-first data-processing library and CLI. It never writes back to a
CRM, HR system, or database, requires no network access, and never fabricates
historical events from a single snapshot.

## Status

**Beta (Phases 0–8 complete).** `process` and `validate` commands are
implemented (Modes A/B), rules execute end-to-end, outputs include CSV/Parquet/JSON
and `rosterops_report.xlsx`, reconciliation and movement metrics are computed,
and the example scenario runs. See
[`IMPLEMENTATION_PHASES.md`](IMPLEMENTATION_PHASES.md) for the full tracker
and [`REQUIREMENTS.md`](REQUIREMENTS.md) for the operative specification.

## Install

```bash
pip install -e ".[dev]"          # development
pip install -e ".[excel]"        # with Excel read/write support
pip install -e ".[pandas]"       # with pandas interop
```

Requires Python 3.10+. Core dependencies: `polars`, `pydantic`, `PyYAML`.

## Quick look

```bash
rosterops --help
rosterops --version
rosterops rules list
rosterops rules describe TRF-002
rosterops validate-inputs --config examples/config/scenario.yaml
```

```python
from rosterops import RosterConfig

config = RosterConfig.from_file("examples/config/scenario.yaml")
print(config.data.grain)
```

## Documentation

- [`REQUIREMENTS.md`](REQUIREMENTS.md) — operative requirements: modes,
  domain model, effective-date semantics, the 86-rule catalogue, outputs,
  security, testing.
- [`IMPLEMENTATION_PHASES.md`](IMPLEMENTATION_PHASES.md) — phase-by-phase
  progress tracker with acceptance criteria, test matrices, and backlog.

## Development

```bash
ruff check . && ruff format --check .
mypy src
pytest
```

## License

MIT — see [LICENSE](LICENSE).
