Mokhaled N. A. Al-Hamadani you can find many codes with dropout using python. But in drop-connect and dropout, both are almost the same in a slight difference, you can see in TensorFlow or PyTorch that either you have options to add a drop-connect layer or not. If there is an option then you can edit the model easily.
If using a drop-connect are necessary then why not make your own model it is easy and work well for you.
Mokhaled N. A. Al-Hamadani making your model was easy but it is computationally expensive. I have made my CNN which has only 1 convolution and 1 pooling and it costs me a lot...