py-dict-client 0.1.6
py-dict-client is a Python 3 client implementing the Dictionary Server Protocol.
Installation
$ pip install py-dict-client
Usage
>>> from dictionary_client import DictionaryClient
>>> dc = DictionaryClient()
>>> dc.databases
{'fra-eng': 'French-English FreeDict Dictionary ver. 0.4.1',
'eng-fra': 'English-French FreeDict Dictionary ver. 0.1.6',
'wn': 'WordNet (r) 3.1 (2011)',
'foldoc': 'The Free On-line Dictionary of Computing (2020-04-05)'}
>>> dc.define('oiseau', db='fra-eng').content
[{'db': 'fra-eng', 'definition': 'oiseau /wazo/ <n, masc>\nbird'}]
>>> dc.define('chauffeur').content
[{'db': 'fra-eng', 'definition': 'chauffeur /ʃofœʀ/ <n, masc>\nchauffeur, driver'},
{'db': 'eng-fra', 'definition': 'chauffeur /ʃoufər/\nchauffeur'},
{'db': 'wn', 'definition': 'chauffeur\n n 1: a man paid to drive a privately owned car\n...'}]
>>> dc.match('hello').content
defaultdict(<class 'list'>, {'eng-fra': ['hello'], 'wn': ['hello'], 'foldoc': ['hello']})
>>> dc.disconnect()
Contributing
Contributions are welcome. Please format your code with black, and add/improve tests where suitable.
To run the tests: $ make test
TODO implement remaining commands in specification
- STATUS
- SHOW INFO
- SHOW SERVER
- HELP
- OPTION
- AUTH
- SASLAUTH
Metadata
Release files for py-dict-client 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 |
|---|---|---|---|---|
| py-dict-client-0.2.0.tar.gz | 20.1 kB | Without provenance | Details for py-dict-client-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_dict_client-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for py_dict_client-0.2.0-py3-none-any.whl |
Total release size: 42.3 kB
Release files / py-dict-client-0.2.0.tar.gz
| Download URL | py-dict-client-0.2.0.tar.gz |
|---|---|
| Size | 20.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0af3d53412af950af37b8ef21a26cbb30cbc67c23335e7ea8415fd1dd82c4d98
|
|
BLAKE2b-256 checksum How to use checksums |
872b955ae0f1811d5d699e5a01c1a1c5f080e9455fdd82a91f4e6f6af88b4d79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.9
|
Release files / py_dict_client-0.2.0-py3-none-any.whl
| Download URL | py_dict_client-0.2.0-py3-none-any.whl |
|---|---|
| Size | 22.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5c9aa786bb5b7f49c564ffe8b313877c1a49894ddd1e134a77c1a9727e4f4d6
|
|
BLAKE2b-256 checksum How to use checksums |
88579b28855a97d2e6399197d12a870e782498ebb10d43b0a82bfa4d07516a90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.9
|
Security for py-dict-client 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.