Skip to main content

Pytionary - A cool dictionary module for python to get meanings, pos, synonyms, antonyms of the given word.
It uses requests and BeautifulSoup as dependencies.

Installation

The easiest way to install is through pip:
pip install pytionary

With Easy_Install

easy_install pytionary

Usage

It is very easy to get started with pytionary. You just create an instance of the Pytionary class.
from pytionary import Pytionary    #import module
gloss = Pytionary()    #create object

This will create an instance of the pytionary class. Now, you have access to its methods.

To get the meaning of the word:

print(gloss.meanings('tuna'))

This returns a list of the meanings. For example:

['any of several large food and game fishes of the family Scombridae, inhabiting temperate and tropical seas.Compare albacore, bluefin tuna, yellowfin tuna.', 'any of various related fishes.', ' Also called tuna fish. the flesh of the tuna, used as food.', 'any of various prickly pears, especially either of two erect, treelike species, Opuntia tuna or O.
ficus-indica, of Mexico, bearing a sweet, edible fruit.', 'the fruit of these plants.', 'Also called: tunny any of various large marine spiny-finned fishes of the genus Thunnus, esp T. thynnus, chiefly of warm waters: family Scombridae .
They have a spindle-shaped body and widely forked tail, and are important food fishes', 'any of various similar and related fishes', 'any of various tropical American prickly pear cacti, esp Opuntia tuna, that are cultivated for their sweet edible fruits', 'the fruit of any of these cacti']

For pos (verb/adj/noun)

print(gloss.pos('tuna'))

For synonyms:

print(gloss.synonyms('tuna'))

For antonyms:

print(gloss.antonyms('tuna'))

Full Example

from pytionary import Pytionary

word = 'tuna'

gloss = Pytionary() #Create object

print(gloss.pos(word))    #return pos(noun/verb/adj)
print(gloss.meanings(word))    #return meanings
print(gloss.synonyms(word))    #return synonyms
print(gloss.antonyms(word))    #return antonyms

Metadata

Release files for pytionary 1

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

Source distribution (sdist)

Source distribution for pytionary 1
File Size Uploaded
pytionary-1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytionary 1
File Interpreter ABI Platform
pytionary-1-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / pytionary-1.tar.gz

Download URL pytionary-1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f61799d7c0e848a0d47d7140adf81dc5a151d255abd6870ad5305d85562a378a
BLAKE2b-256 checksum
How to use checksums
817be20ccdbaf03b06a48908e66d3b442ab11530a1d76e0c9670f89f0ff78685
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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

Release files / pytionary-1-py3-none-any.whl

Download URL pytionary-1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76db6e7c60b5b5333b0ea8755ddfb16404bdf6b5ed3eb8ac24918c87beca4fa4
BLAKE2b-256 checksum
How to use checksums
7b4d4ce3117f8a740e83c906f2e80c564fde3252290ac3a64536f55e226ab388
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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1 This release

2 release files

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