ft-menu 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.
ft_menu-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.3
2
+ Name: ft-menu
3
+ Version: 0.1.0
4
+ Summary: create dispatch table function
5
+ Requires-Python: >=3.10
6
+ Description-Content-Type: text/markdown
7
+
8
+ ### ft_menu
9
+
10
+ This is a test package from the book Python Workout for excercise E37 B2.
@@ -0,0 +1,3 @@
1
+ ### ft_menu
2
+
3
+ This is a test package from the book Python Workout for excercise E37 B2.
@@ -0,0 +1,14 @@
1
+ [project]
2
+ name = "ft-menu"
3
+ version = "0.1.0"
4
+ description = "create dispatch table function"
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
7
+ dependencies = []
8
+
9
+ [project.scripts]
10
+ ft-menu = "ft_menu:main"
11
+
12
+ [build-system]
13
+ requires = ["uv_build>=0.12.5,<0.13.0"]
14
+ build-backend = "uv_build"
@@ -0,0 +1,14 @@
1
+ [project]
2
+ name = "ft-menu"
3
+ version = "0.1.0"
4
+ description = "create dispatch table function"
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
7
+ dependencies = []
8
+
9
+ [project.scripts]
10
+ ft-menu = "ft_menu:main"
11
+
12
+ [build-system]
13
+ requires = ["uv_build>=0.12.5,<0.13.0"]
14
+ build-backend = "uv_build"
@@ -0,0 +1 @@
1
+ from .menu import menu
@@ -0,0 +1,13 @@
1
+ def menu(*options):
2
+
3
+ while True:
4
+
5
+ options_string = '/'.join(sorted(options))
6
+
7
+ choice = input(f'Enter a choice from ({options_string}): ')
8
+
9
+ if choice in options:
10
+
11
+ options[choice]()
12
+
13
+ print("Not a valid option")