Did I find the right examples for you? yes no

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/w/h/whoops-0.2.1/whoops/__main__.py   whoops(Download)
#!/usr/bin/env python
 
from whoops import WebHDFS, WebHDFSError, HOST, PORT, __version__
from requests import ConnectionError
 
def chown(args):
    if not (args.user or args.group):
        raise WebHDFSError('need either user or group')
    fs.chown(args.path, args.user, args.group)
 
        out = open(args.dest, mode)
    except IOError as err:
        raise WebHDFSError('cannot open {0} - {1}'.format(args.dest, err))
 
    try:
def put(args):
    if not isfile(args.src):
        raise WebHDFSError('{0} is not a file'.format(args.src))
 
    fs.put(args.src, args.dest, args.overwrite, args.blocksize,
def append(args):
    if not isfile(args.src):
        raise WebHDFSError('{0} is not a file'.format(args.src))
 
    fs.append(args.src, args.dest, args.buffersize)