sbmpbox 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.

Potentially problematic release.


This version of sbmpbox might be problematic. Click here for more details.

sbmpbox/__init__.py ADDED
@@ -0,0 +1,2 @@
1
+
2
+ __version__ = "0.1.0"
sbmpbox/cli.py ADDED
@@ -0,0 +1,57 @@
1
+
2
+ from importlib import resources
3
+ from pathlib import Path
4
+
5
+
6
+ def main():
7
+
8
+ print("\n========================")
9
+ print(" SBMPBOX")
10
+ print("========================")
11
+
12
+ codes_folder = resources.files("sbmpbox").joinpath("codes")
13
+
14
+ files = sorted(
15
+ file for file in codes_folder.iterdir()
16
+ if file.is_file() and file.name.endswith(".txt")
17
+ )
18
+
19
+ if not files:
20
+ print("\nNo code files available!")
21
+ return
22
+
23
+ print("\nAvailable Python Codes:\n")
24
+
25
+ for index, file in enumerate(files, start=1):
26
+ print(f"{index}. {file.name}")
27
+
28
+ print(f"{len(files) + 1}. Exit")
29
+
30
+ choice = input("\nEnter your choice: ")
31
+
32
+ if choice.isdigit():
33
+
34
+ choice = int(choice)
35
+
36
+ if 1 <= choice <= len(files):
37
+
38
+ selected_file = files[choice - 1]
39
+
40
+ code = selected_file.read_bytes()
41
+
42
+ Path(selected_file.name).write_bytes(code)
43
+
44
+ print("\nDownloaded:", selected_file.name)
45
+
46
+ elif choice == len(files) + 1:
47
+ print("\nThank you for using SBMPBOX!")
48
+
49
+ else:
50
+ print("\nInvalid choice!")
51
+
52
+ else:
53
+ print("\nPlease enter a valid number!")
54
+
55
+
56
+ if __name__ == "__main__":
57
+ main()
@@ -0,0 +1,45 @@
1
+ Metadata-Version: 2.4
2
+ Name: sbmpbox
3
+ Version: 0.1.0
4
+ Summary: A Python code collection and downloader
5
+ Author: Jeel Savaliya
6
+ License-Expression: MIT
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+
10
+
11
+ # SBMPBOX 📦
12
+
13
+ ### Your Python CodeBox
14
+
15
+ SBMPBOX is a Python-based code downloader that allows
16
+ users to access and download individual Python code
17
+ files from a centralized GitHub repository.
18
+
19
+ ## Features
20
+
21
+ - Download individual Python code files.
22
+ - Simple command-line interface.
23
+ - Access code from any computer.
24
+ - Powered by Python and GitHub.
25
+
26
+ ## Installation
27
+
28
+ ```bash
29
+ pip install sbmpbox
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ```bash
35
+ sbmpbox
36
+ ```
37
+
38
+ ## Developer
39
+
40
+ Jeel Savaliya
41
+
42
+ ## License
43
+
44
+ MIT License
45
+
@@ -0,0 +1,7 @@
1
+ sbmpbox/__init__.py,sha256=fceR-ISBrdAHEk65E6i_ra86S7J_KivUUrLd2aGJd2I,23
2
+ sbmpbox/cli.py,sha256=pco2WYiXOttjCrLHUGfyOPsxECz-BK_JRT_QlDbqqN0,1215
3
+ sbmpbox-0.1.0.dist-info/METADATA,sha256=meSzvDO6PH7vpuJPTJ1U75NSrl-g1sBfpzvl97PmjlM,692
4
+ sbmpbox-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
5
+ sbmpbox-0.1.0.dist-info/entry_points.txt,sha256=z__GDyLgkyG4bcPJdsL9a9lutlY00yMZuGjguLvE3_8,45
6
+ sbmpbox-0.1.0.dist-info/top_level.txt,sha256=ALPMeNgdcm1nKvGz-WQjCuA0J8s8-sSkeQmHEk9eAC4,8
7
+ sbmpbox-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ sbmpbox = sbmpbox.cli:main
@@ -0,0 +1 @@
1
+ sbmpbox