Metadata-Version: 1.1
Name: zdict
Version: 0.9.5
Summary: The last dictionary framework you need. (?)
Home-page: https://github.com/zdict/zdict
Author: Shun-Yi Jheng, Iblis Lin, Chang-Yen Chih, Chiu-Hsiang Hsu
Author-email: M157q.tw@gmail.com,e196819@hotmail.com,michael66230@gmail.com,wdv4758h@gmail.com
License: GPL3
Download-URL: https://github.com/zdict/zdict/archive/v0.9.5.zip
Description: ========================================
        zdict
        ========================================
        
        |issues| |travis| |coveralls| |pypi-dm|
        
        |license|
        
        |gitter|
        
        *Note: This project is working in progress.*
        
        zdict is a CLI dictionay framework mainly focus on any kind of online dictionary.
        This project originly forked from https://github.com/chenpc/ydict, which is a CLI tool for the Yahoo! online dictionary.
        After heavily refactoring the original project including:
        
        1. Change from Python 2 to Python 3
        2. Focus on being a flexible framework for any kind online dicitionaries, not only just a CLI tool for querying Yahoo! online dictionay.
        3. Based on an open source project skeleton.
        
        So, we decided to create a new project.
        
        
        Installation
        ------------------------------
        
        from `PyPi <https://pypi.python.org/pypi>`_ :
        
        .. code-block:: sh
        
            pip install zdict
        
        
        from `GitHub <https://github.com/zdict/zdict.git>`_ :
        
        .. code-block:: sh
        
            pip install git+https://github.com/zdict/zdict.git
        
        
        from `Docker Hub <https://hub.docker.https://hub.docker.com/r/zdict/zdict/>`_ :
        
        .. code-block:: sh
        
            # Pull image from Docker Hub
            docker pull zdict/zdict
        
            # Run interactive mode
            docker run -it --rm zdict/zdict
        
            # Run normal mode
            docker run -it --rm zdict/zdict apple bird
        
        Usage
        ------------------------------
        
        ::
        
            usage: zdict [-h] [-v] [-d] [-t QUERY_TIMEOUT] [-j [JOBS]] [-sp] [-su]
                         [-dt jisho,yahoo,urban,moe,spanish,all] [-ld] [-V] [-c]
                         [--dump [PATTERN]] [-D]
                         [word [word ...]]
        
            positional arguments:
              word                  Words for searching its translation
        
            optional arguments:
              -h, --help            show this help message and exit
              -v, --version         show program's version number and exit
              -d, --disable-db-cache
                                    Temporarily not using the result from db cache. (still
                                    save the result into db)
              -t QUERY_TIMEOUT, --query-timeout QUERY_TIMEOUT
                                    Set timeout for every query. default is 5 seconds.
              -j [JOBS], --jobs [JOBS]
                                    Allow N jobs at once. Do not pass any argument to use
                                    the number of CPUs in the system.
              -sp, --show-provider  Show the dictionary provider of the queried word
              -su, --show-url       Show the url of the queried word
              -dt jisho,yahoo,urban,moe,spanish,all, --dict jisho,yahoo,urban,moe,spanish,all
                                    Must be seperated by comma and no spaces after each
                                    comma. Choose the dictionary you want. (default:
                                    yahoo) Use 'all' for qureying all dictionaries. If
                                    'all' or more than 1 dictionaries been chosen, --show-
                                    provider will be set to True in order to provide more
                                    understandable output.
              -ld, --list-dicts     Show currently supported dictionaries.
              -V, --verbose         Show more information for the queried word. (If the
                                    chosen dictionary have implemented verbose related
                                    functions)
              -c, --force-color     Force color printing (zdict automatically disable
                                    color printing when output is not a tty, use this
                                    option to force color printing)
              --dump [PATTERN]      Dump the querying history, can be filtered with regex
              -D, --debug           Print raw html prettified by BeautifulSoup for
                                    debugging.
        
        
        Screenshots
        ------------------------------
        
        `Yahoo Dictionary <http://tw.dictionary.search.yahoo.com/>`_
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        * Normal Mode
        
        ``zdict hello``
        
        .. image:: http://i.imgur.com/iFTysUz.png
        
        
        * Interactive Mode
        
        ``zdict``
        
        .. image:: http://i.imgur.com/NtbWXKH.png
        
        
        `Moe Dictionary 萌典 <https://www.moedict.tw>`_
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        .. image:: http://i.imgur.com/FZD4HBS.png
        
        .. image:: http://i.imgur.com/tF2S98h.png
        
        
        `Urban Dictionary <http://www.urbandictionary.com/>`_
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        .. image:: http://i.imgur.com/KndSJqz.png
        
        .. image:: http://i.imgur.com/nh62wi1.png
        
        
        `SpanishDict <http://www.spanishdict.com/>`_
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        .. image:: http://i.imgur.com/Ld2QVvP.png
        
        .. image:: http://i.imgur.com/HJ9h5JO.png
        
        
        `Jisho Japanese Dictionary <http://jisho.org/>`_
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        .. image:: http://i.imgur.com/63n3qmH.png
        
        .. image:: http://i.imgur.com/UMP8k4e.png
        
        
        Development & Contributing
        ---------------------------
        
        Testing
        ^^^^^^^^
        
        During development, you can install our project as *editable*.
        If you use `virtualenv`, you may want to create a new enviroment for `zdict`::
        
            $ git clone https://github.com/zdict/zdict.git
            $ cd zdict
            $ pip install -e .
        
        Once you installed it with the command above,
        just execute `zdict` after modification.
        Don't need to install it again.
        
        We use ``py.test``::
        
            $ pip install pytest pytest-cov coverage
            $ python setup.py test
        
        or::
        
            $ py.test
        
        After runing testing, we will get a coverage report in html.
        We can browse around it::
        
            $ cd htmlcov
            $ python -m http.server
        
        Also, there is some configs for ``py.test`` in ``setup.cfg``.
        Change it if you need.
        
        
        Debugging
        ^^^^^^^^^^
        
        ``py.test`` can prompt ``pdb`` shell when your test case failed::
        
            $ python setup.py test -a "--pdb"
        
        or::
        
            $ py.test --pdb
        
        
        Bug Report
        ^^^^^^^^^^^
        
        Feel free to send a bug report to https://github.com/zdict/zdict/issues.
        Please attach the error message and describe how to reproduce the bug.
        PR is also welcome.
        
        Please use the ``-d/--disable-db-cache`` option to query before sending the bug report.
        Sometimes we modify the data schema in database for a dictionary,
        but the default dictionary query of zdict uses the cache in the database which may be stored within an old schema.
        This might cause an error while showing the result.
        Just use the ``-d/--disable-db-cache`` to update the cache in database.
        
        
        Related Projects
        ------------------------------
        
        * `zdict.vim <https://github.com/zdict/zdict.vim>`_
            * A vim plugin integrate with zdict.
        * `zdict.sh <https://github.com/zdict/zdict.sh>`_
            * A collection of shell completion scripts for zdict.
        
        
        .. |issues| image:: https://img.shields.io/github/issues/zdict/zdict.svg
           :target: https://github.com/zdict/zdict/issues
        
        .. |travis| image:: https://img.shields.io/travis/zdict/zdict.svg
           :target: https://travis-ci.org/zdict/zdict
        
        .. |license| image:: https://img.shields.io/github/license/zdict/zdict.svg
           :target: https://github.com/zdict/zdict/blob/master/LICENSE.md
        
        .. |gitter| image:: https://badges.gitter.im/Join%20Chat.svg
           :alt: Join the chat at https://gitter.im/zdict/zdict
           :target: https://gitter.im/zdict/zdict
        
        .. |coveralls| image:: https://coveralls.io/repos/zdict/zdict/badge.svg
           :target: https://coveralls.io/github/zdict/zdict
        
        .. |pypi-dm| image:: https://img.shields.io/pypi/dm/zdict.svg
           :target: https://pypi.python.org/pypi/zdict
        
Keywords: cli,dictionary,framework
Platform: Linux
Platform: Mac
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: Chinese (Traditional)
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Utilities
