This project implements three classes:
- Author
- Magazine
- Article
These follow the relationships:
- An Author has many Articles
- A Magazine has many Articles
- Articles belong to ONE Author and ONE Magazine
- Author and Magazine are many-to-many THROUGH Article
- Install dependencies:
pipenv install pipenv shell
markdown Copy code
- Run tests:
pytest
markdown Copy code
- Test manually:
python debug.py
markdown Copy code
author.pyβ Author classmagazine.pyβ Magazine classarticle.pyβ Article classdebug.pyβ for testingREADME.mdβ project documentation
- Read-only
name articles()magazines()add_article()topic_areas()
- Editable
nameandcategory articles()contributors()article_titles()contributing_authors()top_publisher()(class method)
- Read-only
title - Changeable
author - Changeable
magazine - Tracks all articles globally