https://github.com/yanliu1111/learn_python_by_thinking_types
https://github.com/yanliu1111/learn_python_by_thinking_types
oop python
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yanliu1111/learn_python_by_thinking_types
- Owner: yanliu1111
- Created: 2023-03-30T05:15:48.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-18T20:51:00.000Z (about 3 years ago)
- Last Synced: 2025-02-27T05:49:58.908Z (over 1 year ago)
- Topics: oop, python
- Language: Python
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learn Python from Thinking Types
This repository is designed to provide a quick review of Python basics. The accompanying YouTube channel introduces a new teaching structure that follows a data type-centric approach.
Learning resources [Basic Python learning](https://www.youtube.com/watch?v=jH85McHenvw).
PS: After python 3.6, the type hints are not required. They are just a way to make the code more readable. The type hints are not enforced by the python interpreter. So, if you are using python 3.6 or above, you can skip the type hints. -- I know, I know, I am a bit late to the party.¯\_(ツ)\_/¯
# Projects in part-09 and part-10
I built two projects and overthought they look simple, they are densely packed with all above concepts.
1. Cash Register
2. SuperHero Game
# Project2 - Packages - Thinking In Layers
The whole idea behind creating packages is to divide our application into logical sub-components.
These sub-components can be grouped by their type of functionality.
## Layers for our game application
| Sr No | Layer Name | Particular | Visibility | Role |
| ----- | -------------- | ---------------------------- | ---------- | --------- |
| 1 | Data Layer | Package `models` & `schemas` | Private | Internal |
| 2 | Business Logic | `impl.py` | Private | Internal |
| 3 | API | Package `game` | Public | Interface |
| 4 | Client | `main.py` | | Consumer |
This repo includes all what I want to practice and repeat. Some details check this excellent [tutorial repo](https://github.com/octallium/modern-python-101).👍