I just created a Python database. How do I open it to look at it?

from replit import db

print(db.keys())

or

from replit import db

for _key in db.keys():
   print(_key, db[_key]) # print key name + value.
2 Likes

why _key? can’t you just use key?

2 Likes

There used to be an :sparkles: AMAZING :sparkles: repl to view your ReplitDB in a hierarchical tree structure. Basically like json.

However the repl has been down lately and who know if it will be fixed. :frowning_face:

Here is the Repl’s site: Replit DB GUI
Here is the Repl’s cover page: Replit DB GUI cover page
It was created by @fatfingers23

2 Likes

It works rn? What do you mean?

Extensions time :). I’ll make an extension for this

not for me. I cant login.

1 Like

Last time I tried, chrome overloaded after logging in.

1 Like

This is why we need an extension for this. I am the extension superman

Just flipped “Unavailable”, lol.

There are like 5 extensions for it already

1 Like

As @MiloCat said, there are already a ton, one was even good enough to be promoted to the explorers extension store.

1 Like

why do you always correct people? I post one think with a spelling mistake your spawn out of no where and correct me

Wait rly nice one in the official store

1 Like

Make sure you are an explorer, create a new tab in your repl, search “extensions”, install the repl db one, and then open it :slight_smile:

1 Like

Yup I found it :smiley:
Ima learn nodejs to develop some extensions (I have beta access)

Nooo!!! Although I am the only person with access that I know of who does not use js at all for extensions. And even then, just use flask for backend and js for frontend, no need to learn Node.

2 Likes

Yea but I don’t know js and might as well learn node in the process

Well, if you want to go by the guidelines of the creator of Node, probably better to use Deno, which is the creators favorite child afaik. Idk much about Node and others, nor want to.

1 Like

Here’s a python repl for it too, lol (quickly thrown together):
https://replit.com/@Firepup650/Attempt-at-a-DB-editor

2 Likes