mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
deleted redundant packages folder
This commit is contained in:
parent
68401c517a
commit
960130b000
3 changed files with 0 additions and 62 deletions
|
|
@ -1,16 +0,0 @@
|
|||
# Shared packages
|
||||
|
||||
Workspace packages consumed by `services/*`. Each package is its own Python distribution with its own `pyproject.toml`; services import via the workspace dependency mechanism (`{ workspace = true }`).
|
||||
|
||||
| Package | Purpose |
|
||||
|---------|---------|
|
||||
| [`domain/`](./domain/) | Shared domain types — `Property`, `BaselinePerformance`, `Plan`, `Scenario`, `EpcPropertyData`, etc. No persistence, no IO, no business logic. |
|
||||
| [`repos/`](./repos/) | Persistence layer — one repo per aggregate. Owns the SQL. Depends on `domain`. |
|
||||
| [`fetchers/`](./fetchers/) | External API clients (gov EPC, Ofgem, Google Solar, etc.). Depend on `domain` for response shapes. |
|
||||
| [`utils/`](./utils/) | Cross-cutting infra — logging, S3, CloudWatch URL builders, SQS task helpers. |
|
||||
|
||||
## Adding a new shared package
|
||||
|
||||
Only when a real second consumer materialises. Don't pre-shatter (`repos-epc`, `repos-property`, ...) — split when a deployment needs to drop a dep, not before.
|
||||
|
||||
See [`../ara_backend_design.md`](../ara_backend_design.md) §11 for the broader monorepo layout and [`../CONTEXT.md`](../CONTEXT.md) for the domain glossary that names the types living in `domain/`.
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
# domna-domain
|
||||
|
||||
Shared domain types — `Property`, `Properties`, `BaselinePerformance`, `Plan`, `PlanPhase`, `Scenario`, `ScenarioPhase`, `ScenarioSnapshot`, `Recommendation`, `OptimisedPackage`, `EpcPropertyData`, etc.
|
||||
|
||||
**Boundary**: types only. No persistence, no IO, no business logic. Other packages and services depend on `domna-domain`; this package depends on nothing internal.
|
||||
|
||||
Domain definitions live in [`../../CONTEXT.md`](../../CONTEXT.md). New types added here must match the glossary terms.
|
||||
|
||||
## Layout
|
||||
|
||||
```
|
||||
src/domain/
|
||||
├── __init__.py
|
||||
├── property.py # Property, Properties, PropertyIdentity
|
||||
├── site_notes.py
|
||||
├── landlord_overrides.py
|
||||
├── baseline_performance.py # lodged + effective pair (ADR-0004)
|
||||
├── plan.py # Plan, PlanPhase, OptimisedPackage
|
||||
├── scenario.py # Scenario, ScenarioPhase, ScenarioSnapshot (ADR-0005)
|
||||
├── recommendation.py
|
||||
├── geospatial.py
|
||||
├── solar.py
|
||||
├── anomaly_flags.py
|
||||
└── ml/
|
||||
├── __init__.py
|
||||
├── transform.py # EpcMlTransform (versioned per §8.3)
|
||||
└── schema.py
|
||||
```
|
||||
|
||||
When `datatypes/epc/domain/` folds in, the EPC schema types move under `src/domain/epc/`.
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
[project]
|
||||
name = "domna-domain"
|
||||
version = "0.1.0"
|
||||
description = "Shared domain types for the Ara modelling pipeline and sibling Domna services."
|
||||
requires-python = ">=3.11"
|
||||
dependencies = [
|
||||
"pandas>=2.0",
|
||||
"pandas-stubs",
|
||||
]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/domain"]
|
||||
Loading…
Add table
Reference in a new issue