frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Django-Style Queries for SQLAlchemy

https://github.com/ViAchKoN/sqlalchemy-query-manager
1•ViAchKoN•57m ago
Hey!

Wanted to share the project I've worked on for more than a year. The core was done last summer but since then I couldn't find time to implement all the functionality I had in mind. But a few months ago, I made myself sit down and plan the introduction of the remaining things.

And with the release of 0.7.0 I can say that 85 percent is done and I'm ready to share it.

I wrote a Python package which serves as a layer on top of SQLAlchemy and allows you to write Django-style queries. The idea came from work where we had an additional helper file which had methods for select, filters and other simple queries. When we didn't use those helper methods we wrote queries using the SQLAlchemy syntax which took a lot of time and code space. Especially the fact that you need to specify a model in filtering.

In the end I decided to move all those helper methods to a package thereby we can just import them from one place. Django style format was selected because, personally, I found it easy to read and implement. The queries which took several lines of code including sometimes opening a session, writing filter clause with the actual model names now take fewer lines.

The package support async and sync SQLAlchemy. A session can be opened using sessionmaker or you can use your own session and manage it. Meaning it can be used in Flask or FastApi or any other framework. Additionally it has methods like create, update, delete and bulk versions of them.

In our case, it saved a lot of time and improved reliability because testing is additionally done on the package's level.

I hope you will find this package useful!

Looking forward to feedback and ideas how I can improve it more!

NASA Fires Up Powerful Lithium-Fed Thruster for Trips to Mars

https://www.nasa.gov/missions/tech-demonstration/nasa-fires-up-powerful-lithium-fed-thruster-for-...
1•bilsbie•2m ago•0 comments

I put a local LLM agent inside a menu-bar Mac monitor (and you can leave it off)

https://github.com/raro42/mac-stats
1•raro43•2m ago•0 comments

Russia bars last anti-war party from election, partly over AI image copyright

https://www.scmp.com/news/world/russia-central-asia/article/3363576/russia-bars-anti-war-party-pa...
1•mrdw•3m ago•0 comments

Aptoide becomes the first rival app store to return to Google Play in the US

https://techcrunch.com/2026/08/10/aptoide-becomes-the-first-rival-app-store-to-return-to-google-p...
1•speckx•4m ago•0 comments

Show HN: Lians AI, Token-bounded memory and evidence for AI workflows

https://github.com/Lians-ai/Lians
1•ebeirne•6m ago•0 comments

ChatGPT can now help you find and book a table

https://twitter.com/ChatGPT/status/2086852819215090168
1•saikatsg•7m ago•0 comments

Show HN: PostCards over Postal Network Simulation

https://snapped.pics
1•jeswin•7m ago•0 comments

Epic Games Divests Sketchfab and ArtStation

https://kitbash3d.com/pages/kitbash-acquires-sketchfab-and-artstation-kitbash3d
3•astlouis44•7m ago•0 comments

Continual Learning Needs More Nuance

https://vivekhaldar.com/articles/continual-learning-needs-more-nuance/
1•gandalfgeek•7m ago•0 comments

A browser-based financial calculator suite for freelancers built with OpenCode

https://everycentcalc.biz.id/
1•Keevan•9m ago•0 comments

Why are we choosing AI for just repetitive jobs?

1•ozymand•9m ago•0 comments

The offline messaging apps challenging internet shutdowns

https://restofworld.org/2026/india-github-geoblock-jack-dorsey-bitchat/
1•colinprince•10m ago•0 comments

Scoping and curating AI eval datasets

https://langfuse.com/academy/datasets/designing-great-datasets
3•annabellschaf•12m ago•0 comments

Collaboration

https://twitter.com/bekhovsgun/status/2086883869819551754
2•reb•13m ago•0 comments

LLMs and Humans Are Cognitive Cousins

https://preposterousuniverse.com/podcast/2026/08/10/363-chandra-sripada-on-how-llms-and-humans-ar...
1•quick_brown_fox•13m ago•0 comments

Autopoietic Ethics

https://www.guidavid.com/writing/autopoietic-ethics
1•gdss•14m ago•0 comments

Looking at Tarpit and LLM Maze Stats

https://www.bentasker.co.uk/posts/blog/the-internet/the-efficacy-of-tarpits-in-2026.html
1•speckx•14m ago•0 comments

Students Skinned a Bear in a Dorm. Cornell Realized It Should Ban That

https://www.nytimes.com/2026/08/07/nyregion/cornell-student-bear-meat.html
2•7402•16m ago•0 comments

AI Interviews Are Moving Hiring into the Middle of the Night

https://ai-updates.net/ai-interviews-moving-hiring-middle-night/
1•ashurandi•17m ago•1 comments

You spend more when prices end in .99 (2018)

https://kenthendricks.com/99-cent-prices/
1•downbad_•18m ago•0 comments

Ask HN: New Projet Backup

1•dobibag•18m ago•0 comments

The Deslop Stack Fallacy: Why Style Rules Hurt Thinking Quality

https://kondasamy.com/blog/2026/deslop-stack-fallacy-style-rules-hurt-thinking/
1•kqr•21m ago•0 comments

Sanders Calls on Tech Giants to Pause Development of Out-of-Control AI

https://www.sanders.senate.gov/press-releases/news-sanders-calls-on-tech-giants-to-pause-developm...
3•ChrisArchitect•24m ago•1 comments

Hk ask: why I cant post here

2•Akaoutar•26m ago•1 comments

IPython is all you need

https://nathancooper.io/blog/2026-08-10-ipython-is-all-you-need
1•coop57•26m ago•0 comments

Theo Jaffee on Becoming AGI-Pilled

https://www.thenewcritic.com/p/present-at-the-creation
1•ekluger•26m ago•0 comments

I built a private travel journal for iPhone

https://kfragkoulis.com/blog/building-travel-log/
1•konstantinosfr•28m ago•1 comments

I thought an LLM gateway was unnecessary. Then we added a second model provider

https://github.com/maximhq/bifrost/
1•Swapnoneel•29m ago•0 comments

South Korea to launch $3.5B chip fund, speed development of semiconductor hubs

https://www.reuters.com/world/asia-pacific/south-koreas-lee-wants-military-airbase-relocated-by-m...
1•giuliomagnifico•30m ago•0 comments

US court rules Meta, others must face lawsuits over social media addiction

https://www.reuters.com/world/us-appeals-court-allows-thousands-lawsuits-against-social-media-com...
1•1659447091•30m ago•0 comments