Metadata-Version: 2.5
Name: interior-project-plan
Version: 0.1.0
Summary: Stage templates and dated plans for interior projects, plus repeating tasks (Mon-Sat working days) and task dependencies with loop checks.
Author: Hexaspace
License-Expression: MIT
License-File: LICENSE
Keywords: construction,dependencies,india,interior design,project management,recurring,schedule,tasks
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Office/Business :: Financial :: Accounting
Requires-Python: >=3.10
Provides-Extra: test
Requires-Dist: pytest>=7; extra == 'test'
Description-Content-Type: text/markdown

# interior-project-plan

Plan home-interior projects from a stage template, and run repeating and dependent tasks. Built for Indian practice: Mon–Sat working days, client sign-offs at each key stage.

- **Default template:** 7 stages and 30 tasks, taken from real turnkey projects. The stages are brief and measurement, concept, design development, BOQ approval, procurement and production, site execution, and handover. Each task has an owner role and a day offset. Five stages need the client's sign-off.
- **Modular kitchen template:** 6 stages for kitchen-only projects (measurement, design and 3D, quote sign-off, production, installation, handover), about 5-6 weeks. Load it with `load_template("kitchen")`; `available_templates()` lists the bundled ones.
- **`plan_project(start)`** turns the template into dated stages and task due dates. It skips Sundays by default.
- **Repeat rules:** daily (Mon–Sat), weekly on chosen days, monthly on a date or the last working day, or every N days. Repeats run on a fixed schedule or after the last one is done, with an optional end date. `describe()` gives a plain-English summary of a rule.
- **Dependencies:** "can't start until X is done", with loop detection.

Templates are plain JSON, so you can edit them or bring your own (office fit-out, retail, villa).

## Install

```bash
pip install interior-project-plan
```

## Example

```python
from datetime import date
from interior_project_plan import plan_project, client_approvals, load_template, next_due, describe

plan = plan_project(date(2026, 12, 1), people={"designer": "Asha", "senior": "Ravi"})
plan["end"]                 # planned handover date
client_approvals(plan)      # [{'stage': 'brief', 'ask': 'Sign off the brief', 'due': '2026-12-05'}, ...]

kitchen = plan_project(date(2026, 12, 1), template=load_template("kitchen"))
kitchen["end"]              # '2027-01-08'

rule = {"freq": "weekly", "days": [0, 3]}          # every Mon and Thu
describe(rule)                                      # 'Every Mon, Thu'
next_due(rule, date(2026, 12, 1))                   # date(2026, 12, 3)
```

## Contribute

New templates (office fit-out, renovation) are very welcome. Add a `<name>_template.json` file next to `default_template.json` (it then loads with `load_template("<name>")`) with a test. See issues labelled `good first issue`.

## Licence

MIT. Maintained by [Hexaspace](https://hexaspace.in).
