jasy.style package

Submodules

jasy.style.Engine module

jasy.style.Engine.compressTree(tree, optimizationLevel=0, formattingLevel=0)[source]

Returns the compressed result from the given tree

jasy.style.Engine.getTokenizer(text, fileId=None)[source]

Returns a tokenizer for the given file content

jasy.style.Engine.getTree(text, fileId=None)[source]

Returns a tree of nodes from the given text

jasy.style.Engine.permutateTree(tree, permutation=None)[source]

Returns an optimized tree with permutations applied

jasy.style.Engine.printTokens(text, fileId=None)[source]

Prints out a structured list of tokens

jasy.style.Engine.reduceTree(tree, profile=None)[source]

Applies all relevant modifications to the tree to allow compression to CSS

jasy.style.Resolver module

class jasy.style.Resolver.Resolver(profile)[source]

Bases: jasy.abstract.Resolver.Resolver

getItemDependencies(item)[source]
getSorted()[source]

Returns a list of sorted classes

jasy.style.Sorter module

class jasy.style.Sorter.Sorter(resolver)[source]

Bases: jasy.abstract.Sorter.AbstractSorter

Sorter for Style items

getItemBreaks(item)[source]
getItemDependencies(item)[source]

jasy.style.Util module

jasy.style.Util.assembleDot(node, result=None)[source]

Joins a dot node (cascaded supported, too) into a single string like “foo.bar.Baz”

jasy.style.Util.castNativeToNode(value)[source]
jasy.style.Util.combineMediaQueryList(media)[source]
jasy.style.Util.combineSelector(node, stop=None)[source]

Figures out the fully qualified selector, media query and @supports value of the given Node.

jasy.style.Util.combineSelectorList(selector, stop, root=None)[source]
jasy.style.Util.combineSupportList(supports)[source]
jasy.style.Util.executeCommand(node, profile)[source]
jasy.style.Util.extractName(name)[source]
jasy.style.Util.extractVendor(name)[source]

Module contents