Dexonline.ro API
A simple API that queries dexonline.ro, it returns the definitions of the words.
This is not an official API
What is dexonline - info
How to install, using pip install?
pip install -i https://test.pypi.org/simple/ dexonlineBK
Functionality
The first thing we need to do is import the library
from dexonlineBK import dexonlineBK as DO
The first, and most important, function is getWordDefinition() This function returns the list of lists
definitions = DO.getWordDefinition("neexplicabil")
for defs in definitions:
print(defs[0])
print(defs[1] + "\n")
Output:
NEEXPLICÁBIL
adj. v. inexplicabil.
NEEXPLICABIL
adj. inexplicabil, neînțeles. (Un fapt ~.)
Neexplicabil
≠ explicabil
For more printing comfort I have the toString() function
DO.toString(definitions)
Output:
WORD: NEEXPLICÁBIL
DEFINITION: adj. v. inexplicabil.
WORD: NEEXPLICABIL
DEFINITION: adj. inexplicabil, neînțeles. (Un fapt ~.)
WORD: Neexplicabil
DEFINITION: ≠ explicabil
getWordOfTheDay() function, returns the list with the word and its definition toString() also works with this function
DO.toString(DO.getWordOfTheDay())
Output:
WORD: ARÉIC, -Ă,
DEFINITION: areici, -ce, adj. (Geol.; despre regiuni, soluri) Lipsit de apă, uscat, arid. [Pr.: -re-ic] – Din fr. aréique.
getWordOfTheMonth() function, returns the list with the word and its definition toString() also works with this function
DO.toString(DO.getWordOfTheMonth())
Output:
WORD: ntur
DEFINITION: i [At: ALR II, 5752/791 / E: fo] (Reg) Onomatopee care imită trilurile turturicii.
reallyExist() function, returns boolean. dexonline.ro have list of words in romanina. And here you check if this word exists in Romanian.
print(DO.reallyExist('mama'))
Output:
True
randomWord() function, returns random word. dexonline.ro have a page with 100 random words.
print(DO.randomWord())
Output:
desfălura
DO.toString(DO.getWordDefinition(DO.randomWord()))
Output:
WORD: desfălura
DEFINITION: vr [At: DUMITRAȘCU, STR. 13 / V: ~lău~, ~fău~ / Pzi: ~rez / E: nct] (Olt) 1 A se descheia la haină. 2 (Pex) A se dezbrăca de haină, rămânând doar în cămașă.
WORD: desfălăura
DEFINITION: v vz desfălura
WORD: desfăura
DEFINITION: v vz desfălura
The API is still being tested
Metadata
Release files for dexonlineBK 0.1.0
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 |
|---|---|---|---|---|
| dexonlineBK-0.1.0.tar.gz | 3.9 kB | Without provenance | Details for dexonlineBK-0.1.0.tar.gz |
Release files / dexonlineBK-0.1.0.tar.gz
| Download URL | dexonlineBK-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4cfe730255acae4b3d19538f0fca97f1bd6163f8817c801b7b4283545a8cb0a5
|
|
BLAKE2b-256 checksum How to use checksums |
fffae701309942ffaaabf5c059b2f54a5eed7d3c7fb6148ecfef946d91ec3a4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.2 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.4
|
Security for dexonlineBK 0.1.0
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.