Skip to main content

Build Status codecov PyPI version Python PRS

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

Metadata

Release files for italian-dictionary 1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for italian-dictionary 1.5
File Size Uploaded Provenance
italian_dictionary-1.5.tar.gz 4.3 kB Without provenance Details

Release files / italian_dictionary-1.5.tar.gz

Download URL italian_dictionary-1.5.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7c1a9462b41c1422f8dbd197a93e2b2d32478a56aa996d946131aac828f67158
BLAKE2b-256 checksum
How to use checksums
7e386c2f539e00c24dd08fc7edb5efdf92d56212cded386243126ee36c160b70
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for italian-dictionary 1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page