pollination_apps.config module

Pollination App Config

class pollination_apps.config.Config(name: str, owner: str)[source]

Bases: object

Pollination app configuration.

Parameters:
  • name – App human readable name. e.g. My first app

  • owner – App’s owner on pollination. e.g. ladybug-tools

classmethod from_file(path: str)[source]

Create a config object from a config file.

Parameters:

path – Full path to the config.ini file.

classmethod from_folder(folder: str)[source]

Create a config object from an app folder.

Parameters:

folder – Path to app folder. The config file should be located at .pollination/config.ini

name: str
owner: str
write(folder: str)[source]

Write config to an ini file.

Parameters:

folder – Path to app folder. The config file will be created at .pollination/config.ini