In this paper, we have described the DrugEx opensource software package that facilitates the training of a diverse set of generative models for de novo design of small molecules. The package is based on the original Python scripts previously introduced by Liu et al. that were used to develop and validate these models. It includes the following new features: early stopping in all training modes, additional predefined scoring functions, and improved QSPR modelling (hyperparameter optimisation, new input features, etc.) with the separate QSPRpred package. The performance has also been enhanced by utilizing parallel processing where possible in both the DrugEx and QSPRpred packages. Furthermore, the current implementation features major revisions of the original API source code of which most notable are the addition of a command line interface (CLI) and Python API. A graphical user interface (GUI) is also provided via the GenUI web application.