Is there any Dapper like micro ORM for Python?
Asked Answered
S

2

7

I know there are multiple ORMs for python, but I like the idea of Dapper - a simple object mapper. I googled but can't find any Dapper like ORM for python. Is there any existing dapper like micro-ORM for python ?

Saguache answered 16/2, 2019 at 18:11 Comment(0)
M
10

I’m the author of pydapper https://pydapper.readthedocs.io/en/latest/. It’s a pure python lib inspired by dapper!

Mireille answered 30/1, 2022 at 1:45 Comment(3)
Nice, truly like dapper. Unlike other suggested micro ormsSaturated
I have an existing DB and want to try pydapper, but how to change map classes' fields to table columns (example: class have ID field but it maps to ID_Proprietario)? How I do that (which I already solved in dapper.net)?Request
looks neat but it's a bit unclear if and how it supports other drivers than the ones covered in the docsTowny
P
7

There is PonyORM that is a simple lightweight ORM that is similar to Dapper but oriented towards Python.

Other options are PeeWee ORM or the granddaddy SQLAlchemy.

Potboiler answered 12/7, 2019 at 1:28 Comment(2)
SQLAlchemy does Micro ORM? I couldn't find Micro ORM document on SQLAlchemy website.Snakebird
SQL Alchemy includes an ORM. It is more of a toolkit for databases. If you want "micro" Pony is probably your best optionPotboiler

© 2022 - 2024 — McMap. All rights reserved.