I am a C# programmer, and up until today had never worked with Python classes.
My current project, Car Driver.py, drives cars to simulate traffic, and it started getting complex as to determine which cars were InMotion and which were idle, so I made my first stab at Python classes. After two of four properties I needed were created, I didn't feel like creating number three and four manually so I created this project.
https://github.com/DataJuggler/PythonClassCreator

This project requires Visual Studio 2022. You don't have to know C# to run it, just clone or download it and hit F5 to run.
Enter a class name, and create one or more properties, and click the Create Class button, which will copy the text to your clipboard.
The data entry is fast and easy, and to me this seems useful, but Python is not my strongest skill.
Here is a sample class that was created in about 30 seconds of data entry or less.
class Car:
def __init__(self):
self.__Prop = None
self.__InMotion = False
self.__StartTime = 0
self.__EndTime = 0
def SetProp(self, prop):
self.__Prop = prop
def GetProp(self):
return self.__Prop
def SetInMotion(self, inMotion):
self.__InMotion = inMotion
def GetInMotion(self):
return self.__InMotion
def SetStartTime(self, startTime):
self.__StartTime = startTime
def GetStartTime(self):
return self.__StartTime
def SetEndTime(self, endTime):
self.__EndTime = endTime
def GetEndTime(self):
return self.__EndTime
Prop=property(GetProp, SetProp)
InMotion=property(GetInMotion, SetInMotion)
StartTime=property(GetStartTime, SetStartTime)
EndTime=property(GetEndTime, SetEndTime)
Creator of the free website:
PixelDatabase.Net
A Free Online Text Based Image Editor
