fsysobj

OPTIONS:

-a –appname

Name of application. Used for deafults, e.g. configuration file names.

--appname=<appname>

default: jsondc

-c –configfile

A single configuration file, see inline comments for details:

--configfile=<configfile>

default: jsondc.ini

The search path for the configuration file is:

  1. Environment variable as search path JSONDATA_PATH.
  2. User app data, see filesysobjects.osdata.getdir_userappdata() [filesysobjects].
  3. User config data, see filesysobjects.osdata.getdir_userconfigdata() [filesysobjects].
  4. OS config data, see filesysobjects.osdata.getdir_osconfigdata() [filesysobjects].
  5. Install directory of the package, see pysourceinfo.fileinfo.getcaller_pathname() [sourceinfo].
-d –debug
Debug entries, does NOT work with ‘python -O ...’. Developer output, aimed for filtering. When provided mulltiple times the level is raised.
-h –help
This help.
-n –no-default-path

Supress load of default path.

default: False

-p –pathlist

Search path for JSON data file(s), standard list for current platform.

--pathlist=<search-path-JSON-data>

default:= ../dirname(__file__)/:dirname(__file__)/:/etc/:$HOME/

–print-data

Pretty print data.

--print-data[=<format>]

  format := (
      'json-line'      # all in one line with JSON syntax
    | 'json-struct'    # tree-structure with JSON syntax
    | 'python-line'    # all in one line with Python syntax
    | 'python-struct'  # tree-structure  with Python syntax
    | 'repr'           # repr() - raw string, Python syntax
    | 'str'            # str() - formatted string, Python syntax
  )
–selftest

Performs a basic functional selftest by load, verify, and validate.

  1. jsondata/data.json + jsondata/schema.jsd
  2. jsondata/selftest.json + jsondata/selftest.jsd
–Version
Current version - detailed.
-v –verbose
Verbose, some relevant states for basic analysis. When –selftest is set, repetition raises the display level.
–version
Current version - terse.

DESCRIPTION:

The fsysobj executable provides the commandline interface to the filesys objects library.

EXAMPLES: