A package which retrieves meaning and other informations about italian words.
Project description
[![Build Status](https://travis-ci.org/sphoneix22/italian_dictionary.svg?branch=master)](https://travis-ci.org/sphoneix22/italian_dictionary)
[![codecov](https://codecov.io/gh/sphoneix22/italian_dictionary/branch/master/graph/badge.svg)](https://codecov.io/gh/sphoneix22/italian_dictionary)
![Version](https://img.shields.io/badge/PyPI-v0.1-orange.svg)
![Python](https://img.shields.io/pypi/pyversions/Django.svg)
![PRS](https://img.shields.io/badge/PRs-Welcome-green.svg)
# ItalianDictionary
This package searches for word meanings on [dizionario-italiano](https://www.dizionario-italiano.it).
## Usage
```python
import italian_dictionary
# Use this to get only the meaning
definition = italian_dictionary.get_only_definition('cane', limit=3) #Optional: specify max number of defs
#Use this to get all datas of a word
datas = italian_dictionary.get_all_data('albero')
```
#### get_all_data response
This function will return a dictionary like this:
```python
{
'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']
}
```
[![codecov](https://codecov.io/gh/sphoneix22/italian_dictionary/branch/master/graph/badge.svg)](https://codecov.io/gh/sphoneix22/italian_dictionary)
![Version](https://img.shields.io/badge/PyPI-v0.1-orange.svg)
![Python](https://img.shields.io/pypi/pyversions/Django.svg)
![PRS](https://img.shields.io/badge/PRs-Welcome-green.svg)
# ItalianDictionary
This package searches for word meanings on [dizionario-italiano](https://www.dizionario-italiano.it).
## Usage
```python
import italian_dictionary
# Use this to get only the meaning
definition = italian_dictionary.get_only_definition('cane', limit=3) #Optional: specify max number of defs
#Use this to get all datas of a word
datas = italian_dictionary.get_all_data('albero')
```
#### get_all_data response
This function will return a dictionary like this:
```python
{
'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']
}
```
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
Built Distribution
Close
Hashes for italian_dictionary-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8256597872827bcd3b377aff856bbf86e56668de48d5da99557fe17eff64431 |
|
MD5 | 2cfac8141e172a3066711a68ab0880ff |
|
BLAKE2b-256 | 859473fe0dc376bc6dd9544bc6626576d485cb634a263721ab0c786fd21993f8 |