@utils.arg('-n', '--name',
           help='Script name',
           required=True)
@utils.arg('-f', '--file',
           help='Script file',
           required=False)
def do_pyscripts_script_create(cc, args={}):
    script_args = {'name': args.name}
    if args.file:
        with open(args.file) as fp:
            script_args['data'] = fp.read()
    out = cc.pyscripts.scripts.create(**script_args)
    utils.print_dict(out.to_dict())
Create a script.
dataset/ETHPy150Open openstack/python-cloudkittyclient/cloudkittyclient/v1/rating/pyscripts/shell.py/do_pyscripts_script_create