get class object python code example Example: python get object class user = User() type(user).__name__ >> 'User'