Recently Updated Pages
Loading files/dictionaries
Syntax: Node(file_or_dictionary, **file_parameters) To load a file/dictionary, simply create ...
Getting nodes
Syntax: Node.get(*children) There are two ways to retrieve a child Node: root_node.get('chil...
Setting values
Syntax: Node.set(*children, value) To change a value or create a new node, you can use one of...
Deleting a Node
Syntax: Node.delete(*children) The delete function can take either 0 or 1+ parameters: Node....
Checking for a value
Syntax: Node.has(*names) To see if a Node has a child with a given name, use the has method: ...
What is pyntree?
Overview pyntree is a python package which allows you to easily and syntactically save your data...
Changing the active file
To change the active file, you can use the switch_to_file method: File.switch_to_file(filename, ...
Reloading/retrieving the data from the file
To reload the data from the file, use the following method: File.reload() This method is only 1...
Source code, roadmap, and more
Source code pyntree's source code is available at https://github.com/jvadair/pyntree. Roadmap ...
The File object
The File object is a helper object to ensure data consistency across nodes. Each node holds a lin...
A basic program with pyntree
Let's take a simple, yet practical example. Let's say you've written a web service, and need to ...
Compression
Using compress_pickle, we can override pyndb's default save_pickle and load_pickle functions (whi...
Nextcloud + PHP headaches
Resolved Solution: The error was hiding in /var/log/apache2/error.log, and the solution was to ...
About
This documentation covers version 3.4.3 What is pyndb? pyndb, short for Python Node Database, i...
Saving
If a PYNDatabase object is initialized with a dictionary, it will update the original dictionary ...
Checking all values
This function will be replaced with a variable in the future if possible. To view all the childr...
The transform method
The transform method places the existing value of a Node into a dictionary under a user-defined k...
Finding values
To see if a Node with a specific name(s) is located within a parent, you can use the has method. ...
Creating new nodes
Nodes can be created using the set or create methods. The set method invokes create if the flag ...
Encryption
You can use encryption on any file type supported by pyndb. You must have an up-to-date version ...