DumpTruck is a relaxing way to use SQLite from Python.
pip install dumptruck
dt = DumpTruck() dt.insert({"payload": "10 tons"}) data = dt.dump()