{ "info": { "author": "Nhomar Hern\u00e1ndez", "author_email": "nhomar@vauxoo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta" ], "description": "General Information\n===================\n\nThis program is a tool to translate and create automatically an srt file to be used as a subtitle\nfor your video, to be auto reproduce in your language.\n\nSupported on the google api for google-translate and based on the parser library pysrt with this\nprogram you will be able to translate in a matter of seconds your subtitles from the origin\nlanguage for your videos.\n\nThe flow of work is something like this:\n\n1. Download or create your subtitle for your videos in `srt format`_ in your language.\n2. Run this script telling the origin and destiny.\n3. Gual\u00e1 your subtitle is in other language.\n\n.. note::\n \n This translations are not perfect due to the normal leak of quality of google translate,\n remember install a `program`_ to post-edit your subtitles easily. and this is a list of `players`_\n which support natively this subs. \n\nDependencies:\n-------------\n\n - Generate your `google API key`_, if you don't know what it is, I recomend read the `official help`_.\n - pysrt_. \n - google-api-python-client_.\n\nInstalling:\n-----------\n\nThis is an script designed to run directly from the source code, only install\nthe dependencies using the installer of your preference and run the script, you can install it\nquickly with pip.::\n\n $sudo pip install pysrttranslator\n\n\nOr you can install from the sources::\n\n $ Download the source.\n $ tar zxfv source.tar.gz\n $ cd source\n $ sudo setup.py install\n\nConfiguring.\n------------\n\nYou need create a config file with at least the Google API key.::\n\n $touch local.cfg\n $nano local.cfg\n\nPaste this test file on your local.cfg file, you can read the config options to know how set global\nand local variables in this case the file will be read from the location where you are.\n\n.. code:: ini\n\n [__main__]\n input_lang = en #origin lang of your subtitle\n output_lang = es #destiny lang of your subtitles\n log_file = pysrttranslator.log #where your log will be\n google_api_key = INSERTHEREYOURKEY #your api key generated in google develper console\n\nUsage.\n------\n\nSome examples about how to use it.\n\n1.- Translating a file and saving it in the same folder from english to spanish.::\n\n $pysrttranslator file.srt -i en -o es\n\nWith this command you will obtain a file called `file.es.srt` just beside the file.srt file.\n\n2.- Translating a file and saving the result in other folder from english to spanish.::\n\n $pysrttranslator file.srt /path/destiny/fileoutput.srt -i en -o es\n\n3.- Run this command to get all options.::\n\n $pysrttranslator --help\n\nOptions availables.\n'''''''''''''''''''\n\nThis is what you will get if you run the --help option.\n\n.. _google API key: https://cloud.google.com/console#/project\n.. _official help: https://developers.google.com/console/help/new/#usingkeys\n.. _google-api-python-client: https://code.google.com/p/google-api-python-client/source/browse/README \n.. _pysrt: https://pypi.python.org/pypi/pysrt\n.. _srt format: http://en.wikipedia.org/wiki/.srt#SubRip_text_file_format\n.. _players: http://ale5000.altervista.org/subtitles.htm\n.. _program: http://home.gna.org/subtitleeditor/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/pysrttranslator", "keywords": "", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "pysrttranslator", "package_url": "https://pypi.org/project/pysrttranslator/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pysrttranslator/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/pysrttranslator" }, "release_url": "https://pypi.org/project/pysrttranslator/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "Transate srt subtitles with python and google translator api.", "version": "0.1.4" }, "last_serial": 960977, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "25846383bfab91b0c19d74a7a9f9a54f", "sha256": "16d9b07651af63b8d6ebac1579aba44e9ccc2fd0a4c802da5d6aab50c582f50a" }, "downloads": -1, "filename": "pysrttranslator-0.1.1.tar.gz", "has_sig": false, "md5_digest": "25846383bfab91b0c19d74a7a9f9a54f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2113, "upload_time": "2014-01-04T05:28:44", "url": "https://files.pythonhosted.org/packages/9e/66/ae68156d64a8a5ee1b250b2b176f3a676a5f866114533631023e79daf814/pysrttranslator-0.1.1.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "000fcf63b13148a9d6e8468e0ff7d380", "sha256": "c527bbdb025d871e075add4b961251ece0efc265de2652f4dbb3f048e27da742" }, "downloads": -1, "filename": "pysrttranslator-0.1.4.tar.gz", "has_sig": false, "md5_digest": "000fcf63b13148a9d6e8468e0ff7d380", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10654, "upload_time": "2014-01-05T08:14:32", "url": "https://files.pythonhosted.org/packages/d7/7e/0d39bb7fb0ffbaa68fcf103c42d59e01addd0aef69df12543ce5647cf83f/pysrttranslator-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "000fcf63b13148a9d6e8468e0ff7d380", "sha256": "c527bbdb025d871e075add4b961251ece0efc265de2652f4dbb3f048e27da742" }, "downloads": -1, "filename": "pysrttranslator-0.1.4.tar.gz", "has_sig": false, "md5_digest": "000fcf63b13148a9d6e8468e0ff7d380", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10654, "upload_time": "2014-01-05T08:14:32", "url": "https://files.pythonhosted.org/packages/d7/7e/0d39bb7fb0ffbaa68fcf103c42d59e01addd0aef69df12543ce5647cf83f/pysrttranslator-0.1.4.tar.gz" } ] }