Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

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

Repository files navigation

Magazine Domain – Beginner Friendly Implementation

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

πŸš€ How to Run

  1. Install dependencies:

pipenv install pipenv shell

markdown Copy code

  1. Run tests:

pytest

markdown Copy code

  1. Test manually:

python debug.py

markdown Copy code


πŸ“‚ Files

  • author.py β†’ Author class
  • magazine.py β†’ Magazine class
  • article.py β†’ Article class
  • debug.py β†’ for testing
  • README.md β†’ project documentation

βœ” Features Implemented

Author

  • Read-only name
  • articles()
  • magazines()
  • add_article()
  • topic_areas()

Magazine

  • Editable name and category
  • articles()
  • contributors()
  • article_titles()
  • contributing_authors()
  • top_publisher() (class method)

Article

  • Read-only title
  • Changeable author
  • Changeable magazine
  • Tracks all articles globally

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages