Skip to main content

A simple command line tool for managing Tencent Cloud COS (Cloud Object Storage).

Project description

COS Cli

A simple command line tool for managing Tencent Cloud COS (Cloud Object Storage).

Install

Requires Python 3.10 or newer.

pip install cosctl

For development dependencies:

pip install -e .[dev]

Environment variables

export SECRET_ID=""
export SECRET_KEY=""
export BUCKET=""
export REGION="wuxi"
export DOMAIN=""

Required:

  • SECRET_ID
  • SECRET_KEY
  • BUCKET (falls back to the first label of DOMAIN when not set, e.g. my-bucket.cos.ap-beijing.myqcloud.com yields my-bucket)

Optional:

  • REGION (defaults to wuxi)
  • DOMAIN

Usage

cosctl --help
cosctl --version
cosctl list
cosctl list logs/
cosctl upload ./local-file.txt remote-file.txt
cosctl upload ./local-file.txt remote-file.txt --tag env=prod --tag owner=team
cosctl get remote-file.txt ./downloaded.txt
cosctl delete remote-file.txt

Build

构建时会自动在基础版本后追加动态后缀:时间戳 + git 短哈希。 例如:0.1.1+20260402.123045.abc1234

make sync
make build

Test

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cosctl-0.1.4-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file cosctl-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: cosctl-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for cosctl-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d7b23043340b01bc84394840c3713c5484932089ebf0c391bdcd6c55d3b81a02
MD5 643c9a40aa5ba4629087a5e869b3dfae
BLAKE2b-256 4be605785a15731a06985788322db72a08da96e24f9090fc8d63a1dc0fe70d74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page