Issue how can I serialize an object which has another object in his attributes using TinyDB ? class address: def __init__(self, country, city): self.country = country self.city = city class Person: def __init__(self, name, address): self.name = name self.address =
Continue readingTag: tinydb
[SOLVED] Query() in TinyDB with multiple files
Issue I use Python + TinyDB, I have 2 json files, and I create 2 TinyDB objects: db = TinyDB(“db.json”) forum = TinyDB(“forum.json”) But how do I use Query()? How can I code that Query() will only check db.json or
Continue reading[SOLVED] How do i insert multiple tables into a table using TinyDB?
Issue I have been trying to create multiple tables in a table using TinyDB. Here is a website to help you understand what TinyDb is (TinyDB PDF). The PDF file did not show how to insert multiple tables into one,
Continue reading[SOLVED] bad: lost some post requests fastapi
Issue i create api using fastapi framework and i have deployed on heroku, the main function of this api is i have to send (post method) element as query parameter every 5s and i store it in tinydb and get
Continue reading[SOLVED] Parsing large csv file to tinydb takes forever
Issue I have a large csv file containing 15 columns and approximately 1 million rows. I want to parse the data into tinyDB. The code I use is below: import csv from tinydb import TinyDB db = TinyDB(‘db.monitor’) table =
Continue reading