Skip to content

About

πŸŽ“ Smart Campus Lost & Found Item Recovery and Matching System built with Python, Flask, Tkinter & SQLite.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ“ SBMP Lost & Found Management System

Python Flask Tkinter SQLite Tests

An integrated campus asset recovery platform featuring an administrative Desktop Application (Tkinter) and a responsive Web Portal (Flask REST API) powered by intelligent item-matching algorithms.

Lead Developer: Aryan Yadav
Institution: SBMP College
Repository: Coderaryanyadav/LostAndFound


πŸ—οΈ System Architecture

graph TD
    subgraph ClientLayer["Client Interfaces"]
        W[Web Browser / Mobile]
        D[Desktop GUI / Admin & Security Station]
    end

    subgraph AppLayer["Application Layer"]
        F[Flask Web Server - app.py]
        T[Tkinter Desktop Engine - main.py]
        M[Smart Match Engine]
    end

    subgraph DataLayer["Storage Layer"]
        DB1[(college_data.db)]
        DB2[(lost_found.db)]
        L[Audit Activity Log - log.txt]
    end

    W -->|REST API Requests| F
    D -->|Direct Local Events| T

    F -->|Read / Write| DB1
    T -->|Read / Write| DB2
    T -->|Audit Records| L

    T -->|Invoke Matching| M
    F -->|Query Matching Rooms| DB1
Loading

πŸ”„ Match Resolution Workflow

sequenceDiagram
    autonumber
    actor Student as Student
    actor Watchman as Campus Watchman
    participant Engine as Lost & Found Engine
    actor Admin as Administrator

    Student->>Engine: Report Lost Belonging (Item, Color, Location)
    Engine-->>Student: Confirm Report Stored
    Watchman->>Engine: Turn in Found Item (Item, Color, Location)
    Engine->>Engine: Run Smart Match Algorithm
    alt Probable Match Found
        Engine-->>Watchman: Live Alert: Counterpart item detected!
        Admin->>Engine: Inspect Matched Item Pair
        Admin->>Engine: Verify Ownership & Release
        Engine->>Engine: Update Status to "Returned"
        Engine-->>Student: Case Marked Resolved
    else No Immediate Match
        Engine->>Engine: Keep Status as "Searching" / "Available"
    end
Loading

πŸš€ Quick Setup & Execution

Prerequisites

  • Python 3.8+
  • SQLite3

1. Clone & Install Dependencies

git clone https://github.com/Coderaryanyadav/LostAndFound.git
cd LostAndFound
pip install -r requirements.txt

2. Run the Web Application

python app.py

Open your browser to: http://127.0.0.1:5000

3. Run the Desktop Application

python main.py

πŸ”‘ Default Credentials

  • Admin Account: admin / admin
  • Student Accounts: Self-register via the "New Student? Register Here" button on the desktop landing screen.

βš™οΈ Features

Feature Description Platform
Real-Time Dashboard Visual statistics on active reports and matched belongings Web
Student Self-Service Register, login, report personal lost items, and track status Desktop
Found Registry Dedicated intake workflow for campus security and watchmen Both
Smart Matching Keyword token analysis, color checking, and room proximity logic Both
CSV Data Export One-click offline backup generation Web & Desktop
Audit Trails Timestamped action logging saved to log.txt Desktop

πŸ§ͺ Testing & Verification

# Run web route unit test suite
python -m unittest test_app.py

# Run desktop logic & matching algorithm test suite
python -m unittest test_main.py

# Run complete end-to-end API test suite (start app.py first)
python heavy_test.py

πŸ“œ Community & Governance

  • Contributing Guidelines
  • Code of Conduct
  • Security Policy
  • Project License

About

πŸŽ“ Smart Campus Lost & Found Item Recovery and Matching System built with Python, Flask, Tkinter & SQLite.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages