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, min, max, text) 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']

ordination(start, words, min, max, text) Restituisce una lista di stringhe in ordine alfabetico numerandole. Modificando il parametro start è possibile decidere da che numero iniziare a numerare la lista di parole di default è impostato su 1.

words = ["mela, "kiwi", "banana", "arancia"]
print(ordination(4, words, min=4, max=6)
# Output:
# ['4. kiwi', '5. mela']

unique_words(words, min, max, text) Restituisce un elenco di parole uniche, rimuovendo i duplicati. Le parole vengono filtrate e poi ordinate.

words = ["gatto", "cane", "gatto", "topo", "cane"]
unique_words(words)
# 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.9.2.tar.gz (16.4 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.9.2-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for catalogpy-1.9.2.tar.gz
Algorithm Hash digest
SHA256 57b1f9d8598d4e60d8902c65e29015839471b695401b0d08d052b22a74d34d52
MD5 7cfc8994878c0c7f232065394a40a2c6
BLAKE2b-256 edefa7407a0b32d573eeb8485b449dffb2abc529bd1b97c20a1316d99bf90bc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: catalogpy-1.9.2-py3-none-any.whl
  • Upload date:
  • Size: 16.7 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.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 72041f87dab5f3331c2f460cff28c09d3cf7a2a7b21e16163928f0c64d310c5d
MD5 faf7205a61cb5b3ee328d9cfc08a3578
BLAKE2b-256 7a36d3e2ca4e92d07d416f1ed8b7ef84c6231ef97d0aa5e791b39e92312c8e76

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