css_parser

Functions:

parse_css(css_data)

Parse the stylesheet from the given string

parse_css_file(filename)

Parse the stylesheet in the given file.

parse_css(css_data)[source]

Parse the stylesheet from the given string

Parameters

css_data (str) – A string representing a CSS stylesheel

Return type

Dict

Returns

Parsed CSS stylesheet

parse_css_file(filename)[source]

Parse the stylesheet in the given file.

Parameters

filename (Union[str, Path, PathLike]) – The filename of the stylesheet to parse.

Return type

Dict

Returns

Parsed CSS stylesheet.