Skip to main content

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.10+
  • pip
  • uv (optional)

Installation Methods

uv (Recommended)

# install uv first
curl -LsSf https://astral.sh/uv/install.sh | sh

# or use pip to install uv
pip3 install uv --index-url https://mirrors.tencentyun.com/pypi/simple/

# Optional, for those who cannot access github.com
export UV_PYTHON_INSTALL_MIRROR="https://gh-proxy.com/github.com/indygreg/python-build-standalone/releases/download"

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

pip

pip3 install cloud-aitools --index-url https://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.

Metadata

Release files for cloud-aitools 1.2.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cloud-aitools 1.2.16
File Size Uploaded
cloud_aitools-1.2.16.tar.gz 18.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cloud-aitools 1.2.16
File Interpreter ABI Platform
cloud_aitools-1.2.16-py3-none-any.whl Python 3 none any Details

Total release size: 38.1 kB

Release files / cloud_aitools-1.2.16.tar.gz

Download URL cloud_aitools-1.2.16.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9b2df722fc36489c06268828ec4cd488db82bf05d772fa541e71748c05639736
BLAKE2b-256 checksum
How to use checksums
87daf7d5250fb1dcf650c905e036eb38cd7bb5d84408254d316cb89c23c87a9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / cloud_aitools-1.2.16-py3-none-any.whl

Download URL cloud_aitools-1.2.16-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76170435df3a4f0c342b51eebea4098d0e2cee18eb5d50761fc87768b6bb78c1
BLAKE2b-256 checksum
How to use checksums
e66271b32de21cbeb33faf5a091ffd0947f007361a5e03ef6fd2401e8d3af4d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

1.2.16 This release

2 release files

1.2.9

2 release files

1.2.8

2 release files

1.2.3

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page