CLI and library to look up dictionary in macOS.
Project description
macdict is a command line utility and library to look up dictionary in macOS.
It is built on the Dictionary Services (CoreServices.framework) and ctypes. So we have a pure Python implementation without any compile-time dependency.
Installation
$ pip install macdict
or with pipsi for using its CLI only:
$ pipsi install macdict
CLI Usage
$ macdict-lookup apple apple | BrE ˈap(ə)l, AmE ˈæpəl | noun (fruit) ...
API Usage
from macdict import lookup_word
definition = lookup_word(u'apple')
print(definition)
Contributing
If you want to report bugs or request features, please feel free to open issues or create pull requests on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
macdict-0.1.3.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file macdict-0.1.3.tar.gz
.
File metadata
- Download URL: macdict-0.1.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 629eef744023d201740ca2ebac249138ad97a6547907f8b2ddc1dc0416062308 |
|
MD5 | 508ec32e61b70281e49611ac58a72f7c |
|
BLAKE2b-256 | 4df36262ac81b71fc77fd620c85d7dc03725b8cfbd7c3621eaf3d5703da1372a |
File details
Details for the file macdict-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: macdict-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d421cb5984bbf32f9300cce9a06f745f67699ea91aec21bcc883934d1e08b2c |
|
MD5 | 385977832c2e22d36cd9de5d5db47969 |
|
BLAKE2b-256 | 0652872b0dd262a27a20cac470f4dfa7828dbd068d5ff718378b4b6674e17707 |