ItalianDictionary
This package searches for word meanings on dizionario-italiano.
Install
pip install italian-dictionary
Usage
import italian_dictionary
# Use this to get only the meaning
definition = italian_dictionary.get_definition('cane', limit=3, all_data=False)
#Use this to get all datas of a word (all_data default is True)
datas = italian_dictionary.get_definition('albero')
Complete data response
This function will return a dictionary like this:
{
'sillabe': ['al', 'be', 'ro'],
'lemma': 'Ã lbero',
'pronuncia': ' /ˈalbero/',
'grammatica': ['sostantivo maschile'],
'definizione': ['pianta con fusto alto, legnoso, provvisto di rami nella parte superiore',
"MARINERIA -- palo che regge i pennoni con le vele e tutta l'attrezzatura",
'MECCANICA -- parte rotante, generalmente cilindrica, che, in una macchina, ha la funzione di trasmettere potenza meccanica da un organo a un altro'],
'locuzioni': ["linea d'asse o d'alberi di una nave",
'ad albero che cade dà gli dà gli',
'svasare un albero',
'albero portaelica',
'albero a calcese',
'albero castalio',
'albero matricino',
'alberi a mezzovento',
'albero optronico',
'albero pizzuto',
'andare agli alberi pizzuti',
'alberi rinterzati',
'albero del sego']
}
Tests
To run tests you need pytest
When in project folder:
python -m pytest
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file italian_dictionary-1.5.tar.gz.
File metadata
- Download URL: italian_dictionary-1.5.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c1a9462b41c1422f8dbd197a93e2b2d32478a56aa996d946131aac828f67158
|
|
| MD5 |
699e279756d790dd521de2892755868d
|
|
| BLAKE2b-256 |
7e386c2f539e00c24dd08fc7edb5efdf92d56212cded386243126ee36c160b70
|