freckles package¶
Subpackages¶
Submodules¶
freckles.defaults module¶
freckles.exceptions module¶
-
exception
freckles.exceptions.
FrecklesConfigException
(keys=None, msg=None, solution=None, reason=None, references=None)[source]¶ Bases:
frutils.exceptions.FrklException
-
exception
freckles.exceptions.
FrecklesPermissionException
(key=None, msg=None, solution=None, reason=None, addition_references=None)[source]¶ Bases:
frutils.exceptions.FrklException
-
exception
freckles.exceptions.
FrecklesRunException
(msg=None, run_info=None)[source]¶ Bases:
frutils.exceptions.FrklException
-
exception
freckles.exceptions.
FrecklesUnlockException
(message)[source]¶ Bases:
frutils.exceptions.FrklException
-
exception
freckles.exceptions.
FrecklesVarException
(frecklet=None, frecklet_name=None, var_name=None, errors=None, task_path=None, vars=None, task=None, msg=None, solution=None, references=None)[source]¶ Bases:
frutils.exceptions.FrklException
-
exception
freckles.exceptions.
FreckletBuildException
(frecklet, msg, solution=None, reason=None, references=None)[source]¶ Bases:
frutils.exceptions.FrklException
freckles.frecklecutable module¶
-
class
freckles.frecklecutable.
Frecklecutable
(frecklet, context)[source]¶ Bases:
object
-
context
¶
-
frecklet
¶
-
freckles.freckles module¶
-
class
freckles.freckles.
Freckles
(context_config=None, extra_repos=None, config_repos=None, default_context_name='default')[source]¶ Bases:
object
The main class to encapsulate most things a developer would want to achieve with ‘freckles’.
This has a fairly complex configuration processing mechanism in-built, which is mainly used to enable maximum flexibility when building user-facing apps on top of ‘freckles’. In most cases, you can safely ignore all that, and set the ‘config_repos’ value to ‘None’, and use ‘default_context_config’ to set the context defaults you want to use.
In case you want to utilize the config processing feature (but really, best to just ignore it, it is probably too complex for what it does and will be re-written and simplified at some stage):
The ‘default_context_config’, can be either a string, a dict or a dict. If a list, every element will be merged on-top of the previous (merged) dict. If a string, the ‘config_repos’ will be checked whether they contain a file with that name and a ‘.context’ file extension, if there is, the content of that file will be used, if not, the string must either be ‘default’, in which case an empty dict will be returned, or it must contain a ‘=’, in which case a one-item dict will be created with the left side (before ‘=’) used as key, and the right one as value (some simple auto-parsing will be used to determine whether the value is a bool or integer).
Parameters: - context_config – the default configuration that underlies everything
- extra_repos (list) – a list of extra repositories to search for frecklets and resources (see above for format)
- config_repos (dict, string) – a single path or a dictionary of alias/path to point to folders containing context configurations
-
current_context
¶
-
frecklets
¶
-
class
freckles.freckles.
FrecklesDesc
(context_config=None, extra_repos=None, context_alias=None)[source]¶ Bases:
object
-
context_alias
¶
-
context_config
¶
-
extra_repos
¶
-
freckles_obj
¶
-