TUI for browsing and syncing files across S3, GCS, and Google Drive
Project description
CloudScope
A terminal UI for browsing, downloading, uploading, and bi-directionally syncing files across AWS S3, Google Cloud Storage, and Google Drive.
Built with Textual for a keyboard-driven, Linear.app-inspired dark interface.
Features
- Multi-backend browsing — Switch between S3, GCS, and Google Drive with a single keypress (
1,2,3) - Lazy-loading tree sidebar — Expand buckets/drives on demand without loading everything upfront
- Sortable file table — Click column headers to sort by name, size, modified date, or type
- File preview — Metadata panel appears when a file is highlighted (size, modified date, ETag, content type)
- Downloads and uploads — File picker dialogs for selecting local paths
- Folder creation — Create new folders/prefixes directly from the TUI
- Bi-directional sync — Three-way diff engine with conflict resolution (newer wins, local wins, remote wins, keep both, or ask)
- Command palette — Press
Ctrl+Kto search and run any command - Settings screen — Configure default backend, AWS profile/region, GCP project, Drive OAuth credentials
- Auth setup — Guided authentication testing for each backend
Requirements
- Python 3.11+
- AWS credentials (for S3) — environment variables,
~/.aws/credentials, or IAM role - GCP credentials (for GCS) — Application Default Credentials (
gcloud auth application-default login) - OAuth2 client secrets (for Google Drive) —
client_secrets.jsonplaced in config directory
Installation
From source
git clone https://github.com/your-username/cloudscope.git
cd cloudscope
pip install -e .
With dev dependencies
pip install -e ".[dev]"
Run
cloudscope
Or via module:
python -m cloudscope
Authentication Setup
AWS S3
CloudScope uses standard boto3 credential resolution. Any of the following will work:
- Environment variables (
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY) - Shared credentials file (
~/.aws/credentials) - AWS config file (
~/.aws/config) with named profiles - IAM instance role (on EC2)
Configure a specific profile in Settings (,) or pass it through the config file at ~/.config/cloudscope/config.toml.
Google Cloud Storage
Uses Application Default Credentials:
gcloud auth application-default login
Or point to a service account key in Settings.
Google Drive
Requires OAuth2 consent flow:
- Create OAuth credentials in the Google Cloud Console
- Download the client secrets JSON
- Place it at
~/.config/cloudscope/drive_client_secrets.json(or configure the path in Settings) - Press
ain CloudScope to run the auth flow — a browser window will open for consent
The token is persisted at ~/.config/cloudscope/drive_token.json and refreshed automatically.
Keyboard Shortcuts
Browsing
| Key | Action |
|---|---|
1 |
Switch to S3 |
2 |
Switch to GCS |
3 |
Switch to Google Drive |
d |
Download selected file |
u |
Upload a file |
n |
Create new folder |
Delete |
Delete selected file |
r |
Refresh current view |
Tab |
Focus next panel |
Shift+Tab |
Focus previous panel |
Ctrl+K |
Open command palette |
s |
Open sync configuration |
, |
Open settings |
a |
Open auth setup |
? |
Show help |
q |
Quit |
In file table
| Key | Action |
|---|---|
Up/Down |
Navigate files |
Enter |
Open folder or select file |
| Click column header | Sort by that column |
Configuration
Settings are stored at ~/.config/cloudscope/config.toml:
default_backend = "s3"
max_concurrent_transfers = 3
[backends.s3]
profile = "default"
region = "us-east-1"
[backends.gcs]
project = "my-project-id"
[backends.drive]
client_secrets_path = "/path/to/client_secrets.json"
All settings can also be edited from the TUI via the Settings screen (,).
Project Structure
src/cloudscope/
├── app.py # Main Textual application
├── config.py # TOML config management
├── __main__.py # CLI entry point
├── auth/
│ ├── aws.py # AWS profile listing and client creation
│ ├── gcp.py # GCS client creation (ADC or service account)
│ └── drive_oauth.py # Google Drive OAuth2 flow
├── backends/
│ ├── base.py # CloudBackend Protocol and error hierarchy
│ ├── registry.py # Backend factory (register/get/list)
│ ├── s3.py # AWS S3 backend (boto3)
│ ├── gcs.py # Google Cloud Storage backend
│ └── drive.py # Google Drive backend (path-to-ID cache, export)
├── models/
│ ├── cloud_file.py # CloudFile, CloudFileType, CloudLocation
│ ├── transfer.py # TransferJob, TransferDirection, TransferStatus
│ └── sync_state.py # SyncRecord, SyncConflict, SyncPlan, etc.
├── sync/
│ ├── state.py # SQLite-backed sync state persistence
│ ├── differ.py # Three-way diff algorithm
│ ├── resolver.py # Conflict resolution strategies
│ ├── plan.py # Converts SyncDiff to executable SyncPlan
│ └── engine.py # Sync orchestrator (diff → plan → execute)
├── transfer/
│ ├── manager.py # Concurrent transfer queue (asyncio.Semaphore)
│ └── progress.py # Progress adapter for SDK callbacks
└── tui/
├── commands.py # Command palette provider (Ctrl+K)
├── screens/
│ ├── browse.py # Main browsing screen
│ ├── settings.py # Settings form
│ ├── sync_config.py # Sync configuration and execution
│ └── auth_setup.py # Guided auth testing
├── modals/
│ ├── confirm_dialog.py
│ ├── download_dialog.py
│ ├── upload_dialog.py
│ ├── new_folder.py
│ └── sync_dialog.py # Sync conflict resolution
├── widgets/
│ ├── status_bar.py # AppHeader (slim 1-line header)
│ ├── app_footer.py # Context-sensitive keybind hints
│ ├── cloud_tree.py # Lazy-loading tree sidebar
│ ├── file_table.py # Sortable file listing (DataTable)
│ ├── breadcrumb.py # Path breadcrumb with › separators
│ ├── preview_panel.py # File metadata display
│ └── transfer_panel.py# Transfer progress bar
└── styles/
└── cloudscope.tcss # Linear-inspired dark theme
Development
# Install with dev dependencies
pip install -e ".[dev]"
# Lint
ruff check src/
# Type check
mypy src/cloudscope/
# Test
pytest
# Run with Textual dev tools (live CSS reloading, etc.)
textual run --dev cloudscope.app:CloudScopeApp
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudscope-0.3.0.tar.gz.
File metadata
- Download URL: cloudscope-0.3.0.tar.gz
- Upload date:
- Size: 42.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee8f28de6e8ce0919b224fdcb8a7e9398b7c3a4393ae4076710d63433d8eef40
|
|
| MD5 |
55c7068a802cbef8cd6ae385b24c7516
|
|
| BLAKE2b-256 |
a7f3261c471efd386f86e4838b4822f73ed06961e459d8da988d0423fd06fa70
|
Provenance
The following attestation bundles were made for cloudscope-0.3.0.tar.gz:
Publisher:
python-publish.yml on nityanandmathur/cloudscope
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudscope-0.3.0.tar.gz -
Subject digest:
ee8f28de6e8ce0919b224fdcb8a7e9398b7c3a4393ae4076710d63433d8eef40 - Sigstore transparency entry: 975152107
- Sigstore integration time:
-
Permalink:
nityanandmathur/cloudscope@ba70c50e95265ea20744e0bb311356121e65c4db -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/nityanandmathur
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@ba70c50e95265ea20744e0bb311356121e65c4db -
Trigger Event:
release
-
Statement type:
File details
Details for the file cloudscope-0.3.0-py3-none-any.whl.
File metadata
- Download URL: cloudscope-0.3.0-py3-none-any.whl
- Upload date:
- Size: 57.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a059071b3b5295fb038603863762b32e54c61db28c7c123a71af2270362c01f
|
|
| MD5 |
fa19844024ece0d7cd49da35dc84f1df
|
|
| BLAKE2b-256 |
4227f8fb99ac28e2b64352451374e2e98492ec80c64da5e4d90024a282b9395f
|
Provenance
The following attestation bundles were made for cloudscope-0.3.0-py3-none-any.whl:
Publisher:
python-publish.yml on nityanandmathur/cloudscope
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudscope-0.3.0-py3-none-any.whl -
Subject digest:
6a059071b3b5295fb038603863762b32e54c61db28c7c123a71af2270362c01f - Sigstore transparency entry: 975152123
- Sigstore integration time:
-
Permalink:
nityanandmathur/cloudscope@ba70c50e95265ea20744e0bb311356121e65c4db -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/nityanandmathur
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@ba70c50e95265ea20744e0bb311356121e65c4db -
Trigger Event:
release
-
Statement type: