semvec/pypi-packages huggingface dataset:
MenuBuilder 1.2
A simple commandline menu builder
Requires Python: <=3.9

# Example Package

This is a pretty easy to use package 

first use import MenuBuilder

using Menu(menuName,menuitems,options,clear,colours)


for menuName pass a string with the name to be displayed at the top of the menu
for menuitems pass a list of options to be displayed on the menu
for options pass a list of functions such as ["op1()","op2()","op3()"]
for clear pass a boolean value to turn clear terminal on or off.
for Colours pass a list with a minimum of two items the first two required are bools the first says weather you want colours and the second is another bool that says weather you want all one colour of all different the next is the menu colour/title cover the rest are one for each item in the list.
android-toast 0.1.0
Native toast for android with python
Requires Python: >=3
Keywords: toast android kivy kivymd Android toast python-for-android python

# Toast Android

Module that allows you to create a native toast for android with python, 
this module must be used with pydroid3, kivy and kivymd, you can create 
a kivy app and use toast_android,This module allows you to change the 
position of the toast to wherever you want with just passing some parameters, 
you can also choose the duration of the toast, below you will see an example of use.
## Example:
```
 from androidtoast import toast
 from kivymd.app import MDApp
 from kivy.lang import Builder
 from kivy.uix.screenmanager import ScreenManager
 from kivymd.uix.screen import MDScreen
    
    
    
    
 Builder.load_string('''
 <Example>
 
     MDFlatButton:
         text:"My Toast"
         pos_hint:{"center_x": .5, "center_y": .05}
         on_press:root.show_toast()
 ''')
 
    
 class Example(MDScreen):     
     def show_toast(self):
         toast("hello world", True, 80, 200, 0) 
                        
            
        	
 class Iniciar(MDApp):     
     def build(self):
         pantalla = ScreenManager()
         screen = Example(name="one")
         pantalla.add_widget(screen)
         return pantalla
    
 Iniciar().run() 
    
```
## Indications:
    """
        :param text: text to be displayed in the toast;
        :param short_duration:  duration of the toast, if `True` the toast
               will last 2.3s but if it is `False` the toast will last 3.9s;
        :param gravity: refers to the toast position, if it is 80the toast will
               be shown below, if it is 40 the toast will be displayed above;
        :param y: refers to the vertical position of the toast;
        :param x: refers to the horizontal position of the toast;

        Important: if only the text value is specified and the value of
        the `gravity`, `y`, `x` parameters is not specified, their values ​​will
        be 0 which means that the toast will be shown in the center.
        """

This example can be used in Pydroid3 and in a kivy / kivymd app


## installation:
```
pip3 install android-toast
```
webview-android 0.10
Simple WebView for android with python
Requires Python: >=3
Keywords: webview android kivy kivymd Android WebView python-for-android python

# webview

Create WebViews for android with this little python module (still in development).

To create a webview with python for android you need to use kivy / kivymd 
or pydroid3, you can create a webview app with kivy like this:

## Examples:
```
from kivy.uix.widget import Widget
from kivymd.app import MDApp
from webview import WebView
from kivy.lang.builder import Builder
from kivymd.uix.button import MDFlatButton
from kivymd.uix.screen import MDScreen

Builder.load_string("""
<MyWebView>
    MDFlatButton:
        text: "Push"
        pos_hint: {"center_x": .5, "center_y": .4}
        on_press: root.Push()
""")

class MyWebView(MDScreen):
    def Push(self):
        WebView("https://www.google.com")
     

class MyWebApp(MDApp):
    def build(self):
        return MyWebView()


if __name__ == '__main__':
    MyWebApp().run()
    
```

This example can be used in Pydroid3 and in a kivy / kivymd app


## installation:
```
pip3 install webview-android
```
toast-android 0.1
Native toast for android with python
Requires Python: >=3
Keywords: toast android kivy kivymd Android toast python-for-android python

# Toast Android

Module that allows you to create a native toast for android with python, 
this module must be used with pydroid3, kivy and kivymd, you can create 
a kivy app and use toast_android,This module allows you to change the 
position of the toast to wherever you want with just passing some parameters, 
you can also choose the duration of the toast, below you will see an example of use.
## Example:
```
 from toast_android.androidtoast import toast
 from kivymd.app import MDApp
 from kivy.lang import Builder
 from kivy.uix.screenmanager import ScreenManager
 from kivymd.uix.screen import MDScreen
    
    
    
    
 Builder.load_string('''
 <Example>
 
     MDFlatButton:
         text:"My Toast"
         pos_hint:{"center_x": .5, "center_y": .05}
         on_press:root.show_toast()
 ''')
 
    
 class Example(MDScreen):     
     def show_toast(self):
         toast("hello world", True, 80, 200, 0) 
                        
            
        	
 class Iniciar(MDApp):     
     def build(self):
         pantalla = ScreenManager()
         screen = Example(name="one")
         pantalla.add_widget(screen)
         return pantalla
    
 Iniciar().run() 
    
```
## Indications:
    """
        :param text: text to be displayed in the toast;
        :param short_duration:  duration of the toast, if `True` the toast
               will last 2.3s but if it is `False` the toast will last 3.9s;
        :param gravity: refers to the toast position, if it is 80the toast will
               be shown below, if it is 40 the toast will be displayed above;
        :param y: refers to the vertical position of the toast;
        :param x: refers to the horizontal position of the toast;

        Important: if only the text value is specified and the value of
        the `gravity`, `y`, `x` parameters is not specified, their values ​​will
        be 0 which means that the toast will be shown in the center.
        """

This example can be used in Pydroid3 and in a kivy / kivymd app


## installation:
```
pip3 install toast-android
```
pps-emu 2.22
A software based Raspberry Pi type simulator to aid in teaching Python
Keywords: ITN 160

# pps_emu
The emulator code to be imported into a student's program.  Works with the pps_gui simulator package.  Together, they give a student an environment where they can get readings from a simulated hardware device, maybe like a Raspberry Pi, maybe not.  Either way, students will have access to check for button pushes (4 buttons), turn LED lights on / off (red, yellow, green, and blue), detect light / dark, several sliders for temperature, humidity and pressure, and finally, they can ring an incredibly obnoxious buzzer. This application is based on work by primeteacher.
pps-gui 2.25
A software based Raspberry Pi type simulator to aid in teaching Python, requires pps_emu.
Keywords: ITN 160

# pps_gui
The emulator code to be imported into a student's program.  Works with the pps_gui simulator package.  Together, they give a student an environment where they can get readings from a simulated hardware device, maybe like a Raspberry Pi, maybe not.  Either way, students will have access to check for button pushes (4 buttons), turn LED lights on / off (red, yellow, green, and blue), detect light / dark, several sliders for temperature, humidity and pressure, and finally, they can ring an incredibly obnoxious buzzer. This application is based on work by primeteacher.
orionframework 1.0.67
A python companion library for the Orion Framework

# Orion Framework

Python library companion for the Orion Framework

## How to build from source

```bash
git clone ...
cd orionframework
python3 -m venv .python-env
source .python-env/bin/activate
pip install -r requirements.txt

#
# at least once to set up all your libraries needed to build
#
source scripts/pre-build.sh

#
# actually build the local package
#
source scripts/build.sh

```

## PYPI

To set credentials to publish you may run the following command:

python3 -m keyring set https://upload.pypi.org/legacy/ orionframework
polog-socket-handler 0.0.1
Handler для polog

# Socket handler for the polog lib

Обработчик для библиотеки polog. Состоит из двух компонентов: клиента и сервера. Может использоваться для проксирования отправки логов с клиентского сервера на какой-то иной. Клиентская часть обработчика подключается в polog как любой другой обработчик: 


```python
from polog import config
from socket_handler import socket_sender


HOST = '127.0.0.1'
PORT = 65432

config.add_handlers(socket_sender(HOST, PORT))
```

Серверная часть обработчика получает логи, отправляемые клиентской частью, и может как-то их обрабатывать. Например, к ней можно подключить любой иной обработчик polog. Подключаемый обработчик не будет знать о том, что логируемый код выполняется на другой машине или в другом процессе. Такой подход позволяет вынести ресурсоёмкие операции сохранения / пересылки логов с машины, где непосредственно выполняется бизнес-код, на машину, которую не так жалко.

Пример клиента:


```python
# В дополнении к коду выше, обработчик уже должен быть подключён.
from polog import flog


@flog
def logged_func(arg):
    return arg

logged_func("test polog socket handler") # По результату выполнения функции на сервер будет отправлено сообщение с логом.
```

Пример сервера:


```python
from polog.handlers.smtp.sender import SMTP_sender # Пакет polog уже должен быть установлен.
from socket_handler import Server


HOST = '127.0.0.1'
PORT = 65432

print("The Polog Socket Server started.")
server = Server(HOST, PORT, handlers=[SMTP_sender('from_me42@yandex.com', 'JHjhhb87TY(*Ny08z)', 'smtp.yandex.ru', 'to_me@yandex.ru')])
server.start()
```