raebot
Search for definitions from the DLE.
This package is inspired by pyrae, but is implemented in a way I find more intuitive. Also, most importantly for me, synonym and antonym support.
Installation
pip install raebot
Develop
- Install poetry.
- Create a virtual environment
- run
poetry installto install the dependencies.
TDD recommended. Add a case, then update the script to make the test pass.
PRs welcome.
Testing
Run poetry run pytest to run the tests.
Publish
If you are Weiwei or one of his robots, run poetry publish --build to publish a new version.
Usage
>>> from raebot import search_words
>>> from pprint import pprint
>>> pprint(search_words('hola'))
[Word(word='lindo, da',
etymology="Del lat. limpĭdus 'limpio', 'puro'.",
definitions=[DefinitionX(types=['adj.'],
definition='Hermoso, bello, grato a la vista.',
examples=[],
synonyms=['bonito',
'bello',
'hermoso',
'precioso',
'exquisito',
'agraciado',
'guapo',
'majo'],
antonyms=['feo']),
DefinitionX(types=['adj.'],
definition='Perfecto, primoroso y exquisito.',
examples=[],
synonyms=[],
antonyms=[])],
phrases=[Phrase(phrase='lindo don Diego',
definition=[Definition(types=['m. coloq.', 'desus.'],
definition='lindo (‖ hombre que '
'presume de guapo).',
examples=[])])])]
Warning
For now it is used by me myself and I for generating anki flashcards. It may never be on feature parity with pyrae. But we shall see.
Metadata
Release files for raebot 0.2.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 |
|---|---|---|---|---|
| raebot-0.2.0.tar.gz | 3.3 kB | Without provenance | Details for raebot-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| raebot-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for raebot-0.2.0-py3-none-any.whl |
Total release size: 7.2 kB
Release files / raebot-0.2.0.tar.gz
| Download URL | raebot-0.2.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8e0f779db4588ca14b5ed8cf5f0c1318f699b6a2f19f0ca9b77b0d7cbdc5363
|
|
BLAKE2b-256 checksum How to use checksums |
1b1657cb60d525c1cf669899f43062e0949d175242d105b1c0abe3858387ea32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0
|
Release files / raebot-0.2.0-py3-none-any.whl
| Download URL | raebot-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee44b4640f22ffaf4e36b5ec585859d0ad169da83db52929c195698023097abb
|
|
BLAKE2b-256 checksum How to use checksums |
084a93538ee3993923bc9e608eb47f2a001c9c2b53e3b3630b512f1e51bb0cef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0
|
Security for raebot 0.2.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.