common module

Common utilities for CLI

ezbotf.common.compile_directory(path: Path)

Compiles all .py files in the directory (also deletes it and __pycache__)

Parameters:

path – Path to the directory to compile

ezbotf.common.compile_plugin(path: Path, out_path: str)

Compiles plugin for transport it

Parameters:
  • path – Path to the plugin directory

  • out_path – Path to the directory where be exported compiled plugin and raw plugin directory

ezbotf.common.install_plugin(plugins_dir: Path, plugin_zipped_path: Path) bool

Installs plugin by path

Parameters:
  • plugins_dir – Directory with the plugins

  • plugin_zipped_path – Path to compiled & zipped plugin

Returns:

True if plugin successfully installed, otherwise False