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.1.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file macdict-0.1.1.tar.gz
.
File metadata
- Download URL: macdict-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683beb8442cc4e77f5d4b72cd45f3ed23b91b7311e42a5e85f61e28cbc9b3244 |
|
MD5 | c921534e4d26027f0629f00aea9c527c |
|
BLAKE2b-256 | 2a065ea0f57a3e0b8506bbadc24d07afeb1f1d5588fa0d992b88e5cd3049ad85 |
File details
Details for the file macdict-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: macdict-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9875745fca9e09a9a4a8faed7f5fe3497b47433318bd2ad94e6f54e410e8c9ca |
|
MD5 | 401f9632650df942e88a87a3fe4a52db |
|
BLAKE2b-256 | bbd10b4f4b7bd6bc16acb3c17deffa6519c35e082616ad5b17c6caf72067bfc0 |