find()

clink.com.find.find(module, com_type=<class 'clink.com.type.Component'>)[source]

Find class which extends from com_type in module

Parameters:
  • module (module) –
  • com_type (class) –

Example

com_find.py
import clink
from clink.com import find
from clink import Service


coms = find(clink.service, Service)
for com in coms:
    print(com.__name__)

Testing

$ python com_find.py
AccService
AuthDbService
OAuthService
SmtpService