duck.cli.commands.collectstatic

Module containing collectstatic command class.

Module Contents

Classes

CollectStaticCommand

API

class duck.cli.commands.collectstatic.CollectStaticCommand[source]
classmethod collectstatic(skip_confirmation: bool = False) None[source]
classmethod find_blueprint_static_dirs() Generator[Tuple[str, duck.routes.Blueprint], None, None][source]

Finds and returns static directories from all blueprint base directories.

Returns:

The generator of static directory and blueprint pair.

Return type:

Generator

classmethod get_blueprint_staticfiles(blueprint_static_dirs: Tuple[str, duck.routes.Blueprint])[source]

Returns the generator to the found staticfiles.

Parameters:

blueprint_static_dirs – The collection of the static directory and the respective blueprint.

classmethod main(skip_confirmation: bool = False)[source]
classmethod recursive_getfiles(directory: str) Generator[source]

Returns a generator for all files and subfiles within the directory.

classmethod setup()[source]