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')
db.has('hello')  # <-- (will return True)
db.has('test')  # <-- (will return False)