A metaclass in Python is also known as class of a class. A class defines the behavior of an instance. A metaclass defines the behavior of a class.
One of the most common metaclass in Python is type. We can subclass type to create our own metaclass.
We can use metaclass as a class-factory to create different types of classes.Read the full book at www.amazon.com