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 upload ./local-file.txt remote-file.txt
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.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cosctl-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3fffd21ba0639ed9938109670773cce5f6f42c105557b6a603d5b9a30d97defa
MD5 e4915841f66013725f34d09fded4b9fb
BLAKE2b-256 70213fde0b444b848f6f72c1d9468c13b63f6abf178f4eed700574aa9bec9dd1

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