Python API for Dicio.com.br
Installation
$ pip install Dicio
Usage
from dicio import Dicio
# Create a Dicio object
dicio = Dicio()
# Search for "Doce" and return an object Word
word = dicio.search("Doce")
# Print the word, the url and the meaning
print(word, word.url, word.meaning)
# Print a list of synonyms
print(word.synonyms)
# Print a list of examples
print(word.examples)
# Print extra informations
for chave, valor in word.extra.items():
print(chave, "=>", valor)
# Load information about the first synonym
# Print the word, the URL and the meaning of the first synonym
word.synonyms[0].load()
print(word.synonyms[0], word.synonyms[0].url, word.synonyms[0].meaning)
Word details
Attributes
- word - the word itself
- url - Dicio.com.br URL for the word
- meaning - the meaning
- etymology - the etymology
Properties
- synonyms - list of synonyms
- examples - list of examples
- extra - dictionary of extra information (keys in portuguese)
Functions
- load - load information from Dicio.com.br
Contribute
If you want to add new features or improve something, send a pull request!
Metadata
Release files for Dicio 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Dicio-1.3.0.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Dicio-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.2 kB
Release files / Dicio-1.3.0.tar.gz
| Download URL | Dicio-1.3.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ed73c48822ca0ad6197643a6b29c9cc9a9117adf846c2bbe47952b72496aec5
|
|
BLAKE2b-256 checksum How to use checksums |
250c5ab431ac821ed79656af29ef4607e31513d8b05263fa8c03b7210f1a1e2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Release files / Dicio-1.3.0-py3-none-any.whl
| Download URL | Dicio-1.3.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7116a86da6dfaa36d62713375658ca9dc207c3d42716b48488b3e06807109f8
|
|
BLAKE2b-256 checksum How to use checksums |
fc91e33adaaddc2ef040b7d6b44a36ec93a0ef4c08a50d15bf1e65a887e8d544
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|