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.4.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for macdict-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e80342aa8dab028a387a0e594879c327c917d15abc3a495033fb6d2990b9716f |
|
MD5 | 99b9e7efa7a70cb3881588c50dfda8bc |
|
BLAKE2b-256 | 45d26485dd0287150b4eb6183888d3f41fc46c9f7bf33a9a002531309c14138b |