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

Potentially problematic release.


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

sbmpbox-0.1.0/PKG-INFO ADDED
@@ -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,36 @@
1
+
2
+ # SBMPBOX 📦
3
+
4
+ ### Your Python CodeBox
5
+
6
+ SBMPBOX is a Python-based code downloader that allows
7
+ users to access and download individual Python code
8
+ files from a centralized GitHub repository.
9
+
10
+ ## Features
11
+
12
+ - Download individual Python code files.
13
+ - Simple command-line interface.
14
+ - Access code from any computer.
15
+ - Powered by Python and GitHub.
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ pip install sbmpbox
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ ```bash
26
+ sbmpbox
27
+ ```
28
+
29
+ ## Developer
30
+
31
+ Jeel Savaliya
32
+
33
+ ## License
34
+
35
+ MIT License
36
+
@@ -0,0 +1,24 @@
1
+
2
+ [build-system]
3
+ requires = ["setuptools>=77"]
4
+ build-backend = "setuptools.build_meta"
5
+
6
+ [project]
7
+ name = "sbmpbox"
8
+ version = "0.1.0"
9
+ description = "A Python code collection and downloader"
10
+ readme = "README.md"
11
+ requires-python = ">=3.10"
12
+ license = "MIT"
13
+ authors = [
14
+ {name = "Jeel Savaliya"}
15
+ ]
16
+
17
+ [project.scripts]
18
+ sbmpbox = "sbmpbox.cli:main"
19
+
20
+ [tool.setuptools.packages.find]
21
+ where = ["src"]
22
+
23
+ [tool.setuptools.package-data]
24
+ sbmpbox = ["codes/*.txt"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,2 @@
1
+
2
+ __version__ = "0.1.0"
@@ -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,9 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/sbmpbox/__init__.py
4
+ src/sbmpbox/cli.py
5
+ src/sbmpbox.egg-info/PKG-INFO
6
+ src/sbmpbox.egg-info/SOURCES.txt
7
+ src/sbmpbox.egg-info/dependency_links.txt
8
+ src/sbmpbox.egg-info/entry_points.txt
9
+ src/sbmpbox.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ sbmpbox = sbmpbox.cli:main
@@ -0,0 +1,2 @@
1
+ codes
2
+ sbmpbox