Skip to main content

Libreria per ordinare testi stringhe e liste

Project description

catalogpy :)

PyPI Version Total Downloads License

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"]
elencation(words, min=4, max=6)
# 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

catalogpy-1.6.2.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

catalogpy-1.6.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file catalogpy-1.6.2.tar.gz.

File metadata

  • Download URL: catalogpy-1.6.2.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for catalogpy-1.6.2.tar.gz
Algorithm Hash digest
SHA256 09507ac5e759d43c292d219767ff023e01ba36ec78bb4ae2af004fc7a1a2320a
MD5 8630966d567ec65d7964bab7e21d83f2
BLAKE2b-256 27bed7b5406f7d9775b7171b1956dff5cb5564fa71a53ff9976c82c3e66622a4

See more details on using hashes here.

File details

Details for the file catalogpy-1.6.2-py3-none-any.whl.

File metadata

  • Download URL: catalogpy-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for catalogpy-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1ff0d357690375adedf7aab6e43b80343377eae2869fe693cba256b33070bd94
MD5 4bf241ea8b1ce1c1bca5b1462b540326
BLAKE2b-256 b546acdd4391c6bf2ba3dac8b4cf68d416464d0820feae391d3c5e497a1f07bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page