How markamper04/dnsc-eclearance-hub works
DNSC e-Clearance Hub combines a role-based web hub with scheduled drop-folder ingestion. Students sign in to view office clearance statuses and deadlines, then obtain and verify a signed QR slip once cleared; staff update office statuses, while administrators review audit data and reports. Separately, automation imports signed Library XML and Accounting CSV data, updates clearance records, archives or quarantines files, and produces HOLD summaries. The README documents Registrar, Student Affairs, and Philippine-holiday integrations. Some endpoint and import details are unsampled, so only documented or excerpt-supported relationships are shown.
Main entry points: app.py Hub API · automate.py Import automation · schema.sql Clearance database · app.js PWA interface
Components 18
Clearance Hub
- PWA interface
static/app.js - Hub API
app.py - Authentication and roles
app.py - Clearance status
app.py - QR slips and verification
app.py - Admin reports and audit
app.py
Data Ingestion
- Import automation
automate.py - Library XML import
importers.py - Accounting CSV import
importers.py - Manifest validation
importers.py - Daily HOLD summary
automate.py
External Integrations
- Deadline calculation
clients.py - Registrar client
clients.py
Persistence
- Clearance database
schema.sql
Other components
- Hub users
- Registrar API
- Nager.Date holidays
- Signed drop files
Connections 19
- Hub users → PWA interface: uses
README.md - PWA interface → Hub API: requests
static/app.js - Hub API → Authentication and roles: checks roles
app.py - Hub API → Clearance database: reads and writes
app.py - Hub API → Clearance status: serves status
app.py - Hub API → QR slips and verification: issues and verifies
app.py - Hub API → Admin reports and audit: serves reports
app.py - Hub API → Deadline calculation: computes deadline
app.py - Deadline calculation → Nager.Date holidays: fetches holidays
clients.py - Import automation → Manifest validation: validates manifests
automate.py - Import automation → Library XML import: invokes importer
automate.py - Import automation → Accounting CSV import: invokes importer
automate.py - Import automation → Clearance database: reads and writes
automate.py - Import automation → Daily HOLD summary: generates report
automate.py - Signed drop files → Import automation: provides files
README.md - Library XML import → Clearance database: upserts clearance
importers.py - Accounting CSV import → Clearance database: upserts clearance
importers.py - Registrar client → Registrar API: fetches students
clients.py - Hub API → Registrar client: syncs student data
README.md