ace.tools package

Entrypoints for command line tools of the ACE package.

Submodules

This tool wraps the pyang package CLI with local plugins.

ace.tools.ace_adm.SELFDIR = '/home/runner/work/dtnma-ace/dtnma-ace/src/ace/tools'

Directory containing this file

ace.tools.ace_adm.main()

This tool converts ARIs between different encoding forms.

It uses environment variables to control where ADMs are searched for and command options to control the ARI conversion. For text or cborhex forms of input or output, each line is handled as a separate ARI and converted independently until the input stream is ended. For cbor form of input or output, the stream is treated as a CBOR sequence and each item is handled as a separate ARI.

ace.tools.ace_ari.decode(args: Namespace)

Decode the ARI from the specified form.

Parameters:

args – The command arguments.

Returns:

An iterable for the ARI items.

ace.tools.ace_ari.encode(args: Namespace, ari)

Encode the ARI in the desired form.

Parameters:
  • args – The command arguments.

  • ari – The single ARI to encode.

ace.tools.ace_ari.get_parser() ArgumentParser

Construct the argument parser.

ace.tools.ace_ari.main()

Script entrypoint.

ace.tools.ace_ari.run(args: Namespace)

Run this tool with externally-supplied arguments.

Parameters:

args – The command arguments namespace.