Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
macdict-0.1.3-py2.py3-none-any.whl (4.8 kB) Copy SHA256 hash SHA256 Wheel py2.py3
macdict-0.1.3.tar.gz (3.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page