Lurker News
I'm thinking of tiny projects along the lines of single-function tools like domainr. But also game-changing ebooks, newsletters, courses.

Comments (868) 410 threads

Earlier comments
networked#
https://github.com/dbohdan/sqawk

It parses DSV data like Awk does, runs SQL queries against it and formats the output in one of several ways. An example I am particularly fond of is using this tool as a poor man's libxo (https://github.com/Juniper/libxo):

  $ ps | sqawk -output json,indent=1 'select PID,TTY,TIME,CMD from a' trim=left header=1
  [{
      "PID"  : "3947",
      "TTY"  : "pts/2",
      "TIME" : "00:00:07",
      "CMD"  : "zsh"
  },{
      "PID"  : "15951",
      "TTY"  : "pts/2",
      "TIME" : "00:00:00",
      "CMD"  : "ps"
  },{
      "PID"  : "15952",
      "TTY"  : "pts/2",
      "TIME" : "00:00:00",
      "CMD"  : "tclkit-8.6.3-mk"
  }]

I started a list of command line tools for querying, processing and converting structured text data: https://github.com/dbohdan/structured-text-tools.
coleifer4 replies#
I wrote peewee, a single file Python ORM. It's codebase is very small but it is extremely capable.

http://docs.peewee-orm.com

jedimastert#
This was actually the first ORM I used. It's currently in a super simple newsletter script I wrote for my university and I plan on using it anywhere else I run into databases and Python. Thanks!
mnkmnk#
Thanks!
sfifs#
oh nice. I remember using it long back for some personal mp3 classification software I wrote.

Nowadays though I tend to use either Key/Value stores or straight SQL.

ThatGeoGuy#
I actually only heard of this for the first time today, and it is indeed a fantastic ORM. The `pwiz` tool is insanely useful, and is a pretty good first step towards porting over database models from other projects.

I'm quite impressed with how easy to use everything is, despite having used pwiz to generate my model classes. I had to manually edit a couple of the "related_name" fields for some foreign keys that are common between tables, as well as import the ArrayField type from playhouse.postgres_ext, but otherwise had a very, very easy time getting everything set up for what I wanted.
Thanks again for this, I didn't think porting my database schema over to Python would be so easy.

alando462 replies#
http://worlddev.io

Sms Lists is an sms craigslist for refugee camps. I made it after visiting a couple of refugee camps and realizing that it was really hard for business owners who made <$1/day to have any extra money left over to re-invest in marketing their businesses. Code is here: https://github.com/alando46/smslists

dudeofea#
greate stuff! I feel that for things like this, the real problem to solve is getting it out to people, which might be why some programmers shy away from it. Though, I love stuff like this. Not everything needs to be disrupted by a pool of GPU-assisted tensorflow instances, low-tech is still way better than no-tech. Keep up the good work, and hmu if you need an extra hand
tibu1 reply#
This is really a great project. Would be worth to give more details how it is possible to reuse it. Do you think it work for homeless people too?
alando46#
Thanks! I'm working on linking it up an android gateway so anyone who wants to test / try it out only needs a local simcard and the ability to download the gateway software to an android handset. This basically already exists (https://telerivet.com/product/app), it's just a matter of setting everything up.

Load more comments