Skip to main content
PyLexicon: A Dictionary Module for Python
======================================

PyLexicon is an updated and streamlined dictionary module for Python 3 to
get meanings, synonyms, antonyms, and translations. It uses `WordNet`_
for definitions, `Thesaurus.com`_ for synonyms and antonyms, and `Google
Translate`_ for translations.

This module uses ``requests`` and ``BeautifulSoup4`` as dependencies.

Installation
------------

``pip install PyLexicon``

Usage
-----

PyLexicon is designed with simplicity in mind, which makes it easy to use.

PyLexicon has only three functions: ``define``, ``synonym`` ,and
``antonym``

Define:
~~~~~~~

.. code:: python

>>> print(PyLexicon.define('hello'))
{'Noun': ['an expression of greeting']}

Synonym:
~~~~~~~~

.. code:: python

>>> print(PyLexicon.synonym('happy'))
['cheerful', 'contented', 'overjoyed', 'ecstatic', 'elated']

Antonym:
~~~~~~~~

.. code:: python

>>> print(PyLexicon.antonym('happy'))
['melancholy', 'upset', 'disappointed', 'sorrowful', 'unfriendly']

.. _WordNet: https://wordnet.princeton.edu/
.. _Thesaurus.com: http://www.thesaurus.com/
.. _Google Translate: https://translate.google.com/

Metadata

Release files for pylexicon 1.0.4

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

Source distribution (sdist)

Source distribution for pylexicon 1.0.4
File Size Uploaded Provenance Actions
pylexicon-1.0.4.tar.gz 2.8 kB Without provenance Details for pylexicon-1.0.4.tar.gz

Release files / pylexicon-1.0.4.tar.gz

Download URL pylexicon-1.0.4.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5f7a086b32a4fc7a7ae53ecff18d1f86f10d08ade94bfd9da37562d629404591
BLAKE2b-256 checksum
How to use checksums
0f64d5a9fc8c4802c9a4446ac3b329d42239aef7e4e484278bc3e66bd34385fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pylexicon 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 release file No provenance

1.0.3

1.0.2

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