Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

        def open_zs(opts, **kwargs):
    zs_path_or_url = opts[""]
    if zs_path_or_url.startswith("http"):
        kwargs["url"] = zs_path_or_url
    else:
        kwargs["path"] = zs_path_or_url
    if "__j__" in opts:
        kwargs["parallelism"] = opts["__j__"]
    return ZS(**kwargs)
        


src/z/s/zs-0.9.0/zs/cmdline/info.py   zs(Download)
 
import json
from .util import open_zs
 
def command_info(opts):
"""
 
    with open_zs(opts, parallelism=0) as z:
        if opts["--metadata-only"]:
            info = z.metadata

src/z/s/zs-0.9.0/zs/cmdline/validate.py   zs(Download)
 
from zs import ZSCorrupt
from .util import open_zs
 
def command_validate(opts):
"""
    #import pdb; pdb.set_trace()
    with open_zs(opts) as z:
        try:
            z.validate()

src/z/s/zs-0.9.0/zs/cmdline/dump.py   zs(Download)
import sys
 
from .util import open_zs
 
def command_dump(opts):
        out_file = out_file.buffer
 
    with open_zs(opts) as z:
        z.dump(out_file,
               start=opts["__start__"],