============ Contributing ============ 1. Fork it. 2. Clone it create a `virtualenv `__ .. code-block:: bash $ virtualenv develop # Create virtual environment $ source develop/bin/activate # Change default python to virtual one (develop)$ git clone https://github.com/prodicus/vocabulary.git (develop)$ cd vocabulary (develop)$ pip install -r requirements.txt # Install requirements for 'Vocabulary' in virtual environment Or, if ``virtualenv`` is not installed on your system: .. code-block:: bash $ wget https://raw.github.com/pypa/virtualenv/master/virtualenv.py $ python virtualenv.py develop # Create virtual environment $ source develop/bin/activate # Change default python to virtual one (develop)$ git clone https://github.com/prodicus/vocabulary.git (develop)$ cd vocabulary (develop)$ pip install -r requirements.txt # Install requirements for 'Vocabulary' in virtual environment 3. Create your feature branch (``$ git checkout -b my-new-awesome-feature``) 4. Commit your changes (``$ git commit -am 'Added feature'``) 5. Run tests .. code-block:: bash (develop) $ ./tests.py -v Conform to `PEP8 `__ and if everything is running fine, integrate your feature 6. Push to the branch (``$ git push origin my-new-awesome-feature``) 7. Create new Pull Request Hack away! To do ===== - [X] Add translate module - [X] Add an option like `JSON=False` or `JSON=True` where the former returns a list object Tests ===== Running the test cases .. code-block:: bash $ ./tests.py -v test_antonym_ant_key_error (tests.tests.TestModule) ... ok test_antonym_found (tests.tests.TestModule) ... ok test_antonym_not_found (tests.tests.TestModule) ... ok test_hyphenation_found (tests.tests.TestModule) ... ok test_hyphenation_not_found (tests.tests.TestModule) ... ok test_meaning_found (tests.tests.TestModule) ... ok test_meaning_key_error (tests.tests.TestModule) ... ok test_meaning_not_found (tests.tests.TestModule) ... ok test_partOfSpeech_found (tests.tests.TestModule) ... ok test_partOfSpeech_not_found (tests.tests.TestModule) ... ok test_pronunciation_found (tests.tests.TestModule) ... ok test_pronunciation_not_found (tests.tests.TestModule) ... ok test_respond_as_dict_1 (tests.tests.TestModule) ... ok test_respond_as_dict_2 (tests.tests.TestModule) ... ok test_respond_as_dict_3 (tests.tests.TestModule) ... ok test_respond_as_list_1 (tests.tests.TestModule) ... ok test_respond_as_list_2 (tests.tests.TestModule) ... ok test_respond_as_list_3 (tests.tests.TestModule) ... ok test_synonynm_empty_list (tests.tests.TestModule) ... ok test_synonynm_found (tests.tests.TestModule) ... ok test_synonynm_not_found (tests.tests.TestModule) ... ok test_synonynm_tuc_key_error (tests.tests.TestModule) ... ok test_translate_empty_list (tests.tests.TestModule) ... ok test_translate_found (tests.tests.TestModule) ... ok test_translate_not_found (tests.tests.TestModule) ... ok test_translate_tuc_key_error (tests.tests.TestModule) ... ok test_usageExample_empty_list (tests.tests.TestModule) ... ok test_usageExample_found (tests.tests.TestModule) ... ok test_usageExample_not_found (tests.tests.TestModule) ... ok ---------------------------------------------------------------------- Ran 29 tests in 0.015s OK Discuss ======= Join us on our `Gitter channel `__ if you want to chat or if you have any questions. Building the docs ================= Install the `Sphinx` by doing a `$ pip install requirements-dev.txt` .. code-block:: bash $ make html Contributors ============ - Huge shoutout to `@tenorz007 `__ for adding the ability to return the API response as different data structures. - Thanks to `Anton Relin `__ for adding the `translate()` module - A big shout out to all the `contributers `__