Metadata-Version: 2.4
Name: catalogpy
Version: 1.5.1
Summary: Libreria per ordinare testi stringhe e liste
Home-page: https://github.com/Gabinan890/catalogpy
Author: Gabriele Della Fazia Ristori
Author-email: gabriele.ristori.0110@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary


# catalogpy :)

[![PyPI Version](https://img.shields.io/pypi/v/catalogpy)](https://pypi.org/project/catalogpy/)
[![Total Downloads](https://static.pepy.tech/badge/catalogpy)](https://pepy.tech/project/catalogpy)
[![License](https://img.shields.io/pypi/l/catalogpy)](https://pypi.org/project/catalogpy/)

catalogpy è una libreria che ti permette di ordinare le tue stringhe, e mantenere il tuo codice più pulito!

## Installazione
Come installarlo? Semplice basta usare **pip**!
```bash
pip install catalogpy
```
Funzionalità e Utilizzo
Ogni funzione è progettata per eseguire un'operazione specifica. Puoi importare e usare solo le funzioni di cui hai bisogno.

```elencation(words=None, min_len=0, max_len=inf)```
Ordina le parole in ordine alfabetico e le restituisce in una stringa, filtrate per lunghezza.

```from catalogpy.catalog import elencation

words = ["mela", "kiwi", "banana", "arancia"]
result = elencation(words, min_len=4, max_len=6)
print(result)
# Output:
# kiwi
# mela
```

```order_longer(words=None, min_len=0, max_len=inf)
Ordina le parole dalla più lunga alla più corta.
```

```from catalogpy.catalog import order_longer

words = ["cat", "elephant", "dog", "bird"]
result = order_longer(words)
print(result)
# Output:
# elephant
# bird
# cat
# dog
```

```order_shortest(words=None, min_len=0, max_len=inf)
Ordina le parole dalla più corta alla più lunga.
```

```from catalogpy.catalog import order_shortest

words = ["cat", "elephant", "dog", "bird"]
result = order_shortest(words)
print(result)
# Output:
# cat
# dog
# bird
# elephant
```

```unique_words(words=None, min_len=0, max_len=inf)
Restituisce un elenco di parole uniche, rimuovendo i duplicati. Le parole vengono filtrate e poi ordinate.
```

```from catalogpy.catalog import unique_words

words = ["gatto", "cane", "gatto", "topo", "cane"]
result = unique_words(words)
print(result)
# Output:
# cane
# gatto
# topo
```
