- Code: Select all
class Resource
Users of the package would then code as either:
- Code: Select all
from Ecere import *
x = Resource.Resource()
or
- Code: Select all
from Ecere.Resource import *
x = Resource()
I know the first example feels a bit redundant, and I'm no expert. Take a look at packages already installed on your system to see what the common idiom is. But generally, it's lots of smaller files possibly nested in subdirectories, rather than one honkin' huge monolith with every class in it.