Skip to main content

Library Management System

I led development of a Python and SQL library system supporting a 10k+ record catalog, with checkout, returns, and circulation history.

Watercolor illustration of books, an open book, and a library card catalog
Concept illustration

The problem

A library needs to track its catalog and loans together. Repeating author details in each book record makes updates harder to keep consistent, while circulation records need to reflect which books are available.

My contribution

As lead developer, I built a database-backed library system with Python, SQLAlchemy, MySQL, and a Django frontend. The system supports a 10k+ record catalog, check-in and checkout, and circulation history.

The modeling decision

Books and authors have a many-to-many relationship. Putting a list of authors inside each book record would make updates fragile and querying difficult.

I normalized the schema to third normal form: separate Books, Authors, and Publishers tables, with a BookAuthors junction table. Circulation records link members and books with timestamps.

That means an author’s details can change in one place. Finding every book by that author becomes a join rather than a string search.

From schema to workflow

The Django interface gives librarians a way to manage circulation without direct database access. SQLAlchemy maps the schema to Python objects. Checkout updates availability and creates a circulation record within one transaction.

UML diagrams document the relationships so the team can understand and extend the design.

The result and lesson

The system supports catalog management, checkout, returns, and circulation history through a Django interface. Author details can be updated in one place, and checkout records availability and the loan together.

The practical lesson was to design around the librarian’s workflow as well as the relationships between records. A schema decision becomes useful when it makes an everyday action easier to carry out correctly.