All Projects → yunify → Qsctl

yunify / Qsctl

Licence: apache-2.0
Advanced command line tool for QingStor.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Qsctl

Ws50 Sync
ws50-sync is a python based program which pulls air quality data from your Withings account and stores it directly in a Domoticz DB.
Stars: ✭ 8 (-33.33%)
Mutual labels:  cli
Get File
CLI and API to get a single file from Github repository.
Stars: ✭ 9 (-25%)
Mutual labels:  cli
Tabulate
Table Maker for Modern C++
Stars: ✭ 862 (+7083.33%)
Mutual labels:  cli
Lol Replay Downloader Cli
League of Legend replay CLI downloader (and decoder) without any software. Replays are saved into the cloud.
Stars: ✭ 8 (-33.33%)
Mutual labels:  cli
Sit Up
🙇 Reminder to sit up straight.
Stars: ✭ 9 (-25%)
Mutual labels:  cli
Captain
command line python scripts for humans
Stars: ✭ 10 (-16.67%)
Mutual labels:  cli
Tb Cli
🛠️ CLI for rapid TB generate
Stars: ✭ 8 (-33.33%)
Mutual labels:  cli
Ddecmd
DDE command line query tool
Stars: ✭ 11 (-8.33%)
Mutual labels:  cli
Suoxie
🔍 Query abbreviations in your command line or Node.js Api. 「查单词缩写」
Stars: ✭ 9 (-25%)
Mutual labels:  cli
Tty Which
Cross-platform implementation of Unix `which` command
Stars: ✭ 11 (-8.33%)
Mutual labels:  cli
Auto Cpufreq
Automatic CPU speed & power optimizer for Linux
Stars: ✭ 843 (+6925%)
Mutual labels:  cli
Social ids
Get user ids from social network handlers
Stars: ✭ 9 (-25%)
Mutual labels:  cli
Arf Converter
Bulk ARF file converter
Stars: ✭ 10 (-16.67%)
Mutual labels:  cli
Gowsdl
WSDL2Go code generation as well as its SOAP proxy
Stars: ✭ 844 (+6933.33%)
Mutual labels:  cli
Fly
Deploy app servers close to your users. Package your app as a Docker image, and launch it in 17 cities with one simple CLI.
Stars: ✭ 862 (+7083.33%)
Mutual labels:  cli
Atom Check Updates
A CLI for easily updating Atom to the latest version on RPM or Debian-based systems.
Stars: ✭ 8 (-33.33%)
Mutual labels:  cli
Diskonaut
Terminal disk space navigator 🔭
Stars: ✭ 856 (+7033.33%)
Mutual labels:  cli
Creater
create file with config
Stars: ✭ 12 (+0%)
Mutual labels:  cli
Gita
Manage many git repos with sanity 从容管理多个git库
Stars: ✭ 865 (+7108.33%)
Mutual labels:  cli
Tui Consolelauncher
Linux CLI Launcher for Android
Stars: ✭ 861 (+7075%)
Mutual labels:  cli

===== qsctl

qsctl is intended to be an advanced command line tool for QingStor, it provides powerful unix-like commands to let you manage QingStor resources just like files on local machine. Unix-like commands contains: cp, ls, mb, mv, rm, rb, and sync. All of them support batch processing.


Installation

virtualenv::

$ pip install qsctl

System-Wide::

$ sudo pip install qsctl

On Windows systems, run it in a command-prompt window with administrator privileges, and leave out sudo.


Getting Started

To use qsctl, there must be a configuration file , for example::

access_key_id: 'ACCESS_KEY_ID_EXAMPLE' secret_access_key: 'SECRET_ACCESS_KEY_EXAMPLE'

The configuration file is ~/.qingstor/config.yaml by default, it also can be specified by the option -c /path/to/config.

You can also config other option like host , port and so on, just add lines below into configuration file, for example::

host: 'qingstor.com' port: 443 protocol: 'https' connection_retries: 3

Valid levels are 'debug', 'info', 'warn', 'error', and 'fatal'.

log_level: 'debug'


Available Commands

Commands supported by qsctl are listed below:

.. list-table:: :widths: 10 90 :header-rows: 0

    • ls
    • List QingStor keys under a prefix or all QingStor buckets.
    • cp
    • Copy local file(s) to QingStor or QingStor key(s) to local.
    • mb
    • Create a QingStor bucket.
    • rb
    • Delete an empty QingStor bucket or forcibly delete nonempty QingStor bucket.
    • mv
    • Move local file(s) to QingStor or QingStor key(s) to local.
    • rm
    • Delete a QingStor key or keys under a prefix.
    • sync
    • Sync between local directory and QingStor prefix.
    • presign
    • Generate a pre-signed URL for an object.

Examples

List keys in bucket by running::

$ qsctl ls qs://mybucket Directory test/ 2016-04-03 11:16:04 4 Bytes test1.txt 2016-04-03 11:16:04 4 Bytes test2.txt

Sync from QingStor prefix to local directory::

$ qsctl sync qs://mybucket3/test/ test/ File 'test/README.md' written File 'test/commands.py' written

See the detailed usage and more examples with 'qsctl help' or 'qsctl help'.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].