pytoolconfig.sources.PyTool

class pytoolconfig.sources.PyTool(tool)

Source for pytool.toml files.

Uses platformdirs to find configuration directories.

__init__(tool)

Initialize the TOML configuration.

Parameters:

tool (str) – name of your tool. Will read configuration from [tool.yourtool]

Methods

__init__(tool)

Initialize the TOML configuration.

parse()

Parse the TOML file.

universalconfig()

Parse the file for the universal config object's fields.

Attributes

description

name

toml_dict

tool

file