Bin Module

bin.bin

bin.init

bin.lib

bin.package

TcEx Framework Package Module.

class tcex.bin.package.Package(excludes: Optional[List[str]], ignore_validation: bool, output_dir: Path)[source]

Bases: BinABC

Package ThreatConnect Job or Playbook App for deployment.

This method will package the app for deployment to ThreatConnect. Validation of the install.json file or files will be automatically run before packaging the app.

build_fqpn

Return the fully qualified path name of the build directory.

exclude_files(src: str, names: list)[source]

Ignore exclude files in shutil.copytree (callback).

package()[source]

Build the App package for deployment to ThreatConnect Exchange.

print_json()[source]

[App Builder] Print JSON output containing results of the package command.

print_results()[source]

Print results of the package command.

template_fqpn

Return the fully qualified path name of the template directory.

zip_file(app_path: Path, app_name: Path, tmp_path: Path)[source]

Zip the App with tcex extension.

Parameters:
  • app_path – The path of the current project.

  • app_name – The name of the App.

  • tmp_path – The temp output path for the zip.

bin.test

bin.validate