Skip to main content

cloud-aitools is a CLI tool for managing AI models on Tencent Cloud, providing high-performance upload, download and model management capabilities.

Project description

cloud-aitools - AI Model Management Tool

cloud-aitools is a CLI tool for managing AI models on Tencent Cloud, providing high-performance upload, download and model management capabilities.

Key Features

  • 🚀 High Performance Transfer: Supports coroutine/multi-process concurrent operations for accelerated large model transfers (Internal network download speeds up to 90Gb/s, tested DeepSeek-R1 671B model (641GB) downloaded to local memory in just 1 minute 20 seconds)
  • 🔍 Model Management: Supports model listing, uploading, downloading and other operations
  • 🌐 Smart Region Detection: Automatically detects COS internal network region based on current network environment
  • 🔒 Data Verification: Uses Blake3 algorithm to ensure file integrity
  • 📊 Progress Display: Real-time transfer progress and speed monitoring
  • 🔧 Flexible Configuration: Supports private deployment, custom bucket naming, region selection, etc.

Installation Guide

Prerequisites

  • Python 3.12+
  • pip
  • uv (optional)

Installation Methods

uv (Recommended)

uv tool install cloud-aitools@latest --index-url http://mirrors.tencentyun.com/pypi/simple/

pip

pip3 install cloud-aitools --index-url http://mirrors.tencentyun.com/pypi/simple/ --trusted-host mirrors.tencentyun.com

Usage

Basic Command

aitools [OPTIONS] COMMAND [ARGS]...

Upload Model

aitools model upload \
  --secret-id YOUR_SECRET_ID \
  --secret-key YOUR_SECRET_KEY \
  --local-path /path/to/model \
  --model-name model_name \
  --bucket-pattern bucket-appid \
  --region ap-shanghai

Download Model

aitools model download model_name \
  --output /path/to/save \
  --region ap-shanghai

List Models

aitools model list

Detect Current Region

aitools get-region

Configuration Options

Common Parameters

  • --verbose/-v: Enable verbose logging
  • --region: Specify COS region
  • --bucket-pattern: Bucket naming pattern (bucket-appid)
  • --process-num/-p: Number of download processes (default 64)

Development Guide

Project Structure

cloud_aitools/
├── handler/          # Handlers
│   └── cos_handler.py # COS operations implementation
├── model/            # Data models and business logic
├── utils/            # Utility classes
│   ├── async_downloader.py # Async downloader
│   ├── dns.py        # DNS and region detection
│   └── progress.py   # Progress display
└── main.py           # Main entry

Dependency Management

Project uses uv for dependency management, main dependencies include:

  • qcloud_cos: Tencent Cloud COS SDK
  • minio: MinIO client
  • aiohttp: Async HTTP client
  • blake3: Fast hashing algorithm

License

MIT License

Copyright (c) 2025 cloud-aitools

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

cloud_aitools-1.2.8.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

cloud_aitools-1.2.8-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file cloud_aitools-1.2.8.tar.gz.

File metadata

  • Download URL: cloud_aitools-1.2.8.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for cloud_aitools-1.2.8.tar.gz
Algorithm Hash digest
SHA256 d31dbb17097181de9d81e2854c12c6ac6e152bf9c08f56aa386b58b45f8ba16b
MD5 41353bab2b3864c7b111c16b5ae9b21a
BLAKE2b-256 d9ff6e09be7c73df86c4e546935a94a23ab85bceea9b9f3b543a1ceae817852c

See more details on using hashes here.

File details

Details for the file cloud_aitools-1.2.8-py3-none-any.whl.

File metadata

  • Download URL: cloud_aitools-1.2.8-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for cloud_aitools-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2d07c309d6c37f3ecb5d8e8c66737efd63f54a7040226a1369dcd39310695ff4
MD5 2f50c98b1f992d4f56ab94934ea2b55a
BLAKE2b-256 2f25757b02f72311016cd75dc1a90a2d5035f348819102cace8f66be8139892f

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