Getting started with Word Definition
Get definition of words in any language.
The word-def package is an extensible library to get definition of words
in any language. It can be used either as a library or through a command-line interface (CLI).
Installation
# As a library
pip install word-def
# As a CLI
pipx install word-def
Plugins available
Features
get-definitionget-synonymget-pos-tagget-usage-examples
Examples
$ word-def get-definition joy eng
1. a deep feeling or condition of happiness or contentment
2. something causing such a feeling; a source of happiness
3. an outward show of pleasure or delight; rejoicing
4. success; satisfaction
5. to make joyful; gladden
You may need to specify a plugin configuration file if the plugin
requires extra parameters (e.g. credentials to access an API). You
can register these parameters in a TOML file and pass it to word-def.
<!-- plugin-config.toml -->
["danoan.word_def.plugins.modules.english_collins"]
entrypoint = <ENTRYPOINT>
secret_key = <SECRET_KEY>
$ word-def --plugin-configuration-filepath plugin-config.toml get-definition joy eng
Contributing
Please reference to our contribution and code-of-conduct guidelines.
Metadata
Release files for word-def 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| word_def-0.2.1.tar.gz | 21.4 kB | Without provenance | Details for word_def-0.2.1.tar.gz |
Release files / word_def-0.2.1.tar.gz
| Download URL | word_def-0.2.1.tar.gz |
|---|---|
| Size | 21.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89120dcacaedc8a9cc89ceae6ac9659ca6b701053a2422018c4573062fbeeaa3
|
|
BLAKE2b-256 checksum How to use checksums |
4fcf2268f79df9b4a6db34e9c3d7cd13ddccf1b45bfd3dcf89245af6ffdf75e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.9
|
Security for word-def 0.2.1
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.