'''
Created on 

@author: haoweizh
'''
import pkg_resources
#===============================================================================
# for ep in pkg_resources.iter_entry_points(group='pyang.plugin'):
#     plugin_init = ep.load()
#     print(plugin_init)
#     plugin_init()
#===============================================================================
def run_entry_point(data):
    group = 'mypackage.api.v1'
    for entrypoint in pkg_resources.iter_entry_points(group=group):
        # Grab the function that is the actual plugin.
        plugin = entrypoint.load()
        plugin(data)