<commit_before>py-translate
=============

.. image:: https://travis-ci.org/jjangsangy/py-translate.svg?branch=master
    :target: https://travis-ci.org/jjangsangy/py-translate

py-translate is a CLI Tool for Google Translate written in Python!

.. image:: img/alice.gif
    :alt: alice
    :align: center

:Author: <NAME>, 2014
:License: Apache Software License v2
:Version: 0.1.1

The end goal is a simple application for translating text in the terminal. 
Text can be generated interactively or programmatically in the shell enviornment. Through command line arguments,
file descriptors or pipes generating translated output that can be piped to a file or displayed on the terminal.

Features
---------
- Simple command line parsing!
- Written in pure Python!
- Backwards compatable with Python 2.7
- Supports all language from Google Translate API
- The power of Unix pipes and filters
- Native UTF-8 Support

Installation
------------

From PyPI with pip (easy)
^^^^^^^^^^^^^^^^^^^^^^^^^

.. code-block:: bash

    $ pip install py-translate


From Source at Github
^^^^^^^^^^^^^^^^^^^^^

* Clone the repository

.. code-block:: bash

    $ git clone https://github.com/jjangsangy/py-translate.git

* Install with setup.py

.. code-block:: bash

    $ python setup.py install

Usage
-----
* Default will translate from english to target language
* Pipe from the shell!

.. code-block:: bash

    $ echo 'Hello World!' | translate zh-TW

.. image:: img/helloworld.gif
    :alt: Hello
    :align: center

Documentation
-------------

Documentation is available at https://py-translate.readthedocs.org/
<commit_msg>added pypi badge<commit_after>py-translate
=============

.. image:: https://travis-ci.org/jjangsangy/py-translate.svg?branch=master
    :target: https://travis-ci.org/jjangsangy/py-translate

.. image:: https://badge.fury.io/py/py-translate.png
    :target: http://badge.fury.io/py/py-translate

py-translate is a CLI Tool for Google Translate written in Python!

.. image:: img/alice.gif
    :alt: alice
    :align: center

:Author: <NAME>, 2014
:License: Apache Software License v2
:Version: 0.1.1

The end goal is a simple application for translating text in the terminal.
Text can be generated interactively or programmatically
in the shell enviornment. Through command line arguments,
file descriptors or pipes generating translated output
that can be piped to a file or displayed on the terminal.

Features
---------
- Simple command line parsing!
- Written in pure Python!
- Backwards compatable with Python 2.7
- Supports all language from Google Translate API
- The power of Unix pipes and filters
- Native UTF-8 Support

Installation
------------

From PyPI with pip (easy)
^^^^^^^^^^^^^^^^^^^^^^^^^

.. code-block:: bash

    $ pip install py-translate


From Source at Github
^^^^^^^^^^^^^^^^^^^^^

* Clone the repository

.. code-block:: bash

    $ git clone https://github.com/jjangsangy/py-translate.git

* Install with setup.py

.. code-block:: bash

    $ python setup.py install

Usage
-----
* Default will translate from english to target language
* Pipe from the shell!

.. code-block:: bash

    $ echo 'Hello World!' | translate zh-TW

.. image:: img/helloworld.gif
    :alt: Hello
    :align: center

Documentation
-------------

Documentation is available at https://py-translate.readthedocs.org/

{'fraction_non_alphanumeric': 0.1434131736526946, 'fraction_numerical': 0.006586826347305389, 'mean_word_length': 3.3333333333333335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '554045', 'n_tokens_mistral': 1029, 'n_tokens_neox': 970, 'n_words': 352}