semvec/pypi-packages huggingface dataset:
libunn 0.2
Misc scripts that I write
Requires Python: >=3.6


# libunn

Misc python scripts that i do not find anywhere to put them in

**Note: All of the scripts in this repository are written by me**



## Scripts

### Spinner
#### About:
Simple spinning bar that uses **threading** for running on the background
#### Usage:
```python
import libunn, time
libunn.spinner.start('Hello!')
time.sleep(2)
libunn.spinner.stop()
```
### Phrases

#### About:
Phrases is a simple module that manages a list (**phrases**), Upon start, Phrases contains 10 basic phrases, you can add more phrases, or delete them if you want, It is not for serious projects
#### Usage:
```python
import libunn
print(libunn.phrases.rand())
libunn.phrases.add("Hello, World!")
print(libunn.phrases.rand())
libunn.phrases.rm("Hello, World!")
```
### Dice
#### About:
Roll a 6-faced dice
#### Usage:
```python
import libunn
libunn.dice.roll() # Roll one dice
libunn.dice.rollMultiple(2) # Roll two dices
```
### Log
#### About:
Self-explainatory, a log system with 6 Different modes
#### Usage:
```python
import libunn
log = libunn.log.Log('example.log')
log.XXXX("Sample Text") # Replace XXXX with one of the available Modes

```
#### Modes
- **0** Info
- **1** Success
- **2** Ok
- **3** Warn
- **4** Error
- **5** Fatal
### Epoch
#### About:
Calculate the **Unix** epoch (1970-1-1 00:00:00 UTC) and the **Unn** epoch (2025-1-1 00:00:00 UTC)
#### Usage:
```python
import libunn
while True:
  print(f'\rUnix: {libunn.epoch.unix()} | Unn: {libunn.epoch.unn()}', end="")
```
## Installation

Install libunn with pip

```bash
  pip install libunn
```
PyBMICalculator 0.1.0
A simple BMI Calculator that calculates and categorizes BMI based on weight and height.

# PyBMICalculator

**PyBMICalculator** is a simple Python package to calculate Body Mass Index (BMI) and categorize it based on health standards.

## Installation

To install **PyBMICalculator**:

```bash
pip install PyBMICalculator
```

## Usage

```bash
from PyBMICalculator import get_bmi_category

weight = 70  
height = 1.75

result = get_bmi_category(weight, height)
print(result)
```