scrapy.utils.versions.scrapy_components_versions

Here are the examples of the python api scrapy.utils.versions.scrapy_components_versions taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

3 Source : version.py
with MIT License
from autofelix

    def run(self, args, opts):
        if opts.verbose:
            versions = scrapy_components_versions()
            width = max(len(n) for (n, _) in versions)
            patt = "%-{}s : %s".format(width)
            for name, version in versions:
                print(patt % (name, version))
        else:
            print("Scrapy %s" % scrapy.__version__)

3 Source : log.py
with MIT License
from autofelix

def log_scrapy_info(settings):
    logger.info("Scrapy %(version)s started (bot: %(bot)s)",
                {'version': scrapy.__version__, 'bot': settings['BOT_NAME']})
    logger.info("Versions: %(versions)s",
                {'versions': ", ".join("%s %s" % (name, version)
                    for name, version in scrapy_components_versions()
                    if name != "Scrapy")})


class StreamLogger(object):