Skip to main content

Creating a new database

To create a new database, first import the PYNDatabase object from the module. Once you have done this, you can initialize it and then store it in a variable. A PYNDatabase object can be initialized with a filename (string), or a dictionary. You can also set the autosave flag, which will only work if a filename is set (otherwise the dictionary object will be updated automatically). These values CAN be changed later, by changing PYNDatabase.<file | autosave>.