
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Python module that uses free dictionary API to retrieve definitions, examples, synonyms, antonyms, and audio of english words
Glossary.py is a Python module that interacts with an online dictionary API. It's designed to fetch and manage word descriptions, phonetics, and semantics in a structured way.
pip install python-glossary
from python_glossary.glossary import Glossary
# Create a rule object and set a limit for descriptions
rules = Glossary.Rules()
rules.set_limit_of_descriptions(3)
# Create a word object with a specific word and rule
word = Glossary.Word('example', rules)
# Check if the word exists
if word.exists():
# Get transcription
print(word.get_transcription())
# Get audio link
print(word.get_audio())
# Get all definitions
print(word.get_all_definitions())
# Get definitions for a specific part of speech
print(word.get_definitions_of_part_of_speech('noun'))
Please note, this module relies on the API at https://api.dictionaryapi.dev/api/v2/entries/en/{input_word}
for fetching word data. Ensure you have a stable internet connection while using this module.
FAQs
Python module that uses free dictionary API to retrieve definitions, examples, synonyms, antonyms, and audio of english words
We found that python-glossary demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.