- Linux :
python3 -m pip install easydb-json
- Windows :
python -m pip install easydb-json
Discord : Lactua#6319
Github: https://github.com/lactua
-
To start, you have to create your database in your code by using the init function.
The init function return you a dict that you can edit and that will be saved in the path that you gave.
Parameter Type Description path string The path of the database file Example :
from easydb-json import init mydb = init('NiceDir/NiceFile.json')
-
When you edit the dict that is return from the init function, it automaticly edit the database file. So to interact with the database, interact with the dict.
Example :
from easydb-json import init mydb = init('NiceDir/NiceFile.json') mydb['name'] = 'Lactua' print(mydb['name']) mydb['name'] = 'Luctau' print(mydb['name']) del mydb['name']
Output :
Lactua Luctau