Documentation

Read Divooka Document

Shows how to read a Divooka document from code.

Read Divooka Document from Code

Status: Not completed

This tutorial shows how to read a Divooka document from code.

Divooka graph editors can open Divooka documents easily - but what if we want to automate things with Divooka documents, in which case we would need to open Divooka documents in a code-driven way?

In Divooka

You can read Divooka documents in Divooka using Automation API!

Example

Custom Reader (Binary) - C#

In this illustrative example we show how you can create your own reader in C#. Notice the trick is to understand specific types of nodes and what they expect in the binary stream.

// Pending

With Existing Libraries

If you are using a text based format for Divooka documents, you can easily import them using host libraries available in any given language for dealing with JSON or YAML.

Here is an example of reading JSON in NodeJS:

// Pending

Divooka Document Converter

Stewer can be used to convert Divooka documents to/from different formats[^1]. Some graph editors also offer similar command line options or GUI menus for doing this.

YAML

You can save Divooka document as YAML (with or without payloads).

JSON

You can save Divooka document as JSON (with or without payloads).

Custom Reader (Text) - Python

In this section we show how to parse Divooka text format in Python.

# Pending

References

[^1] Not available yet.