parade.utils package¶
Submodules¶
parade.utils.log module¶
parade.utils.misc module¶
Helper functions which don’t fit anywhere else
-
parade.utils.misc.copytree(src, dst, ignore=None)¶ Since the original function always creates the directory, to resolve the issue a new function had to be created. It’s a simple copy and was reduced for this case.
More info at: https://github.com/scrapy/scrapy/pull/2005
parade.utils.modutils module¶
parade.utils.template module¶
Helper functions for working with templates
-
parade.utils.template.render_templatefile(path, **kwargs)¶
-
parade.utils.template.string_camelcase(string)¶ Convert a word to its CamelCase version and remove invalid chars
>>> string_camelcase('lost-pound') 'LostPound'
>>> string_camelcase('missing_images') 'MissingImages'
parade.utils.timeutils module¶
-
parade.utils.timeutils.datetime_str_to_timestamp(datetime_str, tz=None)¶
-
parade.utils.timeutils.datetime_to_timestamp(dt, tz=None)¶
-
parade.utils.timeutils.gen_time_df(periods, unit='D', start=None, complete=False)¶
-
parade.utils.timeutils.timestamp_to_datetime(ts, tz=None)¶
parade.utils.workspace module¶
-
parade.utils.workspace.inside_workspace()¶
-
parade.utils.workspace.load_bootstrap(addpath=True)¶ Initialize environment to use command-line tool from inside a project dir. This sets the Scrapy settings module and modifies the Python path to be able to locate the project module.
-
parade.utils.workspace.locate_bootstrap()¶ Return the path to the closest parade bootstrap file in current directory