{ "info": { "author": "ksellesk", "author_email": "296376717@qq.com", "bugtrack_url": null, "classifiers": [], "description": "### Qingstor command line tool\r\n-------------------\r\n\r\n Qsctl(Qingstor command line tool) provides more powerful unix-like commands. You\r\n can manage Qingstor resources just like files on local machine. Unix-like commands\r\n contains: cp, ls, mb, mv, rm, rb and sync. All of the them support batch processing.\r\n\r\n- Installation\r\n\r\n Install via pip\r\n\r\n ```\r\n $ pip install qsctl\r\n ```\r\n\r\n If not installed in virtualenv, maybe sudo is needed\r\n\r\n ```\r\n $ sudo pip install qsctl\r\n ```\r\n\r\n- Getting Started\r\n\r\n To use qsctl, there must be a configuration file to configure your own\r\n ``qy_access_key_id`` , ``qy_secret_access_key`` and ``zone`` , such as::\r\n\r\n ```\r\n qy_access_key_id: 'QINGCLOUDACCESSKEYID'\r\n qy_secret_access_key: 'QINGCLOUDSECRETACCESSKEYEXAMPLE'\r\n zone: 'pek3a'\r\n ```\r\n\r\n The configuration file is saved in ``~/.qingcloud/config.yaml`` by default, it also\r\n can be assigned by the parameter ``-f /path/to/config`` when executing the\r\n command.\r\n\r\n- Usages\r\n\r\n ```\r\n cp - Copy local file(s) to qs object or qs object(s) to local.\r\n local-path qs-uri or qs-uri local-path\r\n -r, --recursive\r\n --include \r\n --exclude \r\n\r\n ls - List qs objects under a prefix or list all qs buckets.\r\n qs-uri or NONE\r\n -r, --recursive\r\n --page-size \r\n --zone \r\n\r\n mb - Create an qs bucket.\r\n qs-uri\r\n --zone \r\n\r\n mv - Move local file(s) to qs or qs object(s) to local.\r\n local-path qs-uri or qs-uri local-path\r\n -r, --recursive\r\n --include \r\n --exclude \r\n\r\n rb - Delete an empty qs bucket or forcely delete nonempty qs bucket\r\n qs-uri\r\n --force\r\n\r\n rm - Delete a qs object or more.\r\n qs-uri\r\n -r, --recursive\r\n --include \r\n --exclude \r\n\r\n sync - sync directories and qs prefixes.\r\n local-path qs-uri or qs-uri local-path\r\n --delete\r\n --include \r\n --exclude \r\n ```\r\n\r\n- Examples\r\n\r\n - ls command\r\n\r\n ```\r\n $ qsctl ls\r\n mybucket1\r\n mybucket2\r\n\r\n $ qsctl ls qs://mybucket1\r\n Folder test/\r\n 2016-04-03 11:16:04 4 Bytes test.txt\r\n 2016-04-03 11:16:04 4 Bytes temp.txt\r\n 2016-04-03 11:16:04 4 Bytes temp1.txt\r\n\r\n $ qsctl ls qs://mybucket1 -r\r\n 2016-04-03 17:51:18 1.4 KiB test/test/standard\r\n 2016-04-03 11:16:04 4 Bytes test.txt\r\n 2016-04-03 11:16:04 4 Bytes temp.txt\r\n 2016-04-03 11:16:04 4 Bytes temp1.txt\r\n ```\r\n\r\n - cp command\r\n\r\n ```\r\n $ qsctl cp qs://mybucket1/test.txt test.txt\r\n File 'test.txt' written\r\n\r\n $ qsctl cp qs://mybucket1 test/ -r\r\n File 'test/test.txt' written\r\n File 'test/temp.txt' written\r\n File 'test/temp1.txt' written\r\n File 'test/test/test/standard' written\r\n\r\n $ qsctl cp qs://mybucket1 test/ -r --exclude \"*.txt\"\r\n File 'test/test/test/standard' written\r\n\r\n $ qsctl cp qs://mybucket1 test/ -r --exclude \"*\" --include \"*.txt\"\r\n File 'test/t.txt' written\r\n File 'test/temp.txt' written\r\n File 'test/temp1.txt' written\r\n ```\r\n\r\n - mv command\r\n\r\n ```\r\n $ qsctl mv qs://mybucket1/test.txt test.txt\r\n File 'test.txt' written\r\n Object deleted\r\n\r\n $ qsctl mv qs://mybucket1 test/ -r\r\n File 'test/test.txt' written\r\n File 'test/temp.txt' written\r\n File 'test/temp1.txt' written\r\n File 'test/test/test/standard' written\r\n Object deleted\r\n Object deleted\r\n Object deleted\r\n Object deleted\r\n\r\n $ qsctl mv qs://mybucket1 test/ -r --exclude \"*.txt\"\r\n File 'test/test/test/standard' written\r\n Object deleted\r\n\r\n $ qsctl mv qs://mybucket1 test/ -r --exclude \"*\" --include \"*.txt\"\r\n File 'test/t.txt' written\r\n File 'test/temp.txt' written\r\n File 'test/temp1.txt' written\r\n Object deleted\r\n Object deleted\r\n Object deleted\r\n ```\r\n\r\n - mb command\r\n\r\n ```\r\n $ qsctl mb qs://mybucket2\r\n Bucket created\r\n ```\r\n\r\n - rb command\r\n\r\n ```\r\n $ qsctl rb qs://mybucket2\r\n Bucket deleted\r\n\r\n $ qsctl rb qs://mybucket1 test/ --force\r\n Object deleted\r\n Object deleted\r\n Object deleted\r\n Object deleted\r\n Bucket deleted\r\n ```\r\n\r\n - rm command\r\n\r\n ```\r\n $ qsctl rm qs://mybucket1/test.txt\r\n Object deleted\r\n\r\n $ qsctl rm qs://mybucket1 -r\r\n Object deleted\r\n object deleted\r\n Object deleted\r\n Object deleted\r\n ```\r\n\r\n - sync command\r\n\r\n ```\r\n $ qsctl sync qs://mybucket3/test test/\r\n File 'test/README.md' written\r\n File 'test/commands.py' written\r\n File 'test/commands.pyc' written\r\n File 'test/issues.txt' written\r\n File 'test/test.txt' written\r\n\r\n $ qsctl sync qs://mybucket3/test test/ --delete\r\n File 'test/README.md' written\r\n File 'test/commands.py' written\r\n File 'test/commands.pyc' written\r\n File 'test/issues.txt' written\r\n File 'test/test.txt' written\r\n File 'test/others1.txt' deleted\r\n File 'test/others2.txt' deleted\r\n File 'test/others3.txt' deleted\r\n File 'test/others4.txt' deleted\r\n ```", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://egghurts.com", "keywords": "testqsctl", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "testqsctl1", "package_url": "https://pypi.org/project/testqsctl1/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/testqsctl1/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://egghurts.com" }, "release_url": "https://pypi.org/project/testqsctl1/0.5/", "requires_dist": null, "requires_python": null, "summary": "Command Line Tool for Qingstor.", "version": "0.5" }, "last_serial": 2080563, "releases": { "0.5": [] }, "urls": [] }