The processing of nuclear pulse signals based on deep learning (DL) requires a well-labeled data set. However, the current energy spectrometers can only give users the final results, and do not allow manual labeling during the pulse signal collection process. The presented (GaSim) is a Python-based gamma pulse simulator of the raw detector electrical output signal with excellent customization capabilities. It allows customization of gamma pulse signal parameters from various aspects, making it versatile and useful for a wide range of detectors. Additionally, it provides the required labels for each generated electrical pulse at specified positions, enabling the creation of datasets for DL development.