How kierankinnaird/internal-tools works
This repository is a local Flask suite of construction and cost engineering tools, loaded as independently mountable modules. Users can search construction norms, manage jobcards and workpack task estimates, or manage workpacks and fill certification forms from templates. The graph shows the host/module lifecycle and the principal jobcard and certification workflows, plus norms lookup. Several workpack subsystems are supported by the SOURCE INDEX but their internal calls were not excerpted; only documented/import-visible relationships are drawn. Interfaces and data flow are represented where evidenced.
Main entry points: workpacks/web.py Workpack routes · fill.py Fill service · jobcards/web.py Jobcard routes · modules.py Module mounting
Components 24
Host platform
- Standalone host
hosts/standalone.py - Host context
core/context.py - Module mounting
core/modules.py - Audit log
core/context.py
Jobcards
- Jobcard routes
modules/jobcards/web.py - Jobcard records
modules/jobcards/repo.py - Hours and warnings
modules/jobcards/calc.py - Jobcard screens
modules/jobcards/static/jobcards.js
Norm lookup
- Norm routes
modules/norms/web.py - Norm search
modules/norms/service.py - Norms database
modules/norms/data/norms.sqlite
Workpack certificates
- Workpack routes
modules/workpacks/web.py - Project and certificates
modules/workpacks/repo.py - Form and row schema
modules/workpacks/fields.py - Certificate row tables
modules/workpacks/rowtables.py - Workbook import
modules/workpacks/importer.py - Template storage
modules/workpacks/store.py - Input workbook
modules/workpacks/sheet.py - Fill service
modules/workpacks/fill.py - Document filling engine
modules/workpacks/engine/fill_workpack.py - Saved fill runs
modules/workpacks/runs.py - Fill form settings
modules/workpacks/forms.py - Certificate fields
modules/workpacks/certfields.py
Other components
- Engineer
Connections 37
- Engineer → Standalone host: uses tools
README.md - Standalone host → Host context: creates context
hosts/standalone.py - Standalone host → Module mounting: mounts modules
hosts/standalone.py - Module mounting → Host context: supplies context
core/modules.py - Host context → Audit log: writes events
core/context.py - Module mounting → Jobcard routes: registers routes
modules/jobcards/manifest.py - Module mounting → Norm routes: registers routes
modules/norms/manifest.py - Module mounting → Workpack routes: registers routes
modules/workpacks/manifest.py - Engineer → Jobcard routes: manages cards
modules/jobcards/web.py - Jobcard routes → Jobcard records: reads and saves
modules/jobcards/web.py - Jobcard records → Hours and warnings: calculates totals
modules/jobcards/repo.py - Jobcard routes → Hours and warnings: calculates rollups
modules/jobcards/web.py - Jobcard routes → Jobcard screens: serves interface
- Jobcard routes → Norm search: requests suggestions
modules/jobcards/web.py - Engineer → Norm routes: looks up norms
modules/norms/web.py - Norm routes → Norm search: searches norms
modules/norms/web.py - Norm search → Norms database: queries database
modules/norms/service.py - Engineer → Workpack routes: manages certificates
modules/workpacks/web.py - Workpack routes → Project and certificates: reads and saves
modules/workpacks/web.py - Workpack routes → Form and row schema: uses form schema
modules/workpacks/web.py - Workpack routes → Certificate row tables: parses row input
modules/workpacks/web.py - Workpack routes → Workbook import: imports workbooks
modules/workpacks/web.py - Workpack routes → Template storage: checks templates
modules/workpacks/web.py - Workpack routes → Fill service: runs form filling
modules/workpacks/web.py - Workpack routes → Saved fill runs: stores run records
modules/workpacks/web.py - Workpack routes → Fill form settings: configures fills
modules/workpacks/web.py - Workpack routes → Certificate fields: builds field sections
modules/workpacks/web.py - Fill service → Project and certificates: loads project data
modules/workpacks/fill.py - Fill service → Template storage: checks templates
modules/workpacks/fill.py - Fill service → Input workbook: writes workbook
modules/workpacks/fill.py - Fill service → Document filling engine: runs engine
modules/workpacks/fill.py - Fill service → Form and row schema: selects row kinds
modules/workpacks/fill.py - Workbook import → Form and row schema: uses schema
modules/workpacks/importer.py - Workbook import → Project and certificates: saves imported data
modules/workpacks/importer.py - Workbook import → Certificate row tables: parses tables
modules/workpacks/importer.py - Workbook import → Document filling engine: reads workbook format
modules/workpacks/importer.py - Certificate row tables → Form and row schema: uses row kinds
modules/workpacks/rowtables.py