{"id":25968990,"url":"https://github.com/jarrarshahid/oop","last_synced_at":"2026-04-20T04:35:59.624Z","repository":{"id":279784193,"uuid":"939922619","full_name":"JarrarShahid/OOP","owner":"JarrarShahid","description":"OOP is a comprehensive repository covering OOP principles, SOLID design patterns, real-world applications, and API development with Flask \u0026 FastAPI. It includes advanced concepts like metaclasses, multiple inheritance, and dependency injection, along with full-fledged projects using SQLite/PostgreSQL. Perfect for begginers and advanced programmers.","archived":false,"fork":false,"pushed_at":"2025-03-27T14:54:21.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T15:49:50.693Z","etag":null,"topics":["advanced-python","backend-development","cli-tools","design-patterns","employee-management","fastapi","flask","inventory-management-system","object-oriented-programming","object-oriented-programming-python","oop","python","real-world-applications","software-architecture","solid-principles","sqlalchemy","sqlite","todo-app"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JarrarShahid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-27T10:27:54.000Z","updated_at":"2025-03-27T14:54:25.000Z","dependencies_parsed_at":"2025-02-27T16:27:09.481Z","dependency_job_id":"6044fd72-862a-4ed1-a8c1-d466486b82ea","html_url":"https://github.com/JarrarShahid/OOP","commit_stats":null,"previous_names":["jarrarshahid/oop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JarrarShahid/OOP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JarrarShahid%2FOOP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JarrarShahid%2FOOP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JarrarShahid%2FOOP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JarrarShahid%2FOOP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JarrarShahid","download_url":"https://codeload.github.com/JarrarShahid/OOP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JarrarShahid%2FOOP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32032840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advanced-python","backend-development","cli-tools","design-patterns","employee-management","fastapi","flask","inventory-management-system","object-oriented-programming","object-oriented-programming-python","oop","python","real-world-applications","software-architecture","solid-principles","sqlalchemy","sqlite","todo-app"],"created_at":"2025-03-04T22:36:19.243Z","updated_at":"2026-04-20T04:35:59.605Z","avatar_url":"https://github.com/JarrarShahid.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OOP 🚀  \nA **comprehensive** repository showcasing **Object-Oriented Programming (OOP) in Python**, including **fundamental concepts, SOLID principles, design patterns, real-world applications, and advanced topics**.  \n\n## 📌 Features  \n✔ **OOP Fundamentals** - Encapsulation, Inheritance, Polymorphism, and Abstraction  \n✔ **SOLID Principles** - Best practices for writing maintainable OOP code  \n✔ **Design Patterns** - Singleton, Factory, Observer, Strategy, and more  \n✔ **Real-World Applications** - Bank management, E-commerce, Student management  \n✔ **Advanced OOP Topics** - Metaclasses, Dependency Injection, Operator Overloading  \n✔ **Mini Projects** - To-Do App, Employee Management, Inventory System  \n✔ **API Development** - OOP with Flask \u0026 FastAPI  \n✔ **Interactive Learning** - Jupyter Notebooks with in-depth explanations  \n✔ **Automated Testing** - Unit tests with `pytest`  \n✔ **CI/CD Pipeline** - GitHub Actions for continuous integration  \n\n---\n\n## 📂 Folder Structure  \n\n```\nOOP/\n│── README.md                 # Overview of the repo and concepts covered\n│── requirements.txt          # List of dependencies\n│── main.py                   # Entry point for OOP demonstration\n│── .gitignore                # Ignore unnecessary files\n│\n├── basics/                    # Fundamental OOP concepts\n│   ├── encapsulation.py\n│   ├── inheritance.py\n│   ├── polymorphism.py\n│   ├── abstraction.py\n│\n├── solid_principles/          # SOLID principles in OOP\n│   ├── single_responsibility.py\n│   ├── open_closed.py\n│   ├── liskov_substitution.py\n│   ├── interface_segregation.py\n│   ├── dependency_inversion.py\n│\n├── design_patterns/           # Common design patterns\n│   ├── singleton.py\n│   ├── factory.py\n│   ├── observer.py\n│   ├── strategy.py\n│   ├── adapter.py\n│   ├── command.py\n│   ├── prototype.py\n│   ├── mediator.py\n│   ├── composite.py\n│   ├── mvc_pattern.py\n│\n├── real_world_examples/       # Practical implementations\n│   ├── bank_management.py\n│   ├── e_commerce.py\n│   ├── student_management.py\n│   ├── game_dev.py            # OOP in game development (Pygame)\n│   ├── ml_pipeline.py         # OOP in ML (Scikit-Learn)\n│   ├── gui_app.py             # OOP in GUI development (Tkinter/PyQt)\n│\n├── flask_api/                 # OOP in API development with Flask\n│   ├── models.py\n│   ├── routes.py\n│   ├── app.py\n│\n├── fastapi/                   # OOP with FastAPI\n│   ├── models.py\n│   ├── routes.py\n│   ├── main.py\n│\n├── advanced/                  # Advanced OOP concepts\n│   ├── metaclasses.py\n│   ├── multiple_inheritance.py\n│   ├── operator_overloading.py\n│   ├── dependency_injection.py\n│\n├── projects/                  # Mini OOP-based projects\n│   ├── todo_app/\n│   ├── employee_management/\n│   ├── inventory_system/\n│\n├── tests/                     # Unit tests for OOP concepts\n│   ├── test_basics.py\n│   ├── test_design_patterns.py\n│   ├── test_real_world_examples.py\n│   ├── helpers.py             # Reusable test utilities\n│\n├── notebooks/                 # Jupyter Notebooks for interactive learning\n│   ├── OOP_Introduction.ipynb\n│   ├── SOLID_Principles.ipynb\n│   ├── Design_Patterns.ipynb\n│\n├── docs/                      # Additional documentation \u0026 UML diagrams\n│   ├── OOP_Concepts.md\n│   ├── SOLID_Principles.md\n│   ├── Design_Patterns.md\n│   ├── UML_Diagrams/\n│\n└── .github/workflows/         # GitHub Actions for CI/CD\n    ├── ci.yml                # Automated testing workflow\n```\n\n---\n\n## 🎯 How to Use  \n\n### 🔧 Setup  \n1. Clone the repository:  \n   ```sh\n   git clone https://github.com/JarrarShahid/OOP.git\n   cd OOP\n   ```\n2. Create a virtual environment (optional but recommended):  \n   ```sh\n   python -m venv venv\n   source venv/bin/activate   # On Windows use: venv\\Scripts\\activate\n   ```\n3. Install dependencies:  \n   ```sh\n   pip install -r requirements.txt\n   ```\n\n### 🚀 Running the Project  \n- To explore OOP concepts, run:  \n  ```sh\n  python main.py\n  ```\n- To execute a specific example, run the corresponding Python script:  \n  ```sh\n  python basics/encapsulation.py\n  ```\n\n### 🧪 Running Tests  \n- Execute unit tests using `pytest`:  \n  ```sh\n  pytest tests/\n  ```\n\n---\n\n## 📖 Resources  \n- [Python OOP Documentation](https://docs.python.org/3/tutorial/classes.html)  \n- [SOLID Principles Explained](https://en.wikipedia.org/wiki/SOLID)  \n- [Design Patterns in Python](https://refactoring.guru/design-patterns/python)  \n\n---\n\n## 📜 License  \nThis project is licensed under the **MIT License**. Feel free to use and modify it.  \n\n---\n\n## ⭐ Contributing  \nContributions are welcome! If you'd like to improve this project, please follow these steps:  \n1. Fork the repo  \n2. Create a new branch (`git checkout -b feature-branch`)  \n3. Commit your changes (`git commit -m \"Added new feature\"`)  \n4. Push to your fork and submit a **Pull Request**  \n\n---\n\n## 🎯 Contact  \nIf you have any questions, feel free to reach out:  \n📧 Email: jarrarshahid@gmail.com  \n🐙 GitHub: JarrarShahid\n\n---\n\n🔥 **This repo is the ultimate resource for mastering OOP in Python. Give it a star ⭐ if you find it useful!** 🚀  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarrarshahid%2Foop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjarrarshahid%2Foop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarrarshahid%2Foop/lists"}