solitude.tools module

class solitude.tools.Tool(tooldir: str, name: str, version: str)[source]

Bases: object

An external tool that can be installed on the local filesystem and used

__init__(tooldir: str, name: str, version: str)[source]

Initialize self. See help(type(self)) for accurate signature.

add()[source]

Install the tool into the tools directory

get(key: str) → str[source]

Get a module from the tool

Parameters:key – a string key (name) associated with the module, usually the name of the file.
Returns:the filesystem path of the module location
have() → bool[source]

Check if the tool is present in the tools directory

name

Tool name

provided

Get the provided modules

Returns:dict of (key -> path) of all modules provided by the tool
remove()[source]

Remove (delete) the tool from the tools directory

version

Tool version string

solitude.tools.Solc

alias of solitude.tools.solc.SolcNativeLinux

class solitude.tools.GanacheCli(tooldir: str, version: str)[source]

Bases: solitude.tools.base.ToolNpmTemplate

__init__(tooldir: str, version: str)[source]

Initialize self. See help(type(self)) for accurate signature.

class solitude.tools.EthLint(tooldir: str, version: str)[source]

Bases: solitude.tools.base.ToolNpmTemplate

__init__(tooldir: str, version: str)[source]

Initialize self. See help(type(self)) for accurate signature.