frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Blending SQL and Python with Sqlorm

https://hyperflask.dev/blog/2025/11/11/blending-sql-and-python-with-sqlorm/
13•emixam•4d ago

Comments

Rajni07•4d ago
Really like the idea of keeping SQL explicit while still getting ORM conveniences. The @sqlfunc syntax feels clean, and the no-session approach makes cross DB work simpler. Curious how it handles async or pooling. Seems like a solid middle ground between raw SQL and heavy ORMs.
itopaloglu83•1h ago
A common problem I found myself in is that I have to develop the query in one file and frequently run it to verify the data accuracy. I define the variables at top reminding me types and limitations etc. int vs varchar(10) vs varchar(50)

So I made a very simple module that takes those sql files and turns them into SQLAlchemy text objects with variables in them.

Would it be possible to add something like this to the project or does it require many sql parsing libraries etc. to ensure sql validity to find variables in the sql file?

develatio•1h ago
I think this is very similar to Django’s ORM.
somat•37m ago
Here is my rather naive take on the same subject. But I had a very different motivation than the author. See I actually quite like SQL and enjoy programming in it, but what I don't like is mixing sql and python. So one night in a flash of inspiration or perhaps a fever dream I wrote this thing that lets you have stand alone parameterized sql queries and you call them like a python function or generator. It is one of those overly clever things where I sort of hate the magic, but I find myself using it more and more which I will probably regret one day.

https://nl1.outband.net/fossil/query/file?name=query.py&ci=t...

In short you have your query in file sql/dept_personal.sql and you call it like

    for row in q.dept_personal(db_cursor, department='manpower'):

The Internet Is Cool. Thank You, TCP

https://cefboud.com/posts/tcp-deep-dive-internals/
60•signa11•3h ago•27 comments

Spec-Driven Development: The Waterfall Strikes Back

https://marmelab.com/blog/2025/11/12/spec-driven-development-waterfall-strikes-back.html
90•vinhnx•2h ago•71 comments

AI World Clocks

https://clocks.brianmoore.com/
1029•waxpancake•16h ago•317 comments

Messing with Scraper Bots

https://herman.bearblog.dev/messing-with-bots/
35•HermanMartinus•2h ago•6 comments

One Handed Keyboard

https://github.com/htx-studio/One-Handed-Keyboard
8•doppp•53m ago•6 comments

So, you want to design your own language? (2017)

https://cs.lmu.edu/~ray/notes/languagedesignnotes/
74•veqq•4h ago•54 comments

AMD GPUs Go Brrr

https://hazyresearch.stanford.edu/blog/2025-11-09-amd-brr
136•vinhnx•8h ago•24 comments

Löb and Möb: Loops in Haskell

https://github.com/quchen/articles/blob/master/loeb-moeb.md
39•fanf2•1w ago•9 comments

Unofficial Microsoft Teams client for Linux

https://github.com/IsmaelMartinez/teams-for-linux
140•basemi•1w ago•104 comments

A new Google model is nearly perfect on automated handwriting recognition

https://generativehistory.substack.com/p/has-google-quietly-solved-two-of
333•scrlk•3d ago•190 comments

SSL Configuration Generator

https://ssl-config.mozilla.org/
166•smartmic•12h ago•47 comments

HipKittens: Fast and furious AMD kernels

https://hazyresearch.stanford.edu/blog/2025-11-09-hk
175•dataminer•1d ago•58 comments

Continuous Architecture: A decade of designing for change

https://continuousarchitecture.com/2025/11/04/a-decade-of-ca/
6•gHeadphone•1w ago•0 comments

'No One Lives Forever' turns 25 and you still can't buy it legitimately

https://www.techdirt.com/2025/11/13/no-one-lives-forever-turns-25-you-still-cant-buy-it-legitimat...
257•speckx•18h ago•127 comments

Random Font – a typographic experiment exploring randomness [pdf]

https://www.ilcovile.it/scritti/COVILE_834_Reprint_Random_Font.pdf
17•misone•1w ago•6 comments

All praise to the lunch ladies

https://bittersoutherner.com/issue-no-12/all-praise-to-the-lunch-ladies
189•gmays•14h ago•108 comments

Lawmakers want to ban VPNs and have no idea what they're doing

https://www.eff.org/deeplinks/2025/11/lawmakers-want-ban-vpns-and-they-have-no-idea-what-theyre-d...
230•gslin•1d ago•122 comments

No Leak, No Problem – Bypassing ASLR with a ROP Chain to Gain RCE

https://modzero.com/en/blog/no-leak-no-problem/
79•todsacerdoti•10h ago•4 comments

Structured outputs on the Claude Developer Platform

https://www.claude.com/blog/structured-outputs-on-the-claude-developer-platform
141•adocomplete•15h ago•60 comments

Ohm Editor

https://ohmjs.org/editor/
23•andsoitis•4h ago•4 comments

A race condition in Aurora RDS

https://hightouch.com/blog/uncovering-a-race-condition-in-aurora-rds
221•theanomaly•16h ago•69 comments

Ucs-Detect

https://ucs-detect.readthedocs.io/intro.html
15•djoldman•1w ago•3 comments

Winamp clone in Swift for macOS

https://github.com/mgreenwood1001/winamp
229•hyperbole•21h ago•142 comments

Async Mutexes

https://matklad.github.io/2025/11/04/on-async-mutexes.html
38•ingve•1w ago•13 comments

Show HN: Tiny Diffusion – A character-level text diffusion model from scratch

https://github.com/nathan-barry/tiny-diffusion
133•nathan-barry•4d ago•16 comments

Blending SQL and Python with Sqlorm

https://hyperflask.dev/blog/2025/11/11/blending-sql-and-python-with-sqlorm/
13•emixam•4d ago•4 comments

GEN-0 / Embodied Foundation Models That Scale with Physical Interaction

https://generalistai.com/blog/nov-04-2025-GEN-0
59•jackdoe•1w ago•6 comments

The disguised return of EU Chat Control

https://reclaimthenet.org/the-disguised-return-of-the-eus-private-message-scanning-plot
684•egorfine•16h ago•266 comments

Manganese is Lyme disease's double-edge sword

https://news.northwestern.edu/stories/2025/11/manganese-is-lyme-diseases-double-edge-sword
141•gmays•17h ago•78 comments

Hiring the Joker

https://quarter--mile.com/hiring-the-joker
27•surprisetalk•1w ago•20 comments