Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(9)  |  Derive(0)  |  Import(1)

src/a/r/Archiver-0.2.2/archiver/command.py   Archiver(Download)
from commandtool import Cmd, LoggingCmd, handle_command
from configconvert.internal import eval_import
from archiver.api import make_batch, merge, sizeof_fmt, migrate, extract, numof_fmt, compare
 
log = logging.getLogger(__name__)
                errors = cmd.batch.metadata.connection.execute("SELECT count(*) from file where source__uid=? and hash=''", source__uid).first()[0]
                files = cmd.batch.metadata.connection.execute("SELECT count(*) from file where source__uid=?", source__uid).first()[0]
                size = sizeof_fmt(cmd.batch.metadata.connection.execute('SELECT sum(size) from file where source__uid=?', source__uid).first()[0])
                cmd.out(
                    "%s: %s %s file(s) %s error(s)",
        cmd.out(
            "originally %s",
            sizeof_fmt(cmd.batch.metadata.connection.execute('SELECT sum(size) from file').first()[0]),
            end='',
        )
        cmd.out(
            "and now using %s for the data and %s for metadata.",
            sizeof_fmt(data),
            sizeof_fmt(metadata),
            end='',