How hug0rios/biblioteca works
ArmaZen is a small library-loan application with both a Flask web interface and a terminal interface. Users authenticate, then browse the catalog or view loans; clients can also renew their own loans. Biblioteca loads users, books, and loans from text files and coordinates the domain objects, while Emprestimo enforces loan limits, due dates, fines, and renewal rules. The excerpts show the application routes and core model, but not the templates’ contents; the presentation node therefore represents only the templates directory referenced by the routes.
Main entry points: Biblioteca.py Library coordinator · app.py Web application · main.py Terminal application · Cliente.py Client account
Components 13
Application entrypoints
- Web application
app.py - Terminal application
main.py
Library domain
- Library coordinator
model/Biblioteca.py - Client account
model/Cliente.py - Librarian account
model/Bibliotecario.py - User base
model/Usuario.py - Loan rules
model/Emprestimo.py - Book record
model/Livro.py
Text-file storage
- User records
usuarios.txt - Book records
livros.txt - Loan records
emprestimos.txt
Web presentation
- Web pages
templates
Other components
- Library user
Connections 17
- Library user → Web application: uses
- Library user → Terminal application: uses
- Web application → Library coordinator: loads and routes
app.py - Terminal application → Library coordinator: loads and authenticates
main.py - Terminal application → User base: dispatches menu
main.py - Web application → Web pages: renders
app.py - Library coordinator → User records: reads
model/Biblioteca.py - Library coordinator → Book records: reads
model/Biblioteca.py - Library coordinator → Loan records: reads and writes
model/Biblioteca.py - Library coordinator → Client account: creates
model/Biblioteca.py - Library coordinator → Librarian account: creates
model/Biblioteca.py - Library coordinator → Book record: creates
model/Biblioteca.py - Library coordinator → Loan rules: creates and renews
model/Biblioteca.py - Client account → User base: inherits
model/Cliente.py - Librarian account → User base: inherits
model/Bibliotecario.py - Client account → Library coordinator: requests library actions
model/Cliente.py - Librarian account → Library coordinator: requests library actions
model/Bibliotecario.py