Is there a clustering method that allows me to indicate the number of points desired per cluster? I've looked into the various clustering algorithms and realize that specifying an exact cluster size up front sort of defeats the purpose of what clustering is intended to do - identify natural patterns in data. Imposing a size constraint up front might not be something anyone would want to do.
However, I do have a need for a method that allows me to specify the exact number of points allowed per cluster. Is there such an algorithm available or will I unfortunately have to try to write my own?

@Eyal Shulman's python solution provides a K-means method that allows one to define cluster cardinality.
