mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-05 05:33:55 +01:00
11 lines
356 B
Python
11 lines
356 B
Python
import inspect
|
|
from . import formatHandlerBase
|
|
|
|
def getFormatHandlers(includeUnnamed=False):
|
|
from . import default
|
|
for clsName,Cls in inspect.getmembers(default,inspect.isclass):
|
|
if issubclass(Cls,formatHandlerBase):
|
|
if hasattr(Cls,"__formatName__"):
|
|
yield (Cls.__formatName__,Cls)
|
|
elif(includeUnnamed):
|
|
yield (None,Cls) |