Skip to main content

Finding values

To see if a Node with a specific name is located within a parent, you can use the has method.

Command usage:

PYNdatabase.has(name)
PYNdatabase.Node.has(name)

Examples:

Basic usage:

from pyndb import PYNDatabase
db = PYNDatabse('filename.pyndb')
db.set('hello', 'world')
condition = db.has('hello')  # <-- (will returnequal True)
condition = db.has('test')  # <-- (will returnequal False)