Sleep research uses electroencephalography (EEG) to infer brain activity in health and disease. Beyond standard sleep scoring, there is increased interest in advanced EEG analysis that investigates activities at specific times, frequencies, and scalp locations. Such analysis requires preprocessing to improve the signal-to-noise ratio, and dedicated analysis algorithms and visualizations. While many EEG software packages exist, sleep research has specific considerations (e.g., avoiding particular artifacts, analysis, and visualization in an ongoing non-epoch nature, detection of characteristic oscillatory events, and interface with sleep staging) that require dedicated tools. Currently, sleep investigators typically use available libraries for specific tasks in a ‘fragmented’ configuration that is inefficient, prone to errors, and requires the burdensome learning of multiple software environments. Here, we present SleepEEGpy, an open-source Python package for sleep EEG data preprocessing and analysis, including (i) cleaning, (ii) independent component analysis, (iii) analysis of sleep events, (iv) analysis of spectral features, and associated visualization tools. SleepEEGpy builds upon MNE-Python, YASA, and SpecParam (formerly FOOOF) tools to provide an all-in-one package for comprehensive yet straightforward sleep EEG research. We demonstrate the SleepEEGpy pipeline and its functionalities by applying it to overnight high-density EEG data in healthy participants, revealing multiple characteristic activity signatures typical of each vigilance state. These include alpha oscillations in wakefulness, sleep spindle and slow wave activities in NREM sleep, and theta activity in REM sleep. We hope that this package will be embraced and further developed by the sleep research community, allowing investigators to focus more on science and improve reproducibility among research groups.