https://github.com/dori-dev/python-descriptors
Python descriptors to solving the problems of property(getter)
https://github.com/dori-dev/python-descriptors
descriptors python
Last synced: 4 months ago
JSON representation
Python descriptors to solving the problems of property(getter)
- Host: GitHub
- URL: https://github.com/dori-dev/python-descriptors
- Owner: dori-dev
- Created: 2022-07-23T08:49:58.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-23T08:52:48.000Z (almost 4 years ago)
- Last Synced: 2025-10-19T07:30:23.744Z (8 months ago)
- Topics: descriptors, python
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Descriptors
Python descriptors to solving the problems of property(getter)
#
## What is the Problem?
Using **property(getter)**, setter, deleter for all variables,
It creates similar(it repeats itself) code and the code is not clean!
The problem source code: [problem.py](problem.py)
#
## What is the Solution?
By using **descriptors** and creating classes for similar variable types,
It creates clean code and doesn't repeat itself
The solution source code: [solution.py](solution.py)
#
## Links
Download Source Code: [Click Here](https://github.com/dori-dev/python-descriptors/archive/refs/heads/master.zip)
My Github Account: [Click Here](https://github.com/dori-dev/)