semvec/pypi-packages huggingface dataset:
pypat 0.6.1
A Python library that makes playing audio simple.

# pypat
[![pypi](https://img.shields.io/pypi/v/pypat.svg)](https://pypi.org/project/pypat)
![cicd](https://github.com/tnewman/pat/workflows/PAT%20CI/CD/badge.svg)

pypat is a Python library that makes playing audio simple. pypat uses FFmpeg to provide 
robust support for virtually any audio format and SDL2 to play back audio.

## Prerequisites
Install [Prerequisites](https://github.com/tnewman/pat#Prerequisites) before installing.

## Install
```bash
pip3 install pypat
```

## Example
```python
>>> import pypat

# Play a file
>>> pypat.play('amerika.mpga')

# Skip the current file
>>> pypat.skip()

# Pause audio playback
>>> pypat.pause()

# Resume audio playback
>>> pypat.resume()
```
DoggoMenus 1.0.3
A basic console menu system for Python!
Requires Python: >=3.6

# DoggoMenus

A basic console menu system for Python!

[![PyPI](https://img.shields.io/pypi/v/doggomenus)](https://pypi.org/project/DoggoMenus/)
[![PyPi - Downloads](https://img.shields.io/pypi/dm/doggomenus)](https://pypi.org/project/DoggoMenus/)
[![GitHub issues](https://img.shields.io/github/issues/Taromaruu/DoggoMenus)](https://github.com/Taromaruu/DoggoMenus/issues)
[![License](https://img.shields.io/github/license/Taromaruu/DoggoMenus)](https://github.com/Taromaruu/DoggoMenus/blob/main/LICENSE)

## Command
This makes a command for a SelectionMenu
```python
import doggomenus

cmd = doggomenus.Command("Title / Name here", function_here)
# Optional Params
# Pause: Pause when command has finished executing
```

## SelectionMenu
The selection menu. Valid menu items are Command and SelectionMenu
```python
import doggomenus

cmd = doggomenus.Command("Say hi", lambda: print("Hello there!"), pause=True)

menu = doggomenus.SelectionMenu(cmd)
# Optional Params
# title - Set a title for the menu. This title will be used like a Command title if the SelectionMenu is a Selection menu item.
# exit_cmd - Toggle the exit option for the menu. Defaults to True.

menu.run()
```

## Example
```python
import doggomenus

x = 0

def atx():
    global x
    x += 1

def aatx():
    am = input("Amount > ")

    try:
        am = int(am)
    except ValueError:
        print("Not a number!")
        return

    global x
    x += am
    print("Done!")

def stuck():
    return

var1 = doggomenus.Command("Add +1 to x", atx)
var2 = doggomenus.Command("Add a amount to x", aatx, pause=True)
showvar = doggomenus.Command("Show x", lambda: print(x), pause=True)
menuvar = doggomenus.SelectionMenu(var1, var2, showvar, title="Variable Testing")

stuckcmd = doggomenus.Command("You are stuck... Have fun :)", stuck)
stuckmenu = doggomenus.SelectionMenu(stuckcmd, title="???", exit_cmd=False)

menu = doggomenus.SelectionMenu(menuvar, stuckmenu, title="Example menu")
menu.run()
```

# Build from source
On Windows you can run `install.bat` in cmd

On Linux and Mac you can run `install.sh` in a terminal