Module Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Import alias Import alias Import alias Import alias Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list orelse Assign NameStore AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Call NameLoad With Call NameLoad keyword NameLoad keyword Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str If CompareEq NameLoad Str body Assign NameStore Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults ListLoad body Assign NameStore Str If CompareEq NameLoad Str body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Lambda arguments args NameParam defaults AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str NameLoad Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If CompareIn Str NameLoad body Return NameLoad Return Call NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore TupleLoad Str Str Assign NameStore ListComp Call AttributeLoad Call NameLoad NameLoad attr comprehension NameStore NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad Dict Str Str Str Str attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Dict NameLoad Dict Str Str Str Str ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad NameLoad Dict Str Str Str NameLoad NameLoad NameLoad Dict Str Str Str Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A __author__ Ruslan Spivak <ruslan.spivak@gmail.com> N/A os N/A fnmatch N/A hashlib N/A sys N/A optparse N/A gzip collections defaultdict N/A N/A cStringIO StringIO N/A N/A N/A ImportError N/A StringIO StringIO N/A envoy N/A yaml N/A slimit N/A cssmin N/A OUTPUT_DIR assets N/A CONFIG_FILE assets.yaml N/A ASSETS_INFO_FILE assetsinfo.yaml _log N/A N/A msg N/A N/A N/A N/A N/A N/A sys stderr write N/A %s
 msg N/A load_config N/A N/A path N/A N/A N/A N/A N/A yaml load N/A open path N/A N/A N/A N/A sys version N/A 2 7 N/A GzipFile N/A N/A gzip GzipFile N/A __enter__ N/A N/A self N/A N/A N/A N/A N/A self fileobj None N/A N/A N/A ValueError I/O operation on closed GzipFile object N/A self N/A __exit__ N/A N/A self N/A args N/A N/A N/A N/A self close N/A N/A N/A N/A GzipFile N/A gzip GzipFile AssetManager N/A object N/A N/A I manage assets bundles. __init__ N/A N/A self config basedir N/A None N/A N/A N/A self config config N/A N/A self basedir N/A basedir N/A N/A os getcwd N/A _get_bundles_by_type N/A N/A self type N/A N/A N/A Get a dictionary of bundles for requested type.

        Args:
            type: 'javascript' or 'css'
         N/A bundles N/A N/A bundle_definitions N/A N/A N/A self config get type N/A N/A bundle_definitions None N/A N/A bundles N/A N/A bundle_name paths N/A N/A bundle_definitions items N/A N/A bundle_files N/A N/A path paths N/A N/A pattern abspath N/A N/A N/A os path join N/A self basedir path N/A assetdir N/A N/A N/A os path dirname abspath N/A fnames N/A N/A N/A N/A os path join assetdir fname N/A fname N/A N/A os listdir assetdir N/A expanded_fnames N/A N/A fnmatch filter fnames pattern N/A N/A N/A bundle_files extend N/A sorted expanded_fnames N/A N/A bundles N/A bundle_name bundle_files N/A bundles N/A _compress N/A N/A self data N/A N/A N/A compresslevel 9 N/A buffer N/A StringIO N/A N/A GzipFile fileobj buffer mode wb compresslevel compresslevel fout N/A N/A N/A N/A fout write data N/A N/A N/A buffer getvalue N/A _concat N/A N/A self data type N/A N/A N/A sep N/A N/A type javascript N/A N/A sep ; N/A N/A N/A sep join data N/A _minify N/A N/A self data type paths N/A N/A N/A N/A sep N/A N/A type javascript N/A N/A sep ; N/A custom N/A N/A N/A self config get js_minifier N/A N/A custom None N/A N/A minify N/A N/A N/A x N/A N/A N/A N/A envoy run custom data x std_out N/A N/A options N/A N/A N/A self config get js_minifier_options N/A mangle True N/A minify N/A N/A N/A x N/A N/A N/A slimit minify x options N/A N/A N/A type css N/A N/A minify N/A cssmin cssmin real_minify N/A N/A path contents N/A N/A N/A N/A .min path N/A N/A contents N/A N/A minify contents N/A N/A minified N/A N/A sep join N/A N/A real_minify path contents N/A N/A path contents N/A zip paths data N/A minified N/A _process_bundle N/A N/A self name paths type N/A N/A N/A N/A sha1 opt_dash N/A N/A raw_data N/A N/A N/A N/A open path read N/A path paths N/A N/A N/A N/A self config get fingerprint N/A N/A sha1 N/A N/A N/A N/A hashlib sha1 N/A N/A join raw_data hexdigest N/A opt_dash - N/A file_ext N/A N/A N/A javascript css .js .css get type N/A fname_template N/A %s%s%s{suffix}%s{gz} N/A name opt_dash sha1 file_ext N/A concat_fname N/A N/A fname_template format suffix gz N/A concat_data N/A N/A self _concat raw_data type N/A N/A N/A self write concat_fname concat_data N/A minified_fname N/A N/A fname_template format suffix .min gz N/A minified_data N/A N/A self _minify raw_data type paths paths N/A N/A N/A self write minified_fname minified_data N/A gzipped_fname N/A N/A fname_template format suffix .min gz .gz N/A gzipped_data N/A N/A self _compress minified_data N/A N/A N/A self write gzipped_fname gzipped_data N/A N/A name N/A files fingerprint output size N/A N/A N/A N/A os path relpath p N/A self basedir N/A p paths sha1 N/A raw min gz concat_fname minified_fname gzipped_fname N/A raw min gz N/A len concat_data N/A len minified_data N/A len gzipped_data N/A write N/A N/A self fname data N/A N/A N/A output N/A N/A N/A os path abspath N/A N/A N/A self config get output OUTPUT_DIR N/A N/A N/A N/A N/A os path exists output N/A N/A N/A N/A os makedirs output N/A path N/A N/A N/A os path join output fname N/A N/A open path w fout N/A N/A N/A N/A fout write data N/A write_info N/A N/A self bundles_info N/A N/A N/A N/A N/A self write ASSETS_INFO_FILE N/A N/A yaml dump N/A dict bundles_info default_flow_style False N/A get_bundles N/A N/A self N/A N/A N/A bundles N/A javascript css N/A N/A self _get_bundles_by_type javascript N/A N/A self _get_bundles_by_type css N/A bundles N/A process_bundles N/A N/A self N/A N/A N/A info N/A defaultdict dict N/A bundles N/A N/A self get_bundles N/A bundle_type bundles N/A N/A N/A name paths N/A N/A N/A bundles N/A bundle_type items N/A N/A bundle_info N/A N/A self _process_bundle name paths bundle_type N/A N/A N/A N/A info N/A bundle_type update bundle_info N/A info N/A N/A main N/A N/A N/A N/A N/A parser N/A N/A optparse OptionParser N/A N/A N/A parser add_option -c --config dest config help path to assets.yaml (default: ./assets.yaml) N/A N/A N/A parser add_option -b --basedir dest basedir help base directory to which all assets paths are relative (default: ./) N/A N/A options args N/A N/A parser parse_args N/A config_path N/A options config N/A N/A config_path None N/A N/A config_path N/A N/A N/A os path join N/A N/A os getcwd CONFIG_FILE N/A N/A N/A N/A N/A os path exists config_path N/A N/A N/A _log N/A Could not find the asset configuration file "%s" config_path N/A N/A N/A sys exit 1 N/A config N/A load_config config_path N/A manager N/A AssetManager config N/A options basedir N/A bundles_info N/A N/A manager process_bundles N/A N/A N/A manager write_info bundles_info N/A