Dicio-1.3.0
توضیحات
Unofficial Python API for Dicio.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | Dicio-1.3.0 |
| نام | Dicio |
| نسخه کتابخانه | 1.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Felipe Pontes |
| ایمیل نویسنده | felipemfpontes@gmail.com |
| آدرس صفحه اصلی | https://github.com/felipemfp/dicio |
| آدرس اینترنتی | https://pypi.org/project/Dicio/ |
| مجوز | MIT License |
# 
[](https://travis-ci.org/felipemfp/dicio) [](https://coveralls.io/github/felipemfp/dicio?branch=master)
Python API for [Dicio.com.br](http://www.dicio.com.br/)

## Installation
```sh
$ pip install Dicio
```
## Usage
```python
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!
نحوه نصب
نصب پکیج whl Dicio-1.3.0:
pip install Dicio-1.3.0.whl
نصب پکیج tar.gz Dicio-1.3.0:
pip install Dicio-1.3.0.tar.gz