{ "info": { "author": "Murat Aydos", "author_email": "murataydos@yandex.com", "bugtrack_url": null, "classifiers": [], "description": "===========\npopy\n===========\n\n.. image:: https://travis-ci.org/murataydos/popy.svg\n :target: https://travis-ci.org/murataydos/popy/\n.. image:: https://coveralls.io/repos/murataydos/popy/badge.svg \n :target: https://coveralls.io/r/murataydos/popy\n \nParser for GNU Po files\n\nInstallation\n============\n\nInstall using pip::\n\n pip install popy\n\n\nUsage\n============\n\nUsing popy to parse a PO file::\n\n from popy.po_file import PoFile \n \n f = PoFile(path='/path/to/your/file.po')\n messages = f.get_messages() # gets all the messages \n messages[0]\n # MessageEntry object\n messages[0].msgid\n # First message's msgid\n messages[1].msgstr\n # Second message's msgstr as a list\n \n \nMessageEntry object\n-------------------\nThese are the attributes::\n\n msgid: str\n msgstr: list of strings \n msgid_plural: str \n msgctxt: str \n translator_comments: list of strings \n extracted_comments: list of strings \n references: list of strings \n flags: list of strings \n is_fuzzy: boolean\n \nThese are the important methods::\n\n fix_newline_matching() \n # Adds or removes newlines to/from msgstr in order to match msgid and msgstr newlines at the beginning or end.\n \n __str__()\n # Generates a message block\n \n \nPoFile object\n-------------------\nThese are the attributes::\n\n path: str\n messages: list of MessageEntry objects \n \nThese are the important methods::\n\n get_messages()\n # Reads messages and returns list of MessageEntry objects\n\n write_messages()\n # Writes MessageEntry objects into the file\n\n fix_newline_matching() \n # Applys fix_newline_matching to the whole file\n \n __str__()\n # Generates a message block", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/murataydos/popy", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "popy", "package_url": "https://pypi.org/project/popy/", "platform": "", "project_url": "https://pypi.org/project/popy/", "project_urls": { "Homepage": "https://github.com/murataydos/popy" }, "release_url": "https://pypi.org/project/popy/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "Parser for GNU Po files", "version": "0.3.0" }, "last_serial": 3424683, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "673d91da9bca4ba1c14fc1c33ec2a40e", "sha256": "856dc94cd5a48120882bbb7744541963fe017b95438476b6c7ce990bef86799c" }, "downloads": -1, "filename": "popy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "673d91da9bca4ba1c14fc1c33ec2a40e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9755, "upload_time": "2015-03-19T05:05:23", "url": "https://files.pythonhosted.org/packages/04/df/1a20d7830626eca65fe48fa90eec1ecdb5eb5f3a39f9a4b246093f2e7cb6/popy-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "80a1ed70a4fa06a8b157355244b6404f", "sha256": "ee8645cc1591afb2334238a8036d7d364b52acf8acc4c82975d3c0ee5935f5a9" }, "downloads": -1, "filename": "popy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "80a1ed70a4fa06a8b157355244b6404f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10559, "upload_time": "2015-03-20T07:39:14", "url": "https://files.pythonhosted.org/packages/89/61/355f63ce044bd9f3b91c1a56314d2685b8f5b954d173e61885c49527033e/popy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "023fae5d5daa144d810cba6997fde4cf", "sha256": "7fd0fbcd32ee172339abc24cb08aa22d4b7c43f6e43161b1447fdb3ad1b59d8c" }, "downloads": -1, "filename": "popy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "023fae5d5daa144d810cba6997fde4cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10676, "upload_time": "2015-03-24T06:28:05", "url": "https://files.pythonhosted.org/packages/1d/f1/eff8b86e043457286c62496ec259f8d39a2ebcac9b3236580b421ec8dd37/popy-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "eb1816b7f75d723cccf4ba1ee1d0f238", "sha256": "cd300069400be6d4cdcec724c95669c215d5d1f390b68d0b19e746743e2b1f50" }, "downloads": -1, "filename": "popy-0.1.3.tar.gz", "has_sig": false, "md5_digest": "eb1816b7f75d723cccf4ba1ee1d0f238", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10701, "upload_time": "2015-06-09T17:39:26", "url": "https://files.pythonhosted.org/packages/d8/9f/9649033ab054411f808ddeeada110e7603584ff4da716576b34c97c5e281/popy-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1a1d97f66fa80b827fbb8f3c59049d50", "sha256": "f8c1ce2b526d3aef752ea25f09eb0f02892b57c44468df63dd8d995f1924feb2" }, "downloads": -1, "filename": "popy-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1a1d97f66fa80b827fbb8f3c59049d50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10350, "upload_time": "2016-09-05T10:20:25", "url": "https://files.pythonhosted.org/packages/25/d9/cd3df720e60c070f46c24d9c364e84b31e169c14e53f494da2329d4b121a/popy-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "4e0861687af86651b2a71a277aa78da4", "sha256": "390d16d791e82f6b11af803efd01d3440d9b1f6e5847fe8817a779e25940ccea" }, "downloads": -1, "filename": "popy-0.3.0.tar.gz", "has_sig": false, "md5_digest": "4e0861687af86651b2a71a277aa78da4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3493, "upload_time": "2017-12-18T10:59:38", "url": "https://files.pythonhosted.org/packages/6b/3b/1f475a70661665ab61aad8ab62e216841d2c3769d752881a0b59ffc4a45f/popy-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4e0861687af86651b2a71a277aa78da4", "sha256": "390d16d791e82f6b11af803efd01d3440d9b1f6e5847fe8817a779e25940ccea" }, "downloads": -1, "filename": "popy-0.3.0.tar.gz", "has_sig": false, "md5_digest": "4e0861687af86651b2a71a277aa78da4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3493, "upload_time": "2017-12-18T10:59:38", "url": "https://files.pythonhosted.org/packages/6b/3b/1f475a70661665ab61aad8ab62e216841d2c3769d752881a0b59ffc4a45f/popy-0.3.0.tar.gz" } ] }