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

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.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cosctl-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d9d0ad4c9fa13ef9f88a18bed43727ba549420a9543f3118336ec1fa28bbd14e
MD5 7106ad84d067b57048bb3e7b949952bf
BLAKE2b-256 e75a62722007a5b355e47045aa849c5df9ba76d205fb9bf46844763ff8329b94

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