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 Distribution

cosctl-0.1.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

cosctl-0.1.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file cosctl-0.1.1.tar.gz.

File metadata

  • Download URL: cosctl-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for cosctl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 356305f298080e2b6530d6c63ebf0bd8aee3564ef18cc9cb6a1fa16142551a64
MD5 6aa46e38fcbbc34aba1b8ec7c8cbfba6
BLAKE2b-256 a8a4ffb481b097bb8cfd7d0f77193f425d496810f334b01fd8f4b0da97336c33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cosctl-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f04b809bdec78ef0571d2dcd2e8d80b8cefbbe0db9ebb85806397144899c015e
MD5 2062f9d7167366bf217703ab2c4c2c05
BLAKE2b-256 58ec68dd0c0037636af976ddcb8bfb62f6bd8ccb7132b737f7eb8453edafa638

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