To declare a new TinyDB instance in Python, you need to import the TinyDB library and create a new instance of the TinyDB class.
The required parameter is the path to the database file, which can be a relative or absolute path.
Example :
from tinydb import TinyDB
db = TinyDB(‘path/to/database.json’)?