Questions tagged [tinydb]

TinyDB is document oriented database written in pure Python.

TinyDB is a query processing system for extracting information from a network of TinyOS sensors.

Unlike existing solutions for data processing in TinyOS, TinyDB does not require you to write embedded C code for sensors. Instead, TinyDB provides a simple, SQL-like interface to specify the data you want to extract, along with additional parameters, like the rate at which data should be refreshed -- much as you would pose queries against a traditional database.

http://telegraph.cs.berkeley.edu/tinydb/

98 questions
0
votes
0 answers

tinydb search,insert,update errors

in the console it gives me the error that "inventory" does not have the "search" command but as you can see from the images "inventory" is a table of the db and also when I try to do "insert, search, update" it gives me the same error. Can you help…
onur_
  • 1
  • 1
0
votes
1 answer

Choice of technology

As you might probably already know, python3 is a single threaded, mono processor program, this seems to goes well with tinydb (json) that state being only made of full python, as well as bottle (web server). In a world where you want to have…
Pelican
  • 193
  • 2
  • 17
0
votes
1 answer

How do i make TinyDB file

import simplejson as json from tinydb import TinyDB #파일 DB 생성 db = TinyDB('C:\python\\section5\\databases\\database.db') #db.default_table_name = 'users' This is ERROR please help me to solve this problem: Traceback (most recent call last): …
0
votes
1 answer

Searching in a complex json information in an tinyDB

I've the following json information in a tinyDB { "_default": { "1": { "status": { "timestamp": "2021-03-21T15:12:04.025Z", "total_count": 4436 }, "data": [ { "id": 1, …
BCPro
  • 1
  • 1
0
votes
1 answer

How to send only 1 variable from a set of 3 in TinyDB

[DISCORD.PY and TINYDB] I have set up a warning system for Discord. If someone gets warned, the data is saved like so: {'userid': 264452325945376768, 'warnid': 37996302, 'reason': "some reason"} Problem of this: I want the command "!warnings" to…
Entity2k3
  • 76
  • 2
  • 7
0
votes
0 answers

Why looping Tinydb.update work just for the first time in loop

actual version of tinydb 4.3.0 from tinydb import TinyDB, Query db = TinyDB('db.json') dbtable = db.table('Counters') Search = Query() splitemsg = ['', 'nwm', '', 'nwm', '', 'nwm', ''] #in other cases it can be different for tableval in…
master
  • 27
  • 6
0
votes
1 answer

Save data to tinydb from android studio app

I have not used tinydb before. I am trying to insert some data to tinydb database using the android app. I have checked many videos and blogs but still confused about how to use it. How can I create a database and insert values from the app?
Aysha Hamna
  • 436
  • 1
  • 6
  • 13
0
votes
0 answers

json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1) TinyDB

The bot must accept the user's responses and send each of the responses to a text file, read each of the responses and send it to the database, an error occurs when writing responses to the database, but at the beginning of this there were no…
Takeda
  • 1
  • 1
0
votes
1 answer

TinyDB remove WHERE multiple values are true

In Python, I'm trying to remove an entry from TinyDB where 2 values match. Example DB: { "_default": { "1": { "GuildID": 123, "RoleName": "role" }, "2": { "GuildID": 321, …
Josh
  • 164
  • 4
  • 16
0
votes
1 answer

Get all the keys from TinyDB database

I create a tinydb database that looks as such: {"_default": {"1": {"word": "cat", "definition": "Its an animal."}, "2": {"word": "cat", "definition": "Its an animal."}, "3": {"word": "man", "definition": "has a hand"}, "4":…
0
votes
1 answer

How to install TinyDB?

I am trying to install TinyDB as I need to use it for a python program. I have tried following tutorials that suggest installing it via the command prompt. However, whenever I type 'python', it says ''python' is not recognized as an internal or…
Olivia
  • 11
  • 3
0
votes
1 answer

How to handle "TypeError: __init__() missing 1 required positional argument: 'path'"

I want to set up a new tinyDB object in Python 3, but TinyDB() gives me this error Traceback (most recent call last): File "C:/Users/Utente/Documents/CodingStuff/AlgManager/AlgManager.py", line 4, in db = tdb.TinyDB() File…
Essay97
  • 648
  • 1
  • 9
  • 24
0
votes
1 answer

How do I import contacts from MIT App Inventor into a database (tinydb or firebase)?

I currently have the capability to get contacts to show up one by one when I click the button text for button 2. How can I get contact information to automatically upload to a database (tinydb or firebase) with a button click? the ultimate goal is…
0
votes
1 answer

Python lambda function missing lambda keyword but still works

I am using python library tinydb to store data. According to tinydb documentation, the proper syntax for an example query is: User = Query() db.search(User.birthday.year == 1990) Why don't we need: User = Query() db.search(lambda User:…
Michael Sohnen
  • 953
  • 7
  • 15
0
votes
1 answer

Python unittest setUP temporary db - NameError: global name 'db' is not defined

Using tinyDB the application is persisting data to a json file. I need to unittest if certain data is already contained in the database file. I'm creating an alternate database setup in the setUP method in the variable db. I get the error below. …
jdubtd10
  • 105
  • 1
  • 2
  • 9