Metadata-Version: 2.1
Name: Py-Dictionary
Version: 4.0.1
Summary: Dictionary module
Home-page: https://github.com/nit-in/py-dictionary
Author: nit-in
Author-email: nit_in@live.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: bs4
Requires-Dist: string-color
Requires-Dist: lxml

# py-dictionary
returns meaning, synonyms, antonyms for a word (scraping dictionary.com)
limit the no of results
also get meaning, synonyms and antonyms in different color

This module uses requests, bs4 and string-color modules
and scraps dictionary.com


## How to use it

## Install it
` pip install Py-Dictionary `

## Use
`from pydictionary import Dictionary`

`dict = Dictionary("fix")`

### enter the word you want to search here e.g. I used the word "fix"


### To get the result as list do following (you can use them in your programs)

`meanings_list = dict.meaning()`

`synonyms_list = dict.synonyms()`

`antonyms_list = dict.antonyms()`

### To print the results do following: 

`dict.print_meanings()`

`dict.print_synonyms()`

`dict.print_antonyms()`

This will print maximum 5 results with text having white color

If you want to increase  or decrease maximum results do this

`dic = Dictionary("fix",10)`

### now maximum 10 results will be shown

### To change the color of text

`dict.print_meaning("red")`

`dict.print_synonyms("green")`

`dict.print_antonyms("blue")`

#To get more color look up [string-color](https://pypi.org/project/string-color/) module
or type string-color in your terminal


