data-sourcerer 0.1.0__py3-none-any.whl

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 (95) hide show
  1. data_sourcerer-0.1.0.dist-info/METADATA +52 -0
  2. data_sourcerer-0.1.0.dist-info/RECORD +95 -0
  3. data_sourcerer-0.1.0.dist-info/WHEEL +5 -0
  4. data_sourcerer-0.1.0.dist-info/entry_points.txt +2 -0
  5. data_sourcerer-0.1.0.dist-info/licenses/LICENSE +21 -0
  6. data_sourcerer-0.1.0.dist-info/top_level.txt +1 -0
  7. sourcerer/__init__.py +15 -0
  8. sourcerer/domain/__init__.py +13 -0
  9. sourcerer/domain/access_credentials/__init__.py +7 -0
  10. sourcerer/domain/access_credentials/entities.py +53 -0
  11. sourcerer/domain/access_credentials/exceptions.py +17 -0
  12. sourcerer/domain/access_credentials/repositories.py +84 -0
  13. sourcerer/domain/access_credentials/services.py +91 -0
  14. sourcerer/domain/file_system/__init__.py +7 -0
  15. sourcerer/domain/file_system/entities.py +70 -0
  16. sourcerer/domain/file_system/exceptions.py +17 -0
  17. sourcerer/domain/file_system/services.py +64 -0
  18. sourcerer/domain/shared/__init__.py +6 -0
  19. sourcerer/domain/shared/entities.py +18 -0
  20. sourcerer/domain/storage_provider/__init__.py +7 -0
  21. sourcerer/domain/storage_provider/entities.py +86 -0
  22. sourcerer/domain/storage_provider/exceptions.py +17 -0
  23. sourcerer/domain/storage_provider/services.py +130 -0
  24. sourcerer/infrastructure/__init__.py +13 -0
  25. sourcerer/infrastructure/access_credentials/__init__.py +7 -0
  26. sourcerer/infrastructure/access_credentials/exceptions.py +16 -0
  27. sourcerer/infrastructure/access_credentials/registry.py +120 -0
  28. sourcerer/infrastructure/access_credentials/repositories.py +119 -0
  29. sourcerer/infrastructure/access_credentials/services.py +396 -0
  30. sourcerer/infrastructure/db/__init__.py +6 -0
  31. sourcerer/infrastructure/db/config.py +73 -0
  32. sourcerer/infrastructure/db/models.py +47 -0
  33. sourcerer/infrastructure/file_system/__init__.py +7 -0
  34. sourcerer/infrastructure/file_system/exceptions.py +89 -0
  35. sourcerer/infrastructure/file_system/services.py +147 -0
  36. sourcerer/infrastructure/storage_provider/__init__.py +7 -0
  37. sourcerer/infrastructure/storage_provider/exceptions.py +78 -0
  38. sourcerer/infrastructure/storage_provider/registry.py +84 -0
  39. sourcerer/infrastructure/storage_provider/services.py +509 -0
  40. sourcerer/infrastructure/utils.py +106 -0
  41. sourcerer/presentation/__init__.py +12 -0
  42. sourcerer/presentation/app.py +36 -0
  43. sourcerer/presentation/di_container.py +46 -0
  44. sourcerer/presentation/screens/__init__.py +0 -0
  45. sourcerer/presentation/screens/critical_error/__init__.py +0 -0
  46. sourcerer/presentation/screens/critical_error/main.py +78 -0
  47. sourcerer/presentation/screens/critical_error/styles.tcss +41 -0
  48. sourcerer/presentation/screens/file_system_finder/main.py +248 -0
  49. sourcerer/presentation/screens/file_system_finder/styles.tcss +44 -0
  50. sourcerer/presentation/screens/file_system_finder/widgets/__init__.py +0 -0
  51. sourcerer/presentation/screens/file_system_finder/widgets/file_system_navigator.py +810 -0
  52. sourcerer/presentation/screens/main/__init__.py +0 -0
  53. sourcerer/presentation/screens/main/main.py +469 -0
  54. sourcerer/presentation/screens/main/messages/__init__.py +0 -0
  55. sourcerer/presentation/screens/main/messages/delete_request.py +12 -0
  56. sourcerer/presentation/screens/main/messages/download_request.py +12 -0
  57. sourcerer/presentation/screens/main/messages/preview_request.py +10 -0
  58. sourcerer/presentation/screens/main/messages/resizing_rule.py +21 -0
  59. sourcerer/presentation/screens/main/messages/select_storage_item.py +11 -0
  60. sourcerer/presentation/screens/main/messages/uncheck_files_request.py +8 -0
  61. sourcerer/presentation/screens/main/messages/upload_request.py +10 -0
  62. sourcerer/presentation/screens/main/mixins/__init__.py +0 -0
  63. sourcerer/presentation/screens/main/mixins/resize_containers_watcher_mixin.py +144 -0
  64. sourcerer/presentation/screens/main/styles.tcss +32 -0
  65. sourcerer/presentation/screens/main/widgets/__init__.py +0 -0
  66. sourcerer/presentation/screens/main/widgets/gradient.py +45 -0
  67. sourcerer/presentation/screens/main/widgets/resizing_rule.py +67 -0
  68. sourcerer/presentation/screens/main/widgets/storage_content.py +691 -0
  69. sourcerer/presentation/screens/main/widgets/storage_list_sidebar.py +143 -0
  70. sourcerer/presentation/screens/preview_content/__init__.py +0 -0
  71. sourcerer/presentation/screens/preview_content/main.py +59 -0
  72. sourcerer/presentation/screens/preview_content/styles.tcss +26 -0
  73. sourcerer/presentation/screens/provider_creds_list/__init__.py +0 -0
  74. sourcerer/presentation/screens/provider_creds_list/main.py +164 -0
  75. sourcerer/presentation/screens/provider_creds_list/styles.tcss +65 -0
  76. sourcerer/presentation/screens/provider_creds_registration/__init__.py +0 -0
  77. sourcerer/presentation/screens/provider_creds_registration/main.py +264 -0
  78. sourcerer/presentation/screens/provider_creds_registration/styles.tcss +42 -0
  79. sourcerer/presentation/screens/question/__init__.py +0 -0
  80. sourcerer/presentation/screens/question/main.py +31 -0
  81. sourcerer/presentation/screens/question/styles.tcss +33 -0
  82. sourcerer/presentation/screens/shared/__init__.py +0 -0
  83. sourcerer/presentation/screens/shared/containers.py +13 -0
  84. sourcerer/presentation/screens/shared/widgets/__init__.py +0 -0
  85. sourcerer/presentation/screens/shared/widgets/button.py +54 -0
  86. sourcerer/presentation/screens/shared/widgets/labeled_input.py +80 -0
  87. sourcerer/presentation/screens/storage_action_progress/__init__.py +0 -0
  88. sourcerer/presentation/screens/storage_action_progress/main.py +476 -0
  89. sourcerer/presentation/screens/storage_action_progress/styles.tcss +43 -0
  90. sourcerer/presentation/settings.py +31 -0
  91. sourcerer/presentation/themes/__init__.py +0 -0
  92. sourcerer/presentation/themes/github_dark.py +21 -0
  93. sourcerer/presentation/utils.py +69 -0
  94. sourcerer/settings.py +72 -0
  95. sourcerer/utils.py +32 -0
@@ -0,0 +1,52 @@
1
+ Metadata-Version: 2.4
2
+ Name: data-sourcerer
3
+ Version: 0.1.0
4
+ Summary: Sourcerer is a terminal cloud storage navigator.
5
+ Author-email: Bohdana Kuzmenko <bohdana.kuzmenko.dev@gmail.com>
6
+ License: MIT
7
+ Keywords: cloud,s3,gcp,cli,termanal,storage,textual,ui
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: boto3<2.0.0,>=1.26.0
12
+ Requires-Dist: cryptography<45.0.0,>=44.0.2
13
+ Requires-Dist: dependency-injector<5.0.0,>=4.43.0
14
+ Requires-Dist: google-cloud-storage<4.0.0,>=3.1.0
15
+ Requires-Dist: humanize<5.0.0,>=4.12.1
16
+ Requires-Dist: sqlalchemy<3.0.0,>=2.0.38
17
+ Requires-Dist: sqlalchemy-utils<1.0.0,>=0.41.2
18
+ Requires-Dist: textual[syntax]<4.0.0,>=2.0.0
19
+ Dynamic: license-file
20
+
21
+ # 🧙‍♂️ Sourcerer
22
+
23
+ **Sourcerer** is a CLI-based cloud storage explorer that provides a unified interface for developers and DevOps
24
+ engineers to view and manage files across multiple cloud providers like
25
+ **GCP**, **AWS S3**, and **S3-compatible services**.
26
+
27
+ > Your terminal. Your storages. Your control.
28
+
29
+ ---
30
+
31
+ ## ✨ Features
32
+
33
+ - 🔍 Unified file browser for GCP, AWS S3, and S3-compatible services
34
+ - 🧭 Terminal UI (TUI) built with [Textual](https://github.com/Textualize/textual)
35
+ - 🗂️ Explore buckets and objects seamlessly
36
+ - 🔄 Upload, download, and delete files
37
+ - 🔐 Secure credential management via local **SQLite database**
38
+
39
+ ---
40
+
41
+ ## 🪄 Installation
42
+
43
+ ```bash
44
+ pip install sourcerer
45
+ ```
46
+
47
+
48
+ ## 🔮 See in action
49
+
50
+ ![creds_registration.gif](https://github.com/the-impact-craft/sourcerer/blob/main/media/creds_registration.gif?raw=true)
51
+
52
+ ![keys_operations.gif](https://github.com/the-impact-craft/sourcerer/blob/main/media/keys_operations.gif?raw=true)
@@ -0,0 +1,95 @@
1
+ data_sourcerer-0.1.0.dist-info/licenses/LICENSE,sha256=HjZ7RAG3i6izxvitGfY4feHfvW5F8DPj5eF0YBSf2rI,1073
2
+ sourcerer/__init__.py,sha256=h7QH2R5-hJCjx1Yn7krJm8SThocxrzReoc5j7Pae-LI,585
3
+ sourcerer/settings.py,sha256=GebQXsEsiiFKBWsmRO5RToCYzTKpr8hOYipBP5WqzG4,1319
4
+ sourcerer/utils.py,sha256=udr1T2hObYPEchsVyBQvzPuEJcQptLfwF4BnjvvOnvE,841
5
+ sourcerer/domain/__init__.py,sha256=rV21d-dD-e0q4EQ2LfWDSDLlrUOjnHnWBtWPujoue0o,556
6
+ sourcerer/domain/access_credentials/__init__.py,sha256=pFAwnr74uy09e7kubYsuaqzkVPkTA66dwjKzpIGQkAY,217
7
+ sourcerer/domain/access_credentials/entities.py,sha256=0jLhLGjst42TbhnWYVL9wnN8K1KmL8H_vhG2DavaQd0,1541
8
+ sourcerer/domain/access_credentials/exceptions.py,sha256=g7m7zrgEKdtNNynn049vEc6W_V-8yhS4hLOAOaK_NeM,550
9
+ sourcerer/domain/access_credentials/repositories.py,sha256=FDbpbQZd_I0FHUuySYbBlBByvVci1fNIJvN_P63sN0g,2408
10
+ sourcerer/domain/access_credentials/services.py,sha256=Ze2s-w6BB231A8cGziC88o-wyNTyaPAIq-HPy8RP-YA,2383
11
+ sourcerer/domain/file_system/__init__.py,sha256=5diScp5Q8Hw8e_4vqacVocQBw0KA7fPs_YERoNwSEzM,184
12
+ sourcerer/domain/file_system/entities.py,sha256=5W2_I1lng8J2foSJN-FqNZPR6n151VntiD_vkssAqgQ,2069
13
+ sourcerer/domain/file_system/exceptions.py,sha256=pE_Z3gzbPO3JHU3WonBEoMOtPhuHSKr7ABGo-xyp8NY,513
14
+ sourcerer/domain/file_system/services.py,sha256=CTBVL98E7eMNNzQsekzlyrxfJWw_cIzTROhBM5LgV_E,2216
15
+ sourcerer/domain/shared/__init__.py,sha256=pkCn6PfBLIlYT5q4xWq3cNtOfbUrrePiH06TduLq6_o,148
16
+ sourcerer/domain/shared/entities.py,sha256=kZ4F2ExhYIVC6FNtHzvk6n71KaCMgZdf-JL7M1eVOTs,462
17
+ sourcerer/domain/storage_provider/__init__.py,sha256=P3RUH9LFkWez3ehCczgVbnbp0tZZepPeOQf9spsC8FQ,192
18
+ sourcerer/domain/storage_provider/entities.py,sha256=So3mdAfM65W_J9hV78PzQS1R-i7g9LsKYiH-a1ui4XM,1970
19
+ sourcerer/domain/storage_provider/exceptions.py,sha256=0sZuwDfjRDCX7Jdh39xVzEemZoYL_CWzZw2E7cc1AZc,512
20
+ sourcerer/domain/storage_provider/services.py,sha256=3-JVtG3a7U-UCloO8nEguxA1E8Sr-HM0IsJxQ4xuWjE,3885
21
+ sourcerer/infrastructure/__init__.py,sha256=HQoqA8S9Vx2dr1Eua86wu_YxwXyY6jqa4IfEoZJcXcQ,616
22
+ sourcerer/infrastructure/utils.py,sha256=OnIaA2TKzN2yA8YasWEcrWV8ZC4xO0n0vJ7hgKCpbUQ,3042
23
+ sourcerer/infrastructure/access_credentials/__init__.py,sha256=7BSXnI9n59_PuGxHjOra6PG82R_6JlrU4S1tsJx4WGM,249
24
+ sourcerer/infrastructure/access_credentials/exceptions.py,sha256=WGOOH5NFR9sFtOqX-g9KasYSa6tzmaFStzfrTwtPqN8,601
25
+ sourcerer/infrastructure/access_credentials/registry.py,sha256=KLaNQSQBGJ6QEvO8Q63QAjIUIfx3jLH_5sp_eD0xymw,3462
26
+ sourcerer/infrastructure/access_credentials/repositories.py,sha256=og5kAgUlNNGbCQYCMTJ7DE1GotmqLc7owpnXIfOSnng,3839
27
+ sourcerer/infrastructure/access_credentials/services.py,sha256=LBoRsE-CauSrcEduhkRR6DhfFT2QZqS5ErvPw4c83wg,12254
28
+ sourcerer/infrastructure/db/__init__.py,sha256=sjx2F0aDnxej7-FAjhFJYIQQ5d2apmItkquKbvGYIBc,175
29
+ sourcerer/infrastructure/db/config.py,sha256=VUh4S4bEh9GSx3ZDfQTI-ZGdkWNs_KdO9zDjRCGDjPQ,1808
30
+ sourcerer/infrastructure/db/models.py,sha256=yABQtOG7FE8r8nfyg5mIAAZjmH4lj9TQzCV206-YCfY,1743
31
+ sourcerer/infrastructure/file_system/__init__.py,sha256=Swx8arwXeZ4E40ViDSpQglmUrIlpuEvZY6crcWpGC2g,219
32
+ sourcerer/infrastructure/file_system/exceptions.py,sha256=kNTQE24Z440igtiXnmWmhyKM8WMyBVXSXW9uWAqnL1A,3012
33
+ sourcerer/infrastructure/file_system/services.py,sha256=OsNDLPBmjT9ps640ZPv9S_G1bCK3ThdAaR5Z_PdYgoI,5694
34
+ sourcerer/infrastructure/storage_provider/__init__.py,sha256=GONjDCsTmd6f_fF3lzxDAfLlyuSQDhO4bz0eF9a35tI,229
35
+ sourcerer/infrastructure/storage_provider/exceptions.py,sha256=LLtDv0Qrrjjw9NWeGOLFSpI4NkXEtLPKRQbXA4aINMM,2702
36
+ sourcerer/infrastructure/storage_provider/registry.py,sha256=8mNrOemCvFPO71nOSCY4s0QtGnXNWk8GnwhwpalOVzo,2279
37
+ sourcerer/infrastructure/storage_provider/services.py,sha256=26tOuuLwugtn3L17qUOBaM_Xzg4Ptrbj74VkgXbVCkM,16756
38
+ sourcerer/presentation/__init__.py,sha256=kzOeaTpy9hm61MLl_nybdooRrawFUd1uEX4f3Y-84ZU,472
39
+ sourcerer/presentation/app.py,sha256=ROu3vSWzo6d8W30A9Zqi5zdLcVeHJsGLDJMLTKrthHE,1018
40
+ sourcerer/presentation/di_container.py,sha256=mbK8tDY0LgVRfQfXVZ5tGXPHSfr_8JraCMIQlZn0hBc,1641
41
+ sourcerer/presentation/settings.py,sha256=OcNrvwqHwAq3ZqWOfEmZ0PqyvQpAY1fmBpMc9lBNfgI,1062
42
+ sourcerer/presentation/utils.py,sha256=9kXYKV2ECCWzDuz4bIdjCsM4Q1ycvUPFI_YUWAtEsx8,2474
43
+ sourcerer/presentation/screens/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
+ sourcerer/presentation/screens/critical_error/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
+ sourcerer/presentation/screens/critical_error/main.py,sha256=eRKR4xTpgf9AMPz2K9mVUGN_8MauVbTBb7v0JfhT6Ck,2242
46
+ sourcerer/presentation/screens/critical_error/styles.tcss,sha256=mURvbf0_npkRtzVBs2bVBybbyNK9cO_6Ar2Muk1Mpv8,604
47
+ sourcerer/presentation/screens/file_system_finder/main.py,sha256=sCTwuAFV8VxN2VsT6JkSfw292lE9GQAz9rJZ693WV2Y,10118
48
+ sourcerer/presentation/screens/file_system_finder/styles.tcss,sha256=fZkdwXFsDkjXkaIskLxoQ_YHsLWKjgrn6hYseugg_68,718
49
+ sourcerer/presentation/screens/file_system_finder/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
+ sourcerer/presentation/screens/file_system_finder/widgets/file_system_navigator.py,sha256=f2w4rTkUMRMFCG4_W3xrsE4T5QqdJALObtIHT3fa2FQ,30875
51
+ sourcerer/presentation/screens/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
+ sourcerer/presentation/screens/main/main.py,sha256=jLexn2hiJlQEXK2Yy9y6Ex_doyR-2LzC9CHKs1Q4pgI,19466
53
+ sourcerer/presentation/screens/main/styles.tcss,sha256=Ruv2vBKzM8njH7OS2TCpZqCmRVEp7XQLeBN4XhVB5AU,381
54
+ sourcerer/presentation/screens/main/messages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
+ sourcerer/presentation/screens/main/messages/delete_request.py,sha256=b8rjpe2E0p-BNYQTwuT0yD9qGzHat23N7ip_FbzhRaY,227
56
+ sourcerer/presentation/screens/main/messages/download_request.py,sha256=PpLtx3A-s_sq7ThavtwR-2EkSjM0_NevZ5xvJ8JaCN8,229
57
+ sourcerer/presentation/screens/main/messages/preview_request.py,sha256=px8N3E2VEexKmpZESb9nYDQvhXUThPxM0dU41B533tM,184
58
+ sourcerer/presentation/screens/main/messages/resizing_rule.py,sha256=ws7lzS08h6qqeihF66XV5FsX26YkjQOje_4vgCw2mqI,332
59
+ sourcerer/presentation/screens/main/messages/select_storage_item.py,sha256=xBu0UH5A6iyZPJECt_f_vfWVaCmE0bJo5hq2FJXMHQo,237
60
+ sourcerer/presentation/screens/main/messages/uncheck_files_request.py,sha256=CMpYVwos1JHknqDcqru1hG8RJy5f1Lwjsxtrse1ZDGw,140
61
+ sourcerer/presentation/screens/main/messages/upload_request.py,sha256=KXPTliqdvRvtMwob5bQUuBDxCjWmFcSjt-eUgQoRv7g,185
62
+ sourcerer/presentation/screens/main/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
+ sourcerer/presentation/screens/main/mixins/resize_containers_watcher_mixin.py,sha256=PMtPFwEuxRaeFsaELzOEwOw6m30yMbIUTVkxkMbNRqU,5647
64
+ sourcerer/presentation/screens/main/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
65
+ sourcerer/presentation/screens/main/widgets/gradient.py,sha256=aaKg0rMlMhiZzwss_qVFNKMBSMh6rZHE4C6goo5CpNc,1268
66
+ sourcerer/presentation/screens/main/widgets/resizing_rule.py,sha256=nn-Yucvq7DK9RM7hcgkfPpqLjPq5qfswm2X7Y3XMw5k,2040
67
+ sourcerer/presentation/screens/main/widgets/storage_content.py,sha256=mOg13MdCPextpu4El1SY6huMPUWEcSnUC0njF74Stlc,21880
68
+ sourcerer/presentation/screens/main/widgets/storage_list_sidebar.py,sha256=xYDW6S9GSn747s06WbE691mogLKg0JrK9bh1T7Nf-5o,4588
69
+ sourcerer/presentation/screens/preview_content/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
+ sourcerer/presentation/screens/preview_content/main.py,sha256=DGbiplvxZIE3gHKWZPsw3imqQWESO0Ej-YvN6t1j3uI,2267
71
+ sourcerer/presentation/screens/preview_content/styles.tcss,sha256=wuLIX9UyniZ8EUBEqQ-_vn-CZ45q0PNxnbQFNG4QTxE,356
72
+ sourcerer/presentation/screens/provider_creds_list/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
+ sourcerer/presentation/screens/provider_creds_list/main.py,sha256=tU8Vi7OxUIjiC1pxZk3dIJh71zOWnu9VGaOSl8LWDoE,6203
74
+ sourcerer/presentation/screens/provider_creds_list/styles.tcss,sha256=PmO_JKNR7NhYhT9CXLSZqh_q3rxFJ1HkSzVxOjJs_P8,904
75
+ sourcerer/presentation/screens/provider_creds_registration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
+ sourcerer/presentation/screens/provider_creds_registration/main.py,sha256=CGBNZ2asPupanb7Ds1x4WLuunYdIMBKJisjlEQKZHa0,10613
77
+ sourcerer/presentation/screens/provider_creds_registration/styles.tcss,sha256=gd1SNeRoHTYwNzdGxK-2aDqNPeY5b2wFWajtoNn5--Y,612
78
+ sourcerer/presentation/screens/question/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
79
+ sourcerer/presentation/screens/question/main.py,sha256=2hhFhVf52IIuIgeiQPfBRQEP9hSuXxnJD55TFl4rYug,901
80
+ sourcerer/presentation/screens/question/styles.tcss,sha256=fJl0Votob2sfRQP4s8Oqd5P2OQ0WiGMdoLpTsMgISfw,418
81
+ sourcerer/presentation/screens/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
82
+ sourcerer/presentation/screens/shared/containers.py,sha256=n2eGBb-lGZoMBNV1e0HdAfCkCObZuaVusfRVvosVAfo,378
83
+ sourcerer/presentation/screens/shared/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
84
+ sourcerer/presentation/screens/shared/widgets/button.py,sha256=MpzxKZ7KGe5g4aNkNnFN6novnXv1au3WdgsVN-ITOns,1558
85
+ sourcerer/presentation/screens/shared/widgets/labeled_input.py,sha256=q1y5XGWOtP9buk_hkLvc2QwDEd5XtK-_hFk_WQCARa8,2750
86
+ sourcerer/presentation/screens/storage_action_progress/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
87
+ sourcerer/presentation/screens/storage_action_progress/main.py,sha256=1Y7zemJlgJ_twZI_bJYZ4r_7NHU7qS9hCtzLOPpkXJk,17298
88
+ sourcerer/presentation/screens/storage_action_progress/styles.tcss,sha256=auV7H_JT68--Ry5SMLxsGamOcAnPhHul4NkIj2WOht0,667
89
+ sourcerer/presentation/themes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
90
+ sourcerer/presentation/themes/github_dark.py,sha256=9E1mEOr701nU-ZDSKBccMl3GYchroCEsxEVelm5oI-E,497
91
+ data_sourcerer-0.1.0.dist-info/METADATA,sha256=7UC4aOLGSz3TxMMN8xPXlOrIYJSN5mBKRsJEKaLMaIM,1692
92
+ data_sourcerer-0.1.0.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
93
+ data_sourcerer-0.1.0.dist-info/entry_points.txt,sha256=CyD02GehPW6QuhR5oDY5tLLRHQ9qbPXe0v3aT1pK3N8,62
94
+ data_sourcerer-0.1.0.dist-info/top_level.txt,sha256=_9Nul_xiROuGIUDltaPqy-HyRzvv80MF_uquhggP9So,10
95
+ data_sourcerer-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.3.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ sourcerer = sourcerer.presentation.app:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 The Impact Craft
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ sourcerer
sourcerer/__init__.py ADDED
@@ -0,0 +1,15 @@
1
+ """
2
+ Sourcerer - Cloud Storage Management Application.
3
+
4
+ This package provides a comprehensive solution for managing and interacting
5
+ with various cloud storage providers through a unified interface. It supports
6
+ operations like browsing, uploading, downloading, and managing files across
7
+ different cloud storage services.
8
+
9
+ The application is structured using a clean architecture approach with:
10
+ - Domain layer: Core business logic and entities
11
+ - Infrastructure layer: Implementation details and external services
12
+ - Presentation layer: User interface components
13
+ """
14
+
15
+ __version__ = "0.1.0"
@@ -0,0 +1,13 @@
1
+ """
2
+ Domain layer for the Sourcerer application.
3
+
4
+ This package contains the core business logic, entities, and service interfaces
5
+ for the application. It defines the domain model and business rules independent
6
+ of any external frameworks or technologies.
7
+
8
+ The domain layer is organized into several subpackages:
9
+ - file_system: File system entities and services
10
+ - storage_provider: Cloud storage provider entities and services
11
+ - access_credentials: Authentication and credential management
12
+ - shared: Common entities and utilities shared across the domain
13
+ """
@@ -0,0 +1,7 @@
1
+ """
2
+ Access credentials domain module.
3
+
4
+ This package defines the domain model for access credentials,
5
+ including entities, services, repositories, and exceptions related
6
+ to authentication and credential management.
7
+ """
@@ -0,0 +1,53 @@
1
+ """
2
+ Access credentials entity classes.
3
+
4
+ This module defines data classes representing access credentials
5
+ used for authentication with various cloud providers.
6
+ """
7
+
8
+ from dataclasses import dataclass
9
+ from datetime import datetime
10
+
11
+ import boto3
12
+
13
+
14
+ @dataclass
15
+ class Credentials:
16
+ """
17
+ Represents access credentials for a provider.
18
+
19
+ Attributes:
20
+ uuid (str): Unique identifier for the credentials.
21
+ name (str): Name of the credentials.
22
+ provider (str): Name of the service provider.
23
+ credentials_type (str): Type of credentials (e.g., key_pair).
24
+ credentials (str): Serialized credentials data.
25
+ active (bool): Indicates if the credentials are active.
26
+ created_at (datetime | None): Timestamp when the credentials were created.
27
+ updated_at (datetime | None): Timestamp when the credentials were last updated.
28
+ """
29
+
30
+ uuid: str
31
+ name: str
32
+ provider: str
33
+ credentials_type: str
34
+ credentials: str
35
+ active: bool
36
+ created_at: datetime | None = None
37
+ updated_at: datetime | None = None
38
+
39
+
40
+ @dataclass
41
+ class Boto3Credentials:
42
+ """
43
+ Represents AWS credentials using boto3 session.
44
+
45
+ Attributes:
46
+ session (boto3.Session): The boto3 session object for AWS authentication.
47
+ endpoint_url (str|None): Optional custom endpoint URL for AWS services.
48
+ signature_version (str|None): Optional signature version for AWS API requests.
49
+ """
50
+
51
+ session: boto3.Session
52
+ endpoint_url: str | None = None
53
+ signature_version: str | None = None
@@ -0,0 +1,17 @@
1
+ """
2
+ Access credentials exception base class.
3
+
4
+ This module defines the base exception class for errors related to
5
+ access credentials operations.
6
+ """
7
+
8
+
9
+ class BaseAccessCredentialsException(Exception):
10
+ """
11
+ Base exception class for access credentials-related errors.
12
+
13
+ This class serves as the base for all exceptions that arise
14
+ within the access credentials module. It provides a foundation for
15
+ more specific exceptions to inherit from, making it easier to
16
+ handle different credential error scenarios in a structured way.
17
+ """
@@ -0,0 +1,84 @@
1
+ """
2
+ Base credentials repository interface.
3
+
4
+ This module defines the abstract base class for credentials repositories,
5
+ providing a common interface for different storage implementations.
6
+ """
7
+
8
+ from abc import abstractmethod, ABCMeta
9
+
10
+ from sourcerer.domain.access_credentials.entities import Credentials
11
+
12
+
13
+ class BaseCredentialsRepository(metaclass=ABCMeta):
14
+ """Base abstract class for credentials repository implementations.
15
+
16
+ Defines the interface for storing and retrieving credentials.
17
+ """
18
+
19
+ @abstractmethod
20
+ def create(self, credentials: Credentials):
21
+ """Create new credentials entry in the repository.
22
+
23
+ Args:
24
+ credentials (Credentials): The credentials object to store
25
+
26
+ Raises:
27
+ NotImplementedError: Method must be implemented by concrete classes
28
+ """
29
+ raise NotImplementedError
30
+
31
+ @abstractmethod
32
+ def get(self, uuid):
33
+ """Retrieve credentials by UUID.
34
+
35
+ Args:
36
+ uuid: Unique identifier for the credentials
37
+
38
+ Returns:
39
+ Credentials: The credentials object if found, None otherwise
40
+
41
+ Raises:
42
+ NotImplementedError: Method must be implemented by concrete classes
43
+ """
44
+ raise NotImplementedError
45
+
46
+ @abstractmethod
47
+ def list(self, active_only: bool | None = None):
48
+ """List all credentials in the repository.
49
+
50
+ Args:
51
+ active_only (bool|None, optional): If True, return only active credentials.
52
+ If False, return all credentials. Defaults to None.
53
+
54
+ Returns:
55
+ List[Credentials]: List of credentials objects
56
+
57
+ Raises:
58
+ NotImplementedError: Method must be implemented by concrete classes
59
+ """
60
+ raise NotImplementedError
61
+
62
+ @abstractmethod
63
+ def activate(self, uuid):
64
+ """Activate credentials by UUID.
65
+
66
+ Args:
67
+ uuid: Unique identifier for the credentials to activate
68
+
69
+ Raises:
70
+ NotImplementedError: Method must be implemented by concrete classes
71
+ """
72
+ raise NotImplementedError
73
+
74
+ @abstractmethod
75
+ def deactivate(self, uuid):
76
+ """Deactivate credentials by UUID.
77
+
78
+ Args:
79
+ uuid: Unique identifier for the credentials to deactivate
80
+
81
+ Raises:
82
+ NotImplementedError: Method must be implemented by concrete classes
83
+ """
84
+ raise NotImplementedError
@@ -0,0 +1,91 @@
1
+ """
2
+ Base access credentials service interfaces.
3
+
4
+ This module defines the abstract base classes and data structures for
5
+ access credential services, providing a common interface for different
6
+ authentication methods.
7
+ """
8
+
9
+ from abc import abstractmethod
10
+ from dataclasses import dataclass
11
+ from typing import List
12
+
13
+ from sourcerer.domain.access_credentials.repositories import BaseCredentialsRepository
14
+
15
+
16
+ @dataclass
17
+ class AuthField:
18
+ """
19
+ Data class representing an authentication field.
20
+
21
+ Args:
22
+ key (str): Unique identifier for the auth field
23
+ label (str): Display label for the auth field
24
+ required (bool): Whether this field is required
25
+ description (str | None): Optional description of the field
26
+ """
27
+
28
+ key: str
29
+ label: str
30
+ required: bool
31
+ multiline: bool = False
32
+ description: str | None = None
33
+
34
+
35
+ class BaseAccessCredentialsService:
36
+ """
37
+ Base class for access credentials services.
38
+
39
+ This abstract class defines the interface for services that manage
40
+ authentication credentials for various cloud providers and services.
41
+ """
42
+
43
+ def __init__(self, credentials_repo: BaseCredentialsRepository):
44
+ """
45
+ Initialize the service.
46
+
47
+ Args:
48
+ credentials_repo (BaseCredentialsRepository): Repository for storing credentials
49
+ """
50
+ self.credentials_repo = credentials_repo
51
+
52
+ @abstractmethod
53
+ def store(self, name: str, credentials: dict):
54
+ """
55
+ Store credentials.
56
+
57
+ Args:
58
+ name (str): Name identifier for the credentials
59
+ credentials (dict): Dictionary containing credential information
60
+ """
61
+
62
+ @abstractmethod
63
+ def extract(self, uuid: str):
64
+ """
65
+ Extract credentials by UUID.
66
+
67
+ Args:
68
+ uuid (str): UUID of the credentials to extract
69
+
70
+ Returns:
71
+ Credentials: The credentials object
72
+ """
73
+
74
+ @abstractmethod
75
+ def authenticate(self, credentials: str):
76
+ """
77
+ Authenticate using stored credentials.
78
+
79
+ Returns:
80
+ Any: Authentication result, typically a session or client object
81
+ """
82
+
83
+ @classmethod
84
+ @abstractmethod
85
+ def auth_fields(cls) -> List[AuthField]:
86
+ """
87
+ Get list of authentication fields.
88
+
89
+ Returns:
90
+ List[AuthField]: List of authentication field definitions
91
+ """
@@ -0,0 +1,7 @@
1
+ """
2
+ File system domain module.
3
+
4
+ This package defines the domain model for file system operations,
5
+ including entities, services, and exceptions related to file system
6
+ interactions.
7
+ """
@@ -0,0 +1,70 @@
1
+ """
2
+ File system entity classes.
3
+
4
+ This module defines data classes representing file system entities and
5
+ operation results used throughout the application.
6
+ """
7
+
8
+ from dataclasses import dataclass
9
+ from pathlib import Path
10
+
11
+
12
+ @dataclass
13
+ class SearchResult:
14
+ """
15
+ Represents the result of a search operation.
16
+
17
+ This class encapsulates the details of a single search result, including
18
+ the matched text, the file where the match was found, and the line number
19
+ within the file. It is typically used to store and organize search results
20
+ for further processing or display.
21
+
22
+ Attributes:
23
+ text (str): The text that matched the search pattern.
24
+ file_name (str): The name of the file where the text was found.
25
+ line (int): The line number within the file where the text was found.
26
+ """
27
+
28
+ text: str
29
+ file_name: str
30
+ line: int
31
+
32
+
33
+ @dataclass
34
+ class SearchResultOutput:
35
+ """
36
+ Represents the output of a search operation.
37
+
38
+ This class encapsulates the results of a search operation, including
39
+ the search pattern used, the list of search results, and the total
40
+ number of matches found. It is typically used to organize and present
41
+ search results to the user.
42
+
43
+ Attributes:
44
+ pattern (str): The search pattern that was used.
45
+ output (list[SearchResult]): List of search result objects.
46
+ total (int): Total number of matches found.
47
+ """
48
+
49
+ pattern: str
50
+ output: list[SearchResult]
51
+ total: int
52
+
53
+
54
+ @dataclass
55
+ class ListDirOutput:
56
+ """
57
+ Represents the output of a list directory operation.
58
+
59
+ This class encapsulates the details of a list directory operation,
60
+ including the list of files and directories within the specified
61
+ directory. It is typically used to store and organize the directory
62
+ listing for further processing or display.
63
+
64
+ Attributes:
65
+ files (list[Path]): List of file paths found in the directory.
66
+ directories (list[Path]): List of directory paths found in the directory.
67
+ """
68
+
69
+ files: list[Path]
70
+ directories: list[Path]
@@ -0,0 +1,17 @@
1
+ """
2
+ File system exception base class.
3
+
4
+ This module defines the base exception class for errors related to
5
+ file system operations.
6
+ """
7
+
8
+
9
+ class BaseFileSystemException(Exception):
10
+ """
11
+ Base exception class for filesystem-related errors.
12
+
13
+ This class serves as the base for all exceptions that arise
14
+ within the filesystem module. It provides a foundation for
15
+ more specific exceptions to inherit from, making it easier to
16
+ handle different filesystem error scenarios in a structured way.
17
+ """
@@ -0,0 +1,64 @@
1
+ """
2
+ Base file system service interface.
3
+
4
+ This module defines the abstract base class for file system services,
5
+ providing a common interface for file system operations.
6
+ """
7
+
8
+ import abc
9
+ from pathlib import Path
10
+
11
+ from sourcerer.domain.file_system.entities import ListDirOutput
12
+
13
+
14
+ class BaseFileSystemService(metaclass=abc.ABCMeta):
15
+ """
16
+ Abstract base class for file system services.
17
+
18
+ This class defines the interface for file system operations such as
19
+ listing, reading, creating, and deleting files and directories.
20
+ Concrete implementations should provide the actual functionality.
21
+ """
22
+
23
+ @abc.abstractmethod
24
+ def read(self, path: Path) -> str:
25
+ """
26
+ Reads and processes the contents of a file located at the specified path.
27
+
28
+ This method will attempt to open the file, read its content, and perform
29
+ any necessary processing on the data. It assumes that the file is in
30
+ a format appropriate for the specific application logic and that the
31
+ given path is accessible.
32
+
33
+ Args:
34
+ path (Path): The path to the file to read.
35
+
36
+ Returns:
37
+ str: The processed data extracted from the file.
38
+
39
+ Raises:
40
+ ReadFileException: An error occurred during the file read operation.
41
+ """
42
+ raise NotImplementedError
43
+
44
+ @abc.abstractmethod
45
+ def list_dir(
46
+ self, path: Path, relative_paths: bool = False, recursively=False
47
+ ) -> ListDirOutput:
48
+ """
49
+ List all files and directories within the specified directory.
50
+
51
+ Args:
52
+ path (Path): The path to the directory.
53
+ relative_paths (bool): Whether to return relative paths or full paths.
54
+ recursively (bool): Whether iterate recursively over the content
55
+
56
+ Returns:
57
+ ListDirOutput: A data class containing the list of files and directories within the specified path.
58
+ - files (list[Path]): Sorted list of file paths
59
+ - directories (list[Path]): Sorted list of directory paths
60
+
61
+ Raises:
62
+ ListDirException: If the path is invalid, directory doesn't exist, or path is not a directory.
63
+ """
64
+ raise NotImplementedError
@@ -0,0 +1,6 @@
1
+ """
2
+ Shared domain components.
3
+
4
+ This package contains shared entities, constants, and utilities
5
+ used across different parts of the domain layer.
6
+ """
@@ -0,0 +1,18 @@
1
+ """
2
+ Shared entity classes and constants.
3
+
4
+ This module defines shared entities and constants used across
5
+ different parts of the application.
6
+ """
7
+
8
+
9
+ class StorageProvider:
10
+ """
11
+ Constants representing supported cloud storage providers.
12
+
13
+ This class defines string constants for each supported storage provider,
14
+ which are used throughout the application to identify provider types.
15
+ """
16
+
17
+ S3 = "S3"
18
+ GoogleCloudStorage = "Google Cloud Storage"