{ "info": { "author": "Janne Vanhala", "author_email": "janne.vanhala@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Transfluent API Client for Python\n=================================\n\n|build status|_\n\n.. |build status| image:: https://secure.travis-ci.org/jpvanhal/python-transfluent.png?branch=master\n :alt: Build Status\n.. _build status: http://travis-ci.org/jpvanhal/python-transfluent\n\nThis is a Python wrapper for the `Transfluent API `_.\n\nInstallation\n------------\n\n::\n\n $ pip install transfluent\n\nUsage\n-----\n\n.. code-block:: python\n\n import transfluent\n\n # Initialize the Transfluent client and retrieve your authentication\n # token by using your email and password.\n client = transfluent.Transfluent()\n client.authenticate(email='example@example.org', password='my-password')\n\n # Alternatively, you may initialize the Transfluent client directly\n # with your authentication token.\n client = transfluent.Transfluent(token='my-token')\n\n # Order translations for a resource file.\n response = client.file_save(\n identifier='my-project/messages',\n language=1,\n file=open('translations/messages.pot'),\n type='po-file'\n )\n print \"The file contains {0} words.\".format(response['word_count'])\n response = client.file_translate(\n identifier='my-project/messages',\n language=1,\n target_languages=[11],\n )\n print \"{0} words were ordered.\".format(response['word_count'])\n\n # Check if the translation for the resource file is complete.\n is_translated = client.is_file_complete(\n identifier='my-project/messages',\n language=11\n )\n\n if is_translated:\n # Retrieve the translated resource file.\n content = client.file_read(\n identifier='my-project/messages',\n language=11\n )\n with open('translations/en/LC_MESSAGES/messages.po', 'w') as out:\n out.write(content)\n else:\n # Check the precise translation progress for the resource file.\n status = client.file_status(\n identifier='my-project/messages',\n language=11\n )\n print \"Translation is {0} complete.\".format(status['progress'])\n\nResources\n---------\n\n- `Issue Tracker `_\n- `Code `_\n- `Development Version\n `_\n\nChangelog\n---------\n\nHere you can see the full list of changes between each Transfluent for Python\nrelease.\n\n0.3.0 (February 10, 2016)\n^^^^^^^^^^^^^^^^^^^^^^^^^\n\n- Added Python 3 support.\n\n0.2.1 (May 29, 2013)\n^^^^^^^^^^^^^^^^^^^^\n\n- Fixed a bug in how `texts_translate` handled `target_languages` parameter.\n\n0.2.0 (May 29, 2013)\n^^^^^^^^^^^^^^^^^^^^\n\n- Implemented Python wrappers for `Texts` and `TextsTranslate` methods in\n Transfluent's API\n\n0.1.0 (April 22, 2013)\n^^^^^^^^^^^^^^^^^^^^^^\n\n- Initial public release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jpvanhal/python-transfluent", "keywords": null, "license": "Copyright (c) 2013-2016 Janne Vanhala\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n 3. Neither the name of the Sentry nor the names of its contributors may be\n used to endorse or promote products derived from this software without\n specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "maintainer": null, "maintainer_email": null, "name": "transfluent", "package_url": "https://pypi.org/project/transfluent/", "platform": "any", "project_url": "https://pypi.org/project/transfluent/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/jpvanhal/python-transfluent" }, "release_url": "https://pypi.org/project/transfluent/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "A Python wrapper for Transfluent API", "version": "0.3.0" }, "last_serial": 1949007, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "672a94032e47dd32827d5cce2d8d6715", "sha256": "bf229e1de45ddfa5f64c353ed5c39f060790531808af18a034d7cea0df21a368" }, "downloads": -1, "filename": "transfluent-0.1.0.tar.gz", "has_sig": false, "md5_digest": "672a94032e47dd32827d5cce2d8d6715", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5840, "upload_time": "2013-04-22T10:49:27", "url": "https://files.pythonhosted.org/packages/0a/a8/70181c80c839cefa58dd272049f91138116186049d6b5bd0ef93125b03a0/transfluent-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "021edc5bce6ee50c05ee35278bbda472", "sha256": "a019ff76bb54dcdb1b2dc3ad91b6416074330d611832c2b2e94f77d0ebee145e" }, "downloads": -1, "filename": "transfluent-0.2.0.tar.gz", "has_sig": false, "md5_digest": "021edc5bce6ee50c05ee35278bbda472", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7272, "upload_time": "2013-05-29T11:55:28", "url": "https://files.pythonhosted.org/packages/8e/3f/06de8debc6d0aecebf9d1926b4a08e5ec7f814657b1303016f082777a826/transfluent-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "a55aa6e66d765e9df82eb086e2bec709", "sha256": "14008b643968e6f6eeb8f788448bf0508b96c6ae82868e15061f252e452dc3a7" }, "downloads": -1, "filename": "transfluent-0.2.1.tar.gz", "has_sig": false, "md5_digest": "a55aa6e66d765e9df82eb086e2bec709", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7312, "upload_time": "2013-05-29T13:03:20", "url": "https://files.pythonhosted.org/packages/b3/76/d2c5dbb0bb1ce7b39e460ccff4ffb82f3614938ddd6d95d38591942be625/transfluent-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "7f2d0d3f70def649474eab428cbee1e1", "sha256": "dc916e1528fd0a9885416abb225581ea205fef70a25961bb899b9d31aa37a0e8" }, "downloads": -1, "filename": "transfluent-0.3.0.tar.gz", "has_sig": false, "md5_digest": "7f2d0d3f70def649474eab428cbee1e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7518, "upload_time": "2016-02-10T10:27:53", "url": "https://files.pythonhosted.org/packages/a5/45/7f9f23e191ffc46d6de780837ad3a570b64b11b9780073f44bc6070e92dd/transfluent-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7f2d0d3f70def649474eab428cbee1e1", "sha256": "dc916e1528fd0a9885416abb225581ea205fef70a25961bb899b9d31aa37a0e8" }, "downloads": -1, "filename": "transfluent-0.3.0.tar.gz", "has_sig": false, "md5_digest": "7f2d0d3f70def649474eab428cbee1e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7518, "upload_time": "2016-02-10T10:27:53", "url": "https://files.pythonhosted.org/packages/a5/45/7f9f23e191ffc46d6de780837ad3a570b64b11b9780073f44bc6070e92dd/transfluent-0.3.0.tar.gz" } ] }