Is there anyway to create view using python

In addition, you may find this page helpful: