Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danpoynor/python-book-database
Exercise creating an SQL database including model creation and CRUD using SQLAlchemy
https://github.com/danpoynor/python-book-database
console-app crud demo-app python sqlalchemy-orm
Last synced: about 4 hours ago
JSON representation
Exercise creating an SQL database including model creation and CRUD using SQLAlchemy
- Host: GitHub
- URL: https://github.com/danpoynor/python-book-database
- Owner: danpoynor
- Created: 2022-07-20T15:29:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-14T20:43:33.000Z (about 1 year ago)
- Last Synced: 2023-11-14T21:37:41.999Z (about 1 year ago)
- Topics: console-app, crud, demo-app, python, sqlalchemy-orm
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Book Database
Exercise creating an SQLite database including model creation and CRUD using [SQLAlchemy](https://www.sqlalchemy.org/) (a Python Object Relational Mapper).
- Create a Book database model
- Interact with a database using CRUD (create, read, update, and delete)
- Use `session.query()` to access specific information and analyze data---
## How To Run
`cd python-book-database/`
and
`pip install -r requirements.txt`
then
`python app.py`
---
## Screenshot
---
## Potential TODOs
- [ ] Dive into [SQLAlchemy tutorials](https://docs.sqlalchemy.org/en/14/) and integrate more features
- [ ] Add [docstrings](https://teamtreehouse.com/library/docstrings) to each function
- [ ] Add [type hinting](https://teamtreehouse.com/library/python-type-hinting)
- [ ] Try creating pagination for the books so you only see 5 books at a time when viewing them
- [ ] Try giving the user options for searching for a book (besides searching by id)
- [ ] Try adding other columns to your database like topic area, difficulty level, number of pages, etc.