The Dropbox SDK for Python is an official library providing programmatic access to the Dropbox API v2. It enables developers to perform file operations, manage sharing, handle team administration, and interact with Paper documents through a Python interface. The SDK employs a code generation approach using Stone IDL to maintain API specification consistency, with hand-written components handling cross-cutting concerns like authentication, session management, and request resilience. Architecturally, the library is structured as a importable package with clear separation between transport logic (session management), core request handling (including OAuth 2.0 token refresh and exponential backoff retry), and API-specific modules generated from specifications. Key features include automatic token refresh, connection pooling via shared sessions, Dropbox-specific content hash calculation for upload integrity, and comprehensive error handling. The SDK supports both user and team authentication scopes with proper scoping enforcement. The project demonstrates strong maintenance practices with automated CI/CD pipelines for testing, linting, and publishing to PyPI. A dedicated workflow keeps the SDK synchronized with Dropbox's API specifications through scheduled updates. While the majority of API interface code is generated, the manually maintained components exhibit robust engineering patterns suitable for reuse in other HTTP client implementations. The SDK targets developers building applications that integrate with Dropbox services, focusing on reliability, security, and ease of use.
aliyundrive-webdav is a WebDAV server application that bridges WebDAV clients (like Infuse, nPlayer) with AliyunDrive (Alibaba Cloud Drive) storage. The system is built in Rust and uses the dav-server crate as its WebDAV foundation. Key functionality includes: authenticating with AliyunDrive via refresh tokens (obtained through command line, environment variables, or QR code login), translating WebDAV operations (PROPFIND, GET, PUT, etc.) to AliyunDrive API calls, implementing caching for directory listings to reduce API calls, handling file uploads via chunked resumable uploads, and providing automatic token refresh in the background. The architecture consists of modular components: cache (directory entry caching), drive (AliyunDrive API communication), login (QR code authentication flow), vfs (virtual file system layer), and webdav (server implementation and auth). External dependencies include the AliyunDrive API, reqwest, tokio, tracing, clap, moka, dashmap, serde, and optional TLS dependencies. The application is actively maintained with frequent commits, CI/CD pipelines for multi-platform builds, and support for Docker, Snap, OpenWrt, and systemd deployments.