Underground metal target detection mainly aims to estimate the attributes of underground metal targets and classify metal targets based on observed data. Electromagnetic induction(EMI) methods have been widely used in the field because of the high precision and strong penetration to metal targets. The development and improvement of electromagnetic underground metal target detection methods can be implemented by a framework that is experimental supporting, modular, and extensible. In this paper, we organize the components of electromagnetic underground metal target detection in a comprehensive, modular and extensible framework. Furthermore, we created an open-source platform of the framework in Python called MicEMD(Modeling, Inversion, and Classification in ElectroMagnetic Detection, https://github.com/UndergroundDetection/MICEMD. The graphical user interface(GUI) and the library with a Python application programming interface(API) are contained in MicEMD. Included in MicEMD are staggered frequency-domain and time-domain electromagnetic forward modeling, least-squares inversion, and data-based classification methods at present. MicEMD's capabilities are presented by two synthetic case studies. The first example shows the application of frequency-domain inversion. The second example shows the application of time-domain classification. It is anticipated that MicEMD offers a flexible tool in electromagnetic underground metal target detection.