Hi guys,
I have a bunch of functions which are 'bundled' in a __init__.py
The functions are basicly way to get standard data from our office.
Think of:
- what is the projectnumber
-----> no input needed. A program api query returns a value which is altered and returned.
- where to store pdf files based upon the age of a project
-----> projectnubmer as input for the function, based upon its value, a specific spot is returned.
- etc.etc.
Now, since I'm learning python myself, I'm looking at classes quite often and was wondering if the above is suited for a class?
I -think- I know what a class does, but hey, advice is much appreciated!
So I think:
MyProject.projectnumber()
MyProject.pdflocation()
MyProject.etcetc
would make more sense?
I have a bunch of functions which are 'bundled' in a __init__.py
The functions are basicly way to get standard data from our office.
Think of:
- what is the projectnumber
-----> no input needed. A program api query returns a value which is altered and returned.
- where to store pdf files based upon the age of a project
-----> projectnubmer as input for the function, based upon its value, a specific spot is returned.
- etc.etc.
Now, since I'm learning python myself, I'm looking at classes quite often and was wondering if the above is suited for a class?
I -think- I know what a class does, but hey, advice is much appreciated!
So I think:
MyProject.projectnumber()
MyProject.pdflocation()
MyProject.etcetc
would make more sense?