Metadata-Version: 2.5
Name: snackutils
Version: 0.1.5
Summary: Tiny, dependency-free utilities that might save you a few lines.
Project-URL: Homepage, https://github.com/techrul/snackutils
Author: Techrul
License-Expression: MIT
License-File: LICENSE
Keywords: 8ball,helpers,os,tiny,utilities
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# Snackutils

Tiny utilities that could save you a few lines  
[Github](https://github.com/Techrul/snackutils)  
[PyPi](https://pypi.org/project/snackutils/)
## Install

```bash
pip install snackutils
```

## Utilities
Want a utility? Suggest it in [issues](https://github.com/techrul/snackutils/issues)!

| Function | What it does |
| --- | --- |
| `eight_ball()` | Returns a random magic 8-ball answer |
| `flip_coin()` | Returns `"Heads"` or `"Tails"` |
| `roll_dice()` | Rolls a six-sided die, returns 1 to 6 |
| `detect_os()` | Returns your OS name, like `"Windows"`, `"MacOS"`, or `"Linux"` |
| `average(a, b)` / `mean(a, b)` | Average of two numbers |
| `average_list(numbers)` / `mean_list(numbers)` | Average of a list of numbers |
| `percent_choose(a,b)` | Chooses 1(a) or 2(b) using the percent given (a and b). Goes up to a float of one decimal (rounds if not) and a and b has to add to 100 or it doesn't work properly |
| `better_sleep(a, b)` | Sleep but you can use units (seconds, minutes, hours, days)|
| `ai_detector(text)` | Detects if text was made with AI with 100% accuracy (checks if there's em dashes)|
| `lazy_randint(num)` | Gives you a random integer from 1 to num, saves you like 1 key press and all the control|
| `unhelpful_friend(question)` | Your friend gives you unhelpful answers. Input is optional as it doesn't do anything|



## Requests

Bug? Issue? Feature request? Submit it in [issues](https://github.com/techrul/snackutils/issues)!

## License

[MIT](https://github.com/Techrul/snackutils/blob/main/LICENSE)
