Community编程与开发github.com

The-Ladder-of-Rrogress/nutstore-sync-skill

坚果云 WebDAV 同步工具 - 免桌面端,纯标准库实现 支持上传、下载、目录列表、删除等操作,零依赖,跨平台

nutstore-sync-skill 是什么?

nutstore-sync-skill is a Claude Code agent skill that 坚果云 WebDAV 同步工具 - 免桌面端,纯标准库实现 支持上传、下载、目录列表、删除等操作,零依赖,跨平台.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add The-Ladder-of-Rrogress/nutstore-sync-skill

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

nutstore-sync-skill 是做什么的?

Nutstore WebDAV sync tool - no desktop client required, pure standard library implementation. Supports upload, download, directory listing, delete, and more. Zero dependencies, cross-platform.

Features

  • Pure standard library - No external packages, uses only Python built-in modules (urllib, base64, pathlib, etc.)
  • No desktop client - Interact directly with Nutstore's WebDAV API
  • Comprehensive operations - Upload, download, list directories, create directories, delete files/directories, get storage info
  • Cross-platform - Works on Windows, macOS, Linux
  • Simple API - Intuitive function calls for all WebDAV operations

Prerequisites

  • Python 3.6+
  • Nutstore account with WebDAV enabled

Configuration

Set the following environment variables or pass them as parameters:

export NUTSTORE_USER="your-nutstore-email"
export NUTSTORE_PASS="your-nutstore-password-or-app-password"

Usage

Import the skill and call the functions:

from nutstore_sync import NutstoreClient

# Initialize client
client = NutstoreClient()

# Upload a file
client.upload_file("/remote/path/file.txt", "/local/path/file.txt")

# Download a file
client.download_file("/remote/path/file.txt", "/local/path/downloaded.txt")

# List directory contents
items = client.list_directory("/remote/path")
for item in items:
    print(item["name"])

# Delete a file
client.delete("/remote/path/file.txt")

# Get storage info
info = client.get_storage_info()
print(f"Used: {info['used']}, Total: {info['total']}")

API Reference

FunctionDescription
upload_file(remote_path, local_path)Upload a local file to Nutstore
download_file(remote_path, local_path)Download a file from Nutstore
list_directory(remote_path)List files and directories
create_directory(remote_path)Create a remote directory
delete(remote_path)Delete a file or directory
get_storage_info()Get storage usage information

Notes

  • App passwords are recommended for security (enable in Nutstore account settings)
  • File paths use forward slashes (/) for remote paths
  • Directory listing returns entries with name, type (file or directory), and size

相关技能