Libreria per ordinare testi stringhe e liste
Project description
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!
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.
words = ["mela", "kiwi", "banana", "arancia"]
result = elencation(words, min_len=4, max_len=6)
print(result)
# Output:
# kiwi
# mela
Ordina le parole dalla più lunga alla più corta.
words = ["cat", "elephant", "dog", "bird"]
result = order_longer(words)
print(result)
# Output:
# elephant
# bird
# cat
# dog
Ordina le parole dalla più corta alla più lunga.
words = ["cat", "elephant", "dog", "bird"]
result = order_shortest(words)
print(result)
# Output:
# cat
# dog
# bird
# elephant
Restituisce un elenco di parole uniche, rimuovendo i duplicati. Le parole vengono filtrate e poi ordinate.
words = ["gatto", "cane", "gatto", "topo", "cane"]
result = unique_words(words)
print(result)
# Output:
# cane
# gatto
# topo
#Licenza Questo progetto è distribuito sotto licenza GNU GPL v3. Consulta file LICENSE per dettagli.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file catalogpy-1.5.2.tar.gz.
File metadata
- Download URL: catalogpy-1.5.2.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec24f6fa0bff1262ae8ec09119a43e2c23ffb00be71f17725f9931e11570afe6
|
|
| MD5 |
4ea7a4541d5af9baf8935182c204298a
|
|
| BLAKE2b-256 |
6d3738af0db455da1647fe1649d94bff519f4fc47aa23877049c811172a9b1c6
|
File details
Details for the file catalogpy-1.5.2-py3-none-any.whl.
File metadata
- Download URL: catalogpy-1.5.2-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f1b57784248e71b40ba1474d4f7b49b5d60660e7f6f5129e3cf5a49477b7391
|
|
| MD5 |
f57f25d57159eb1ee6f95514b58711f1
|
|
| BLAKE2b-256 |
b8151fed3121310e062b27948d08ee7a697bf192aeae895ec0a39f25b7fd83fa
|