semvec/pypi-packages huggingface dataset:
hyphenfrac 2.0
A basic utility designed to prettify and visualize fractions.
License: MIT
Requires Python: >=3.7

# hyphenfrac
![Pepy Total Downlods](https://img.shields.io/pepy/dt/hyphenfrac)
![PyPI - Version](https://img.shields.io/pypi/v/hyphenfrac)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hyphenfrac)

A basic utility designed to prettify and visualize fractions.

## Usage
### Prerequisites
- A terminal accepting ANSI codes

### Displaying Fractions
Displaying a prettified fraction from a number:
```python
>>> import hyphenfrac, random
>>> hyphenfrac.visualize_number(random.randint(1, 100)/random.randint(1, 100))
20
-- + 1
49
>>>
```
You may also assign this value to a variable:
```python
>>> import hyphenfrac
>>> foo = hyphenfrac.make_pretty(1, 10)
>>> print(foo)
1
--
10
>>>
```
You can optionally use a dash instead of a hyphen-minus character for a vinculum:
```python
>>> import hyphenfrac
>>> hyphenfrac.visualize("ln(x) - ln(y)", "x - y", hyphen=False)
ln(x) - ln(y)
―――――――――――――
    x - y
>>>
```

### Creating Fractions
Fractions could also be used as their own object:
```python
>>> from hyphenfrac import Fraction
>>> myFrac = Fraction(numerator="Vd", denominator="CL", operation="", whole="ln(2)", hyphen=False)
>>> myFrac.display()
Vd
――  ln(2)
CL
>>> isinstance(myFrac, Fraction)
True
>>>
```
pamqualeLabsTasks 0.0.1
Python package for lab tasks
License: MIT
Keywords: lab tasks

Mates, you are all welcome to contribute to reaching the 5 mark.

## Contributors
- pamquale

## Documentation

### Installation
```
pip install pamqualeLabsTasks
```
### Usage
Specify the lab number and the task number to get the result.
```python
from pamqualeLabsTasks.labX import LabX
```
In the code you can call the class using the following pattern:
```python
def taskX(value):
    return LabN(value).taskX()
```



Change Log
==========

0.0.1 (05/04/2024)
------------------
- Initial release