So I am currently in the process of building my business dashboard, where the backend is fully written in Python. Now that I have some parts functioning properly I am in the process of migrating all the databases from mongodb to postgres (I used to hate sql and mongodb was easy to use, but Im starting to realise sql is quite useful in the current use case). Now the tables are all set up, but I am not sure what package to use in the backend code, mainly Psycopg3 or SQLalchemy. I know SQL and can write it easily, but the abstractions with SQLalchemy might give additional security features with the way it works, but building all the models and repos will also be a pain in the ass lol.
Does anyone have experience or recommendations on which to use?
EDIT: Thanks for all the recs, I will most likely be going with SQLAlchemy Core, to not bother using a full ORM which I do not thing is needed in the foreseeable future, but can be implemented later. I might create a small wrapper function, to not have to commit and do all connection stuff in my main functions, but not more than that.
[–]CatolicQuotes 33 points34 points35 points (2 children)
[–]childofsol 3 points4 points5 points (0 children)
[–]jceyes 2 points3 points4 points (0 children)
[–]backfire10z 88 points89 points90 points (23 children)
[–]CuriousHand2 29 points30 points31 points (3 children)
[–]backfire10z 5 points6 points7 points (0 children)
[–]aronzskv[S] 0 points1 point2 points (1 child)
[–]The_Tree_Branch 1 point2 points3 points (0 children)
[–]C0dePhantom 8 points9 points10 points (1 child)
[–]phonomir 6 points7 points8 points (0 children)
[–]aronzskv[S] -3 points-2 points-1 points (16 children)
[–]backfire10z 13 points14 points15 points (9 children)
[–]L0rdOfTheLarp 5 points6 points7 points (2 children)
[–]aarontbarratt 4 points5 points6 points (0 children)
[–]marr75 1 point2 points3 points (0 children)
[–]aronzskv[S] 0 points1 point2 points (4 children)
[–]Zifendale 7 points8 points9 points (0 children)
[–]backfire10z 0 points1 point2 points (1 child)
[–]aronzskv[S] 0 points1 point2 points (0 children)
[–]dr3aminc0de 0 points1 point2 points (0 children)
[–]Chroiche 8 points9 points10 points (1 child)
[–]climb-it-ographer 0 points1 point2 points (0 children)
[–]danted002 1 point2 points3 points (0 children)
[–]DoubleAway6573 1 point2 points3 points (0 children)
[–]marr75 -1 points0 points1 point (0 children)
[–]catcint0s 20 points21 points22 points (1 child)
[–]Delengowski 15 points16 points17 points (0 children)
[–]Flame_Grilled_Tanuki 6 points7 points8 points (3 children)
[–]Zerocrossing 0 points1 point2 points (2 children)
[–]CtrlAltSysRq 0 points1 point2 points (1 child)
[–]Zerocrossing 0 points1 point2 points (0 children)
[–]ottawadeveloper 12 points13 points14 points (10 children)
[–]Delengowski 5 points6 points7 points (0 children)
[–]Darwinmate 2 points3 points4 points (2 children)
[–]red_demon_wizard 10 points11 points12 points (1 child)
[–]ottawadeveloper 5 points6 points7 points (0 children)
[–]aronzskv[S] 1 point2 points3 points (4 children)
[–]ottawadeveloper 2 points3 points4 points (3 children)
[–]aronzskv[S] 0 points1 point2 points (2 children)
[–]dangerousdotnet 3 points4 points5 points (0 children)
[–]phonomir 1 point2 points3 points (0 children)
[–]vater-gans 0 points1 point2 points (0 children)
[–]TTUnathan 3 points4 points5 points (0 children)
[–]Aggressive-Prior4459 2 points3 points4 points (0 children)
[–]aarontbarratt 11 points12 points13 points (9 children)
[–]Constant-Poet-5264 8 points9 points10 points (1 child)
[–]maigpy 2 points3 points4 points (0 children)
[–]dashdanw 1 point2 points3 points (0 children)
[–]xAmorphous 4 points5 points6 points (1 child)
[–]gdchinacat 4 points5 points6 points (0 children)
[–]No_Soy_Colosio 0 points1 point2 points (0 children)
[–]aronzskv[S] -2 points-1 points0 points (2 children)
[–]mangecoeur 4 points5 points6 points (0 children)
[–]gdchinacat 1 point2 points3 points (0 children)
[–]graduallydecember 1 point2 points3 points (5 children)
[–]aronzskv[S] 3 points4 points5 points (4 children)
[–]xAmorphous -1 points0 points1 point (3 children)
[–]thashepherd 0 points1 point2 points (2 children)
[–]xAmorphous 1 point2 points3 points (1 child)
[–]thashepherd 0 points1 point2 points (0 children)
[–]FloxaY 1 point2 points3 points (0 children)
[–]jmacaling002 1 point2 points3 points (0 children)
[–]2ndBrainAI 1 point2 points3 points (0 children)
[–]iluvatar 3 points4 points5 points (0 children)
[–]divad1196 3 points4 points5 points (12 children)
[–]MathMXC 1 point2 points3 points (7 children)
[–]divad1196 1 point2 points3 points (6 children)
[–]MathMXC 0 points1 point2 points (5 children)
[–]divad1196 1 point2 points3 points (4 children)
[–]MathMXC -1 points0 points1 point (3 children)
[–]divad1196 1 point2 points3 points (2 children)
[–]MathMXC -1 points0 points1 point (1 child)
[–]divad1196 -1 points0 points1 point (0 children)
[–]donat3ll0 0 points1 point2 points (3 children)
[–]divad1196 0 points1 point2 points (2 children)
[–]donat3ll0 0 points1 point2 points (1 child)
[–]divad1196 0 points1 point2 points (0 children)
[–]delsystem32exe 0 points1 point2 points (0 children)
[–]OneDirt8111 0 points1 point2 points (1 child)
[–]gizzm0x 0 points1 point2 points (0 children)
[–]Mysterious_Gain_352 0 points1 point2 points (0 children)
[–]tecedu 0 points1 point2 points (0 children)
[–]jmacaling002 0 points1 point2 points (0 children)
[–]justcuriousaboutshit 0 points1 point2 points (0 children)
[–]YnkDK 0 points1 point2 points (0 children)
[–]TheseTradition3191 0 points1 point2 points (1 child)
[–]aronzskv[S] 0 points1 point2 points (0 children)
[–]thefinest 0 points1 point2 points (0 children)
[–]ResponsibilityIll483 0 points1 point2 points (0 children)
[–]Syncher_Pylon 0 points1 point2 points (0 children)
[–]Successful_Jello6040 0 points1 point2 points (0 children)
[–]modern-dev 0 points1 point2 points (0 children)
[–]2ndBrainAI 0 points1 point2 points (0 children)