tonyseek / macdict

CLI and library to look up dictionary in macOS.

Home Page:https://pypi.python.org/pypi/macdict

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status PyPI Version

macdict

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.

About

CLI and library to look up dictionary in macOS.

https://pypi.python.org/pypi/macdict

License:MIT License


Languages

Language:Python 100.0%