A simple package to count number of vowels and consonants in a string.
pip install vcons
pip3 install vcons
Below example will help you
from vcons import vcons
sample_string= "python"
vcons.vowels(sample_string) # returns the number of vowels in the given string
sample_string = "PACKAGE"
vcons.consonants(sample_string) #returns the number of consonants in the given string
If anyone found any issue , feel free to make PR :)