MLDictionary
MLDictionary is word's dictionary for several language
>>> from mldictionary import English
>>> english_dictionary = English()
>>> snake_means = english_dictionary.get_meanings('snake')
>>> len(snake_means)
4
>>> snake_means
['a reptile with a long body and no legs: ' ...]
...
Installing MLDictionary
$ pip install mldictionary
MLDictionary officially supports 3.9+.
Some examples
>>> from mldictionary import Portuguese
>>> portuguese_dictionary = Portuguese()
>>> vida_means = portuguese_dictionary.get_meanings('vida')
>>> vida_means
['Conjunto dos hábitos e costumes de alguém; maneira de viver: tinha uma vida de milionário.' ...]
>>> from mldictionary import Spanish
>>> spanish_dictionary = Spanish()
>>> coche_means = spanish_dictionary.get_meanings('coche')
>>> coche_means
['Automóvil destinado al transporte de personas y con capacidad no superior a siete plazas.' ...]
Make your own dictionary
from mldictionary import Dictionary
class MyOwnDictionary(Dictionary):
url = 'somedictionary.com'
language = 'language name'
target_tag = 'tag_where_means_is'
target_attr = {'attr': 'attr_value'}
replaces = {'something', 'another thing'}
>>> myowndictionary = MyOwnDictionary()
>>> myowndictionary.get_meanings('other language word')
To more details, see the wiki
Also, it has a insightful article on linkedin
Metadata
Release files for mldictionary 0.2.6
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 | |
|---|---|---|---|---|
| mldictionary-0.2.6.tar.gz | 4.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mldictionary-0.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / mldictionary-0.2.6.tar.gz
| Download URL | mldictionary-0.2.6.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
986fdc56dc461ea6970798c0f9ca74bc6289dc83369d483a52f8ba96bc1d93e7
|
|
BLAKE2b-256 checksum How to use checksums |
3cdf455145a85cf4e37930e142bae83544f324e43be6e5481a85342c8afdb3d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.2 Linux/5.16.12-200.fc35.x86_64
|
Release files / mldictionary-0.2.6-py3-none-any.whl
| Download URL | mldictionary-0.2.6-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86bb1499a02ca84ab6782dc552fbf3e70fb328f0128d81fac3f6993dec187cf0
|
|
BLAKE2b-256 checksum How to use checksums |
94528182261256174094df17885e4dff868dbd082c78eab550b423b01df1f8b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.2 Linux/5.16.12-200.fc35.x86_64
|
Security for mldictionary 0.2.6
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.