https://github.com/thepushkarp/small-db-test
https://github.com/thepushkarp/small-db-test
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thepushkarp/small-db-test
- Owner: thepushkarp
- Created: 2023-12-23T05:12:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-25T18:21:43.000Z (over 2 years ago)
- Last Synced: 2025-08-25T22:31:37.070Z (11 months ago)
- Language: Python
- Size: 292 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simplified Book Management App
## Overview
This project is a simplified demonstration of using SQLAlchemy in Python to manage a book database. It includes basic operations such as adding and retrieving books.
## Setup
### Requirements
- Python 3
- SQLAlchemy
### Installation
1. Install the required packages: `pip install -r requirements.txt`
2. Run the application: `python app.py`
## SQL Schema
The `schema.sql` file contains the SQL commands to create the `books` table and insert sample data.
## Application Details
`app.py` demonstrates how to use SQLAlchemy for basic database operations. It includes a simple `Book` model and functions for adding and retrieving books from the database.