Hacker News new | ask | show | jobs
by ishandotpage 924 days ago
https://pypi.org/project/dirtyjson/

Using this one a lot nowadays. It's great for getting embedded JSON out of things which are not very consistent.

Extremely useful for extracting JSON from LLM responses, also great for general purpose data munging.

https://dataset.readthedocs.io/en/latest/

Used to love this one when I didn't know SQL: It's kind of like RedbeanPHP, but in Python, and lets you do stuff like this (from link) :

import dataset

db = dataset.connect('sqlite:///:memory:')

table = db['my_table']

table.insert(dict(name='John Doe', age=37))

table.insert(dict(name='Jane Doe', age=34, gender='female'))

john = table.find_one(name='John Doe')