How kal51411/metroverify works
MetroVerify is a legal-metrology verification API. Its visible workflow covers instrument records, application review and inspection scheduling, inspection results, certificate generation, and public certificate verification; certificate endpoints also provide QR codes and PDFs. The excerpts show a SQLAlchemy-backed SQLite store and seed-on-startup behavior. The README is empty, and the instrument excerpt is truncated; the graph therefore omits unshown application-submission behavior and limits links to relationships evidenced in the excerpts.
Main entry points: main.py FastAPI App · database.py DB Sessions · certificates.py Certificate Management · schemas.py API Schemas
Components 14
API and Records
- FastAPI App
main.py - Instrument Records
instruments.py
Verification Workflow
- Application Review
applications.py - Inspection Results
inspections.py
Certificates
- Certificate Management
certificates.py - Public Verification
verify.py - PDF Generation
pdf_services.py - QR Generation
qr_services.py
Data Foundation
- API Schemas
schemas.py - Domain Models
models.py - DB Sessions
database.py - SQLite Store
database.py - Demo Data Seeding
seed.py
Other components
- API Client
Connections 23
- API Client → FastAPI App: sends requests
- FastAPI App → Instrument Records: registers router
main.py - FastAPI App → Application Review: registers router
main.py - FastAPI App → Inspection Results: registers router
main.py - FastAPI App → Certificate Management: registers router
main.py - FastAPI App → Public Verification: registers router
main.py - FastAPI App → Domain Models: creates tables
main.py - FastAPI App → Demo Data Seeding: runs seed
main.py - FastAPI App → DB Sessions: opens session
main.py - Instrument Records → DB Sessions: queries records
instruments.py - Application Review → DB Sessions: queries and updates
applications.py - Inspection Results → DB Sessions: records results
inspections.py - Certificate Management → DB Sessions: reads and writes
certificates.py - Public Verification → DB Sessions: looks up certificates
verify.py - Demo Data Seeding → DB Sessions: seeds records
seed.py - Domain Models → DB Sessions: uses Base
models.py - DB Sessions → SQLite Store: connects
database.py - Application Review → API Schemas: uses request and response types
applications.py - Inspection Results → API Schemas: uses request and response types
inspections.py - Certificate Management → API Schemas: uses response type
certificates.py - Public Verification → API Schemas: returns response type
verify.py - Certificate Management → PDF Generation: generates PDF
certificates.py - Certificate Management → QR Generation: generates QR code
certificates.py