Skip to main content

Recently Updated Pages

Loading files/dictionaries

pyntree Basic Usage

Syntax: Node(file_or_dictionary, **file_parameters) To load a file/dictionary, simply create ...

Updated 2 years ago by jvadair

Getting nodes

pyntree Basic Usage

Syntax: Node.get(*children) There are two ways to retrieve a child Node: root_node.get('chil...

Updated 2 years ago by jvadair

Setting values

pyntree Basic Usage

Syntax: Node.set(*children, value) To change a value or create a new node, you can use one of...

Updated 2 years ago by jvadair

Deleting a Node

pyntree Basic Usage

Syntax: Node.delete(*children) The delete function can take either 0 or 1+ parameters: Node....

Updated 2 years ago by jvadair

Checking for a value

pyntree Basic Usage

Syntax: Node.has(*names) To see if a Node has a child with a given name, use the has method: ...

Updated 2 years ago by jvadair

What is pyntree?

pyntree Getting started

Overview pyntree is a python package which allows you to easily and syntactically save your data...

Updated 2 years ago by jvadair

Changing the active file

pyntree Supported file types and actions

To change the active file, you can use the switch_to_file method: File.switch_to_file(filename, ...

Updated 2 years ago by jvadair

Reloading/retrieving the data from the file

pyntree Supported file types and actions

To reload the data from the file, use the following method: File.reload() This method is only 1...

Updated 2 years ago by jvadair

Source code, roadmap, and more

pyntree

Source code pyntree's source code is available at https://github.com/jvadair/pyntree. Roadmap ...

Updated 2 years ago by jvadair

The File object

pyntree Supported file types and actions

The File object is a helper object to ensure data consistency across nodes. Each node holds a lin...

Updated 2 years ago by jvadair

A basic program with pyntree

pyntree Getting started

Let's take a simple, yet practical example. Let's say you've written a web service, and need to ...

Updated 2 years ago by jvadair

Compression

pyndb Tricks

Using compress_pickle, we can override pyndb's default save_pickle and load_pickle functions (whi...

Updated 2 years ago by jvadair

Nextcloud + PHP headaches

Debugging Journal PHP

Resolved Solution: The error was hiding in /var/log/apache2/error.log, and the solution was to ...

Updated 2 years ago by jvadair

About

pyndb Basics

This documentation covers version 3.4.3 What is pyndb? pyndb, short for Python Node Database, i...

Updated 2 years ago by jvadair

Saving

pyndb Usage

If a PYNDatabase object is initialized with a dictionary, it will update the original dictionary ...

Updated 2 years ago by jvadair

Checking all values

pyndb Usage

This function will be replaced with a variable in the future if possible. To view all the childr...

Updated 2 years ago by jvadair

The transform method

pyndb Usage

The transform method places the existing value of a Node into a dictionary under a user-defined k...

Updated 2 years ago by jvadair

Finding values

pyndb Usage

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

Updated 2 years ago by jvadair

Creating new nodes

pyndb Usage

Nodes can be created using the set or create methods. The set method invokes create if the flag ...

Updated 2 years ago by jvadair

Encryption

pyndb File Types

You can use encryption on any file type supported by pyndb. You must have an up-to-date version ...

Updated 3 years ago by jvadair