yes, you can , but with or without framework using Python for web development is like eating a soup with a fork.
Read moreHow do I create a local API in Python?
Writing API Methods
Read moreHow do I create a simple API?
How to Create an API
Read more