How matlink/gplaycli works
GPlayCli is a command-line Google Play client for searching apps, downloading APKs and associated files, listing local APKs, and checking folders for updates. The main runtime is concentrated in gplaycli/gplaycli.py; hooks.py guards API operations and util.py supplies file, version-code, and progress helpers. The README documents the user-facing modes, while excerpts show token and download behavior. Some command dispatch and listing details are unsampled, so those relationships are documented rather than inferred as source-level calls.
Main entry points: gplaycli.py Play API client · hooks.py Connection guard · util.py File helpers
Components 15
CLI entry
- CLI commands
gplaycli/gplaycli.py - Connection guard
gplaycli/hooks.py
Authentication
- Play API client
gplaycli/gplaycli.py - Token authentication
gplaycli/gplaycli.py - Credential authentication
gplaycli/gplaycli.py
Play Store operations
- App search
gplaycli/gplaycli.py - APK download
gplaycli/gplaycli.py
Local APK management
- Update check
gplaycli/gplaycli.py - APK listing
gplaycli/gplaycli.py - APK files
- File helpers
gplaycli/util.py - Download progress
gplaycli/util.py
Other components
- Operator
- Token dispenser
- Google Play
Connections 19
- Operator → CLI commands: runs commands
README.md - CLI commands → App search: supports search
README.md - CLI commands → APK download: supports download
README.md - CLI commands → Update check: supports updates
README.md - CLI commands → APK listing: supports listing
README.md - Connection guard → Play API client: checks connection
gplaycli/hooks.py - Connection guard → Token authentication: connects if needed
gplaycli/gplaycli.py - Token authentication → Token dispenser: requests token
gplaycli/gplaycli.py - Token authentication → Play API client: checks in and logs in
gplaycli/gplaycli.py - Credential authentication → Play API client: logs in
gplaycli/gplaycli.py - App search → Play API client: searches apps
gplaycli/gplaycli.py - APK download → Play API client: fetches app data
gplaycli/gplaycli.py - Update check → APK files: reads APKs
gplaycli/gplaycli.py - Update check → Play API client: checks store versions
gplaycli/gplaycli.py - APK listing → APK files: lists APKs
- APK download → APK files: writes downloads
gplaycli/gplaycli.py - APK download → Download progress: updates progress
gplaycli/gplaycli.py - Update check → File helpers: parses versions
gplaycli/gplaycli.py - APK listing → File helpers: finds APK files
gplaycli/gplaycli.py