bubble.cli.
BubbleCli
(home=None, verbose=0, verbose_bar=100)[source]¶Bases: bubble.Bubble
the Bubble for the Command Line Interface,
this the bubble to be passed around as the ‘ctx’ for the cli commands
rule functions, these can be attached to rules and run by the rule
bubble.functions.
NoRuleFunction
(name=None)[source]¶Bases: bubble.Bubble
fun
= None¶fun_type
= None¶name
= None¶stats
= None¶bubble.functions.
RuleFunction
(name=None, fun=None, fun_type=None, verbose=1)[source]¶Bases: bubble.Bubble
fun
= None¶fun_type
= None¶name
= None¶stats
= None¶bubble.functions.
RuleFunctions
[source]¶Bases: bubble.Bubble
bubble.functions.
load_custom_functions
(ctx, custom_rule_functions_py='./custom_rule_functions.py')[source]¶system rule functions which are predefined for generic usage
bubble rules have a simple notation, with a line based rule format and a single rule definitions seperator “>>>” every line starting and ending with the rule separator, becomes a rule for the bubble transformer. anything else is treated as comment.
the bubble transformer takes a dictionary and applies transforming rules(with functions) and returns the resulting dictionary.
bubble.transformer.
Transformer
(rules=None, rule_type='bubble', store={}, config={}, bubble_path=None, verbose=1)[source]¶Bases: bubble.Bubble
name
= None¶« bubble :: Contents :: bubble.clients package »