Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

Kpickmenu

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Kpickmenu

Python module for creating menus

  • 1.0
  • PyPI
  • Socket score

Maintainers
1

Kpick

Python module for creating menus.

Установка

Для установки используйте следующую команду:

pip install Kpick

Basic Example

from Kpick import create_menu

menu_options = ['Option 1', 'Option 2', 'Option 3']
selection = create_menu(menu_options)

print(f'Вы выбрали: {selection_index}')

Advanced Example

import Kpick  

class Menu():
    def __init__(self) -> None:
        self.options = ["WireLessAttacl", "Wifi", "Hacking"]
        self.selected_index = None

    def main_menu(self):
        self.selected_index = Kpick.run_menu(self.options)

        if self.selected_index == 0:
            self.first()
        elif self.selected_index == 1:
            self.second()
        elif self.selected_index == 2:
            print("You selected Option 3.")

    def first(self):
        opt2 = ["Jammer", "Flood", "WPA PIN HACK","exit"]
        slt = Kpick.run_menu(opt2)
        
        if slt == 0:
            return(self.first())
        elif slt == 1:
            return(self.first())
        elif slt == 2:
            return(self.first())
        elif slt == 3:
            return(self.main_menu())

    def second(self):
        opt3 = ["Monitoring Mode", "Scan Networks", "exit"]
        slt2 = Kpick.run_menu(opt3)

        if slt2 == 0:
            return(self.second())
        elif slt2 == 1:
            return(self.second())
        elif slt2 == 2:
            return(self.main_menu())

menu = Menu()
menu.main_menu()

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc