cloudscope 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. cloudscope-0.1.0/.github/workflows/python-publish.yml +70 -0
  2. cloudscope-0.1.0/.gitignore +48 -0
  3. cloudscope-0.1.0/PKG-INFO +22 -0
  4. cloudscope-0.1.0/package-lock.json +968 -0
  5. cloudscope-0.1.0/package.json +5 -0
  6. cloudscope-0.1.0/pyproject.toml +45 -0
  7. cloudscope-0.1.0/src/cloudscope/__init__.py +3 -0
  8. cloudscope-0.1.0/src/cloudscope/__main__.py +12 -0
  9. cloudscope-0.1.0/src/cloudscope/app.py +100 -0
  10. cloudscope-0.1.0/src/cloudscope/auth/__init__.py +0 -0
  11. cloudscope-0.1.0/src/cloudscope/auth/aws.py +42 -0
  12. cloudscope-0.1.0/src/cloudscope/auth/drive_oauth.py +77 -0
  13. cloudscope-0.1.0/src/cloudscope/auth/gcp.py +42 -0
  14. cloudscope-0.1.0/src/cloudscope/backends/__init__.py +0 -0
  15. cloudscope-0.1.0/src/cloudscope/backends/base.py +98 -0
  16. cloudscope-0.1.0/src/cloudscope/backends/drive.py +568 -0
  17. cloudscope-0.1.0/src/cloudscope/backends/gcs.py +270 -0
  18. cloudscope-0.1.0/src/cloudscope/backends/registry.py +23 -0
  19. cloudscope-0.1.0/src/cloudscope/backends/s3.py +281 -0
  20. cloudscope-0.1.0/src/cloudscope/config.py +70 -0
  21. cloudscope-0.1.0/src/cloudscope/models/__init__.py +0 -0
  22. cloudscope-0.1.0/src/cloudscope/models/cloud_file.py +48 -0
  23. cloudscope-0.1.0/src/cloudscope/models/sync_state.py +87 -0
  24. cloudscope-0.1.0/src/cloudscope/models/transfer.py +46 -0
  25. cloudscope-0.1.0/src/cloudscope/sync/__init__.py +0 -0
  26. cloudscope-0.1.0/src/cloudscope/sync/differ.py +165 -0
  27. cloudscope-0.1.0/src/cloudscope/sync/engine.py +214 -0
  28. cloudscope-0.1.0/src/cloudscope/sync/plan.py +46 -0
  29. cloudscope-0.1.0/src/cloudscope/sync/resolver.py +64 -0
  30. cloudscope-0.1.0/src/cloudscope/sync/state.py +140 -0
  31. cloudscope-0.1.0/src/cloudscope/transfer/__init__.py +0 -0
  32. cloudscope-0.1.0/src/cloudscope/transfer/manager.py +150 -0
  33. cloudscope-0.1.0/src/cloudscope/transfer/progress.py +20 -0
  34. cloudscope-0.1.0/src/cloudscope/tui/__init__.py +0 -0
  35. cloudscope-0.1.0/src/cloudscope/tui/commands.py +47 -0
  36. cloudscope-0.1.0/src/cloudscope/tui/modals/__init__.py +0 -0
  37. cloudscope-0.1.0/src/cloudscope/tui/modals/confirm_dialog.py +93 -0
  38. cloudscope-0.1.0/src/cloudscope/tui/modals/download_dialog.py +111 -0
  39. cloudscope-0.1.0/src/cloudscope/tui/modals/new_folder.py +96 -0
  40. cloudscope-0.1.0/src/cloudscope/tui/modals/sync_dialog.py +142 -0
  41. cloudscope-0.1.0/src/cloudscope/tui/modals/upload_dialog.py +109 -0
  42. cloudscope-0.1.0/src/cloudscope/tui/screens/__init__.py +0 -0
  43. cloudscope-0.1.0/src/cloudscope/tui/screens/auth_setup.py +154 -0
  44. cloudscope-0.1.0/src/cloudscope/tui/screens/browse.py +282 -0
  45. cloudscope-0.1.0/src/cloudscope/tui/screens/settings.py +222 -0
  46. cloudscope-0.1.0/src/cloudscope/tui/screens/sync_config.py +245 -0
  47. cloudscope-0.1.0/src/cloudscope/tui/styles/cloudscope.tcss +336 -0
  48. cloudscope-0.1.0/src/cloudscope/tui/widgets/__init__.py +0 -0
  49. cloudscope-0.1.0/src/cloudscope/tui/widgets/app_footer.py +46 -0
  50. cloudscope-0.1.0/src/cloudscope/tui/widgets/breadcrumb.py +39 -0
  51. cloudscope-0.1.0/src/cloudscope/tui/widgets/cloud_tree.py +146 -0
  52. cloudscope-0.1.0/src/cloudscope/tui/widgets/file_table.py +113 -0
  53. cloudscope-0.1.0/src/cloudscope/tui/widgets/preview_panel.py +59 -0
  54. cloudscope-0.1.0/src/cloudscope/tui/widgets/status_bar.py +27 -0
  55. cloudscope-0.1.0/src/cloudscope/tui/widgets/transfer_panel.py +54 -0
@@ -0,0 +1,70 @@
1
+ # This workflow will upload a Python Package to PyPI when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ release-build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.x"
28
+
29
+ - name: Build release distributions
30
+ run: |
31
+ # NOTE: put your own distribution build steps here.
32
+ python -m pip install build
33
+ python -m build
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: release-dists
39
+ path: dist/
40
+
41
+ pypi-publish:
42
+ runs-on: ubuntu-latest
43
+ needs:
44
+ - release-build
45
+ permissions:
46
+ # IMPORTANT: this permission is mandatory for trusted publishing
47
+ id-token: write
48
+
49
+ # Dedicated environments with protections for publishing are strongly recommended.
50
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
+ environment:
52
+ name: pypi
53
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+ url: https://pypi.org/p/cloudscope
55
+ #
56
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
+ # ALTERNATIVE: exactly, uncomment the following line instead:
58
+ # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59
+
60
+ steps:
61
+ - name: Retrieve release distributions
62
+ uses: actions/download-artifact@v4
63
+ with:
64
+ name: release-dists
65
+ path: dist/
66
+
67
+ - name: Publish release distributions to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
69
+ with:
70
+ packages-dir: dist/
@@ -0,0 +1,48 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ *.egg
7
+ *.egg-info/
8
+ dist/
9
+ build/
10
+ .eggs/
11
+ *.whl
12
+
13
+ # Virtual environments
14
+ .venv/
15
+ venv/
16
+ env/
17
+
18
+ # Node
19
+ node_modules/
20
+
21
+ # IDE
22
+ .vscode/
23
+ .idea/
24
+ *.swp
25
+ *.swo
26
+ *~
27
+
28
+ # OS
29
+ .DS_Store
30
+ Thumbs.db
31
+
32
+ # Environment / secrets
33
+ .env
34
+ .env.*
35
+ *.pem
36
+ credentials.json
37
+ drive_token.json
38
+ client_secrets.json
39
+
40
+ # Testing / coverage
41
+ .pytest_cache/
42
+ .coverage
43
+ htmlcov/
44
+ .mypy_cache/
45
+ .ruff_cache/
46
+
47
+ # Misc
48
+ *.log
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.4
2
+ Name: cloudscope
3
+ Version: 0.1.0
4
+ Summary: TUI for browsing and syncing files across S3, GCS, and Google Drive
5
+ Requires-Python: >=3.11
6
+ Requires-Dist: aiofiles>=23.0.0
7
+ Requires-Dist: boto3>=1.28.0
8
+ Requires-Dist: google-api-python-client>=2.90.0
9
+ Requires-Dist: google-auth-httplib2>=0.1.0
10
+ Requires-Dist: google-auth-oauthlib>=1.0.0
11
+ Requires-Dist: google-cloud-storage>=2.10.0
12
+ Requires-Dist: humanize>=4.0.0
13
+ Requires-Dist: platformdirs>=3.0.0
14
+ Requires-Dist: textual>=1.0.0
15
+ Provides-Extra: dev
16
+ Requires-Dist: moto>=4.0; extra == 'dev'
17
+ Requires-Dist: mypy>=1.5; extra == 'dev'
18
+ Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
19
+ Requires-Dist: pytest-cov>=4.0; extra == 'dev'
20
+ Requires-Dist: pytest>=7.0; extra == 'dev'
21
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
22
+ Requires-Dist: textual-dev>=1.0.0; extra == 'dev'