Skip to main content

Unofficial Python API for Dicio.

Project description

dicio

Build Status Coverage Status

Python API for Dicio.com.br

Demo

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!

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

Dicio-1.3.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

Dicio-1.3.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file Dicio-1.3.0.tar.gz.

File metadata

  • Download URL: Dicio-1.3.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for Dicio-1.3.0.tar.gz
Algorithm Hash digest
SHA256 6ed73c48822ca0ad6197643a6b29c9cc9a9117adf846c2bbe47952b72496aec5
MD5 966c949fb3246d3e7e29cfcac81f620f
BLAKE2b-256 250c5ab431ac821ed79656af29ef4607e31513d8b05263fa8c03b7210f1a1e2a

See more details on using hashes here.

File details

Details for the file Dicio-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: Dicio-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for Dicio-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7116a86da6dfaa36d62713375658ca9dc207c3d42716b48488b3e06807109f8
MD5 57dc0b243927a59e4dfb25c556e64b1f
BLAKE2b-256 fc91e33adaaddc2ef040b7d6b44a36ec93a0ef4c08a50d15bf1e65a887e8d544

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page