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

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/s/e/seq_crumbs-HEAD/crumbs/utils/bin_utils.py   seq_crumbs(Download)
from crumbs.utils.file_formats import get_format, set_format
from crumbs.settings import get_setting
from crumbs.utils.tags import (OUTFILE, GUESS_FORMAT, BGZF, GZIP, BZIP2,
                               ERROR_ENVIRON_VARIABLE)
from crumbs import __version__ as version
    bzip2 = getattr(parsed_args, 'bzip2', False)
    if bgzf:
        comp_kind = BGZF
    elif gzip:
        comp_kind = GZIP

src/s/e/seq_crumbs-HEAD/crumbs/utils/file_utils.py   seq_crumbs(Download)
 
from crumbs.utils.optional_modules import BgzfWriter
from crumbs.utils.tags import BGZF, GZIP, BZIP2
try:
    from crumbs.utils import BZ2File
def compress_fhand(fhand, compression_kind=None):
    'Compresses the file if required'
    if compression_kind == BGZF:
        if fhand_is_seekable(fhand):
            fhand = BgzfWriter(fileobj=fhand)