News for hackers. Stuff that matters.
Re:Show HN: Pydb – a lightweight database with Python syntax... by jmduke on Saturday January 28, 2017 @11:59AM (#13507363)
It might not hold up to heavy use cases, but I can already imagine a bunch of ways this would make my life easier (I use Python scripts to handle a bunch of social media stuff and basic analytics, for instance, where I use either text files or some other proxy to handle state.)

The only request I'd have is a syntactically saccharine way of spinning up the server within the client itself, which is in general an awful idea but would make my life easier for toy use cases.

Re:Show HN: Pydb – a lightweight database with Python syntax... by asrp on Saturday January 28, 2017 @01:52PM (#13508016)
Thanks! I'm glad to see this looks potentially useful to someone other than myself.

If the client could start servers (other than by importing from server.py), what would be the intended outcome if two clients try to spin up servers at the same time? Otherwise would a file lock do? In that case, just file locking combined with pickle could possibly be enough for your needs.

Re:Show HN: Pydb – a lightweight database with Python syntax... by amenod on Saturday January 28, 2017 @02:43PM (#13508521)
+1 (I find it useful too). I actually started writing my own implementation of something similar (named "PersistendDict" - feel free to steal the name ;) ) but never finished it so I will definitely check out your library. Thanks!

On account of starting / stopping the server... I personally don't care if functionality is there or not as I can always start server manually on dev machine, and it should be started differently on production machines anyway. But that's just my opinion.