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
1
vote
1 answer

ImportError: no module named tinydb

I am using from tinydb import TinyDB, Query to import the tinydb module. This works completely fine when testing my python and kivy code. After using buildozer to create an apk and debugging, it is saying that it crashed because of ImportError: no…
Azaro
  • 53
  • 1
  • 12
1
vote
1 answer

The operation TimerInterval cannot accept the arguments: [(1800)] in App Inventor 2

I'm stuck on an error in my App Inventor 2 application. I' m using three checkboxes, so the user to pass values to a timer interval in a clock component. The values are stored in a variable as a list of three values of miliseconds (e.g. 1600, 1800,…
CodeBugging
  • 321
  • 12
  • 28
1
vote
1 answer

Proper way of using ResultNotifier.ShowProgressDialog in App Inventor 2?

Expanding the functionality of an under development app, I need to show to the user a progress notification dialog. Problem is, I cannot get it done right. Furthermore, I cannot dismiss this notifier properly. Have tried with a clock and a variable…
CodeBugging
  • 321
  • 12
  • 28
0
votes
2 answers

Get list of values at specific position in TinyDB

I have a TinyDB for Python and the data with multiple lines in the structure {'service': {'key1': '', 'key2': '', 'key3': '', 'key4': '', 'key5': ''}} I wanted to get only "service" from all the lines of the database assuming the "service" real name…
Venu Reddy
  • 39
  • 8
0
votes
2 answers

TinyDB update only part of document

I am unable to find a way how to update only part of a TinyDB document (one entry in an array). For example: { "name": "first", entries: [ { "id": 1, "count": 1 }, { "id": 2, "count": 33 } ] } Is there a way only update the entry object with id 2?
Miro Krsjak
  • 355
  • 1
  • 16
0
votes
0 answers

Why is my image not showing up when i try run the app, nor the click function works?

I'm pretty new on programing, totally new i'd say. I'm doing this just for personal reasons. I'm addicted to reading content online, and i usually end loosing the links for my readings. Although i know that there are other options, i'm trying to…
0
votes
0 answers

Python TinyDB - Can I query a database with a list of document IDs?

The TinyDB documentation describes a function "get" which lets you recover a document from a database by its unique id. For example, db.get(doc_id=3) Is there a way to get a list of documents from a list of document ids?
0
votes
0 answers

How to search a JSON db

Do you by any chance know how I should structure my search to access the 'a', 'b', 'c' in the following: {"_default": {"1": {"Pc": "2429546524130460032", "Pf": "2429519276857919232", "Points": [{"P": "2428316170619108992", "a": "0.0690932185744956",…
pbhuter
  • 373
  • 1
  • 4
  • 17
0
votes
0 answers

tinydb search multiple fields and values from list to return n values

Hi I am trying to make a parametric search using tinydb however I am having difficulty doing 2 things. the first is that I want to specify which fields I want to look at and what values I want to return. for example if I have the…
user169808
  • 503
  • 1
  • 6
  • 27
0
votes
0 answers

Search JSON file with TinyDB (microPython)

I am trying to use TinyDB in microPython to do the following. If my JSON db file includes ten sets of points defined as follows: Points1.a Points1.b Points1.c ... Points10.a Points10.b Points10.c where I want to compare all 10 a, b, and c to three…
pbhuter
  • 373
  • 1
  • 4
  • 17
0
votes
0 answers

Flask whit tinydb pop up this error when i try to delete a field

i try to fix this error in flask , i have nearly zero experience whit flask and python, I'm struggle for couple of days, this error pop up after i try to delete the lines I insert, and to make the web work i need to reboot the pi4 thank you part of…
0
votes
1 answer

bad: lost some post requests fastapi

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 method to show all values stored. a problem is if…
0
votes
1 answer

Query() in TinyDB with multiple files

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 vice versa?
Tycho112
  • 3
  • 2
0
votes
0 answers

Creating a listing of all files in a large directory (and subdirectories) in Python 3

I have a very large folder of files and I would like to create a db of the file names, path, and format for easy access. Firstly, is TinyDB a suitable solution for this db? I really want to keep it small and localised. Speed is not vital, but would…
yuuuu
  • 738
  • 3
  • 11
0
votes
0 answers

TinyDb caching data when an update is performed, but never updating the json document

I'm using TinyDB in a project to store information for a discord bot. Whenever a user updates their "rolls", the changed values get cached but the document is not updating to reflect the changes. This results in the data not being saved whenever the…