parse_json

This module consists of a single class, JSONParser.

class pype_schema.parse_json.JSONParser(path)[source]

A parser to convert a JSON file into a Network object

Parameters:
  • config_dict (dict) – dictionary that defines network

  • network_name (str) – name of the network being parsed

Variables:
  • path (str) – path to the JSON file to load

  • config (dict) – dictionary with the contents the JSON file

  • network_obj (Network) – Python representation of the JSON file