PonyORM - Python
Mohammed Yassir Arafat
Senior Python Developer | Django | Flask | FASTApi I Building Scalable Backend Systems
Recently I came to know a modern object rational mapper (ORM) named PonyORM for Python. It is basically known for its ability to write queries to the database using Python generator expressions and lambdas. An example query could be:
print('All Bangladeshi customers')
result = select(c for c in Customer if c.country == 'Bangladesh')[:]
..more like a SQL query in a pythonic way. You can compare it with SQLAlchemy instead of Django's ORM as it supports SQLite, MySQL, PostgreSQL and Oracle databases.
Why use Pony?
Another interesting thing, it has ER diagram support tool officially.
#python #orm #ponyORM #happyLearning #happycoding
Software Engineer @ZYL Labs | FinTech, Java, Python, Microservice, Distributed System Enthusiast
5 个月Bhai does it have native support for Pydentic ?