@@patloeber Btw, since you replied so quickly. I have to say that, for calling a specific key of the database, for me it didn't work like User.name, but It did work like User["name"], so in one case its treating it as an attribute and in the other as a key (I think?). A bit confusing...
hey nice tutorial but i have a problem. If i copy your code i get an bad file descriptor error in line 5 "db.insert({'type': 'peach', 'count': 3})". Do you know what could be wrong?
hey im having problem with my tinydb, when i tried running it i keep getting an error that says "cannot import name 'tinydb' from partially initialized module 'tinydb'". any help would be really appreciated:)
First db.purge(), now db.write_back()... Though your video is not that old, it is already outdated. One thing that may be done: in the title, include the version of TinyDB the video is intended for.
Hi everyone. The video is great but I have some real probleme with Python or Python Community. Well, I come from javaScript and I am learning Python. This language seem like a mess (to be polite). Because purge() was replace by truncate but .write_back() has been remove AND THAT IT and other Python issue! How do you deal with this unstable language?
in this case this is not the problem of Python, but of this third party library tinyDB. Unfortunately it released a new version with breaking changes shortly after my video...
This doesn't make a lot of sense. If you're dealing with information that fits into a single JSON file, that's just not enough data to require a database.
I created a table « Players » Each players got « classement » I tried so many times to change this « classement » but it’s impossible.. to find the player i use to write Player_table = db.table(« players ») Player_table.search(where(‘name’)==name) Player_table.update({‘classement’:newclassement}) But nothing changed
This is a great video and thank you for posting it. There are really no other up to date guides on RUclips besides the MIT App implementations.
Glad you like it :)
This is very good. Solid stuff. The purge() > truncate() thing is not a problem at all. Thanks Patrick.
thanks!
oh man this video just saved me from a huge headache, thanks
glad to hear this :)
@@patloeber Btw, since you replied so quickly. I have to say that, for calling a specific key of the database, for me it didn't work like User.name, but It did work like User["name"], so in one case its treating it as an attribute and in the other as a key (I think?). A bit confusing...
is there any way to use two different databases in the same file?
How do you get the age number insted of getting everything?
how can i do the same but in a website, i mean like an online database to u can insert in a website table the user data?
how does one access these key values however? when you have {name: 'Max'}, how are you able to access Max
hey nice tutorial but i have a problem.
If i copy your code i get an bad file descriptor error in line 5 "db.insert({'type': 'peach', 'count': 3})".
Do you know what could be wrong?
Thanks. Is there any Deep Learning related use case you have used it for? Just curious.
I haven't used it in a deep learning use case so far. I like to use it for example in small projects together with Flask
Hello !!
I'd like to know if I can use TinyDB with Flask to make it work everywhere for everyone
Yep!
@@Harry-uc4fo That be cool
Excellent explanation, thank you!
thanks!
Thanks for this video
glad you like it!
hey im having problem with my tinydb, when i tried running it i keep getting an error that says "cannot import name 'tinydb' from partially initialized module 'tinydb'". any help would be really appreciated:)
Is your import correct: from tinydb import TinyDB. Also make sure that you have NO file in your folder that is called tinydb.py
I love this channel. Thanks for sharing such great content
Thank you!
First db.purge(), now db.write_back()... Though your video is not that old, it is already outdated. One thing that may be done: in the title, include the version of TinyDB the video is intended for.
db.truncate() worked for me.
Good video, just as an FYI:
JSON should be pronounced as jay-son not jason
query should be pronounced as queer-e (long E)
Great tutorial!
thank you :)
Amazing Bro...
Thanks!
Holy shit, this is so good explained!
thanks! glad to hear that :)
Nice video
Hi everyone. The video is great but I have some real probleme with Python or Python Community. Well, I come from javaScript and I am learning Python. This language seem like a mess (to be polite). Because purge() was replace by truncate but .write_back() has been remove AND THAT IT and other Python issue! How do you deal with this unstable language?
in this case this is not the problem of Python, but of this third party library tinyDB. Unfortunately it released a new version with breaking changes shortly after my video...
@@patloeber Ok thank you Patrick for your reply and for all your videos.
This doesn't make a lot of sense. If you're dealing with information that fits into a single JSON file, that's just not enough data to require a database.
Then don't consider it a database, consider it a way of keeping information and being able to recall it later.
I created a table « Players »
Each players got « classement »
I tried so many times to change this « classement » but it’s impossible..
to find the player i use to write
Player_table = db.table(« players »)
Player_table.search(where(‘name’)==name)
Player_table.update({‘classement’:newclassement})
But nothing changed
The search has to be in a variable like
search = db.search(something == something)
search.update(something)