Skip to main content

Libreria per ordinare testi stringhe e liste

Project description

catalogpy :)

PyPI Version Total Downloads License

Chose the language

Documentazione in italiano

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(ord, words, min, max, text)

Restituisce un elenco di parole uniche, rimuovendo i duplicati. Le parole vengono filtrate e se vuoi usando il parametro ord puoi decidere se ordinare in ordine alfabetico le parole di default il parametro è su False.

words = ["gatto", "cane", "gatto", "topo", "cane"]
unique_words(True, words)
# Output:
# ['cane', 'gatto', 'topo']

#Licenza Questo progetto è distribuito sotto licenza GNU GPL v3. Consulta file LICENSE per dettagli.


Documentation in english

catalogpy is a library that allow to you to order your string, and mantain clean your code!

Installation

How to dowload it? It's simple just use pip!

pip install catalogpy

Funtionalities and utility

Each function is designed to execute an a specific operation. You can import and use only the function that you need.

elencation(words, min, max, text)

Order the word in alphabetical order and return them into a string, you can also filter the word by lenght.

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

ordination(start, words, min, max, text)

Return a list of string in alphabetical order numbering them. If you modify the start parameter it's possible modify from what number start the counter that is 1 in default.

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

unique_words(ord, words, min, max, text)

Return an list of unique words remove al the duplicates. The words are filtered and if you want with the ord parameter you can order in alphabetical order the words, the parameter is False as default.

words = ["gatto", "cane", "gatto", "topo", "cane"]
unique_words(True, words)
# Output:
# ['cane', 'gatto', 'topo']

#License

This project is under the GNU GPL v3 license. Read then file LICENSE for more info.

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.4.tar.gz (16.9 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.4-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: catalogpy-1.9.4.tar.gz
  • Upload date:
  • Size: 16.9 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.4.tar.gz
Algorithm Hash digest
SHA256 2d924cf484806e01c1cd32dbd551221bc05ee24c4e9d15a6a6362a71c25e6512
MD5 fdb7f596c564a196ddc819e8cc089cc5
BLAKE2b-256 8e52397680f6bda29f062862550e57ac4287ebe705eb938259ad265061b80b34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: catalogpy-1.9.4-py3-none-any.whl
  • Upload date:
  • Size: 17.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a0479cc5a3611f77a14d5088d8a5c68ed63b4ba66aac04be49af7cb2d98afa3e
MD5 68b99b56805f428d34504baee0b84762
BLAKE2b-256 10aaebfe3ce07b8fbdb1f71ba3cc0bf0b61e740867ce67bb1a742099273165a7

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