{ "info": { "author": "Stephen Gallagher", "author_email": "sgallagh@redhat.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3" ], "description": "# ModulemdTranslationHelpers\n## Prerequisites\n* [libmodulemd](https://github.com/fedora-modularity/libmodulemd)\n* [koji](https://pagure.io/koji)\n\nTo install on Fedora 28+, run:\n```\ndnf install libmodulemd koji\n```\n\n## Installation\nWith the prerequisites installed, the latest version can be installed with\n`pip install ModulemdTranslationHelpers` or on Fedora 28+ with `dnf install\npython3-ModulemdTranslationHelpers` (recommended).\n\n## CLI Usage\n\n### Extract Translatable Strings\nTo extract translatable strings from modules for a particular Fedora\nrelease (e.g. f29):\n```\nModulemdTranslationHelpers --branch f29 extract [--pot-file ]\n```\nThis will read all of the module metadata from the Koji build-system and\nconvert the translatable strings to a portable object template (`.pot`)\ndocument.\n\nSpecify the destination for the output file with `--pot-file`.\n\n ### Produce modulemd-translations YAML\n To convert portable object (`.po`) files into\n modulemd-translations YAML documents that can be included in repodata:\n ```\n ModulemdTranslationHelpers --branch f29 generate_metadata \\\n [--pofile-dir ] \\\n [--yaml-file ]\n\n ```\n\n This will read all files with a `.po` suffix in the `pofile-dir` path and\n write the modulemd YAML to `yaml-file`.\n\n## API\n### ModulemdTranslationHelpers\nThe ModulemdTranslationHelpers package has two primary functions:\n* get_module_catalog_from_tags()\n* get_modulemd_translations()\n\n#### ModulemdTranslationHelpers.get_module_catalog_from_tags()\nThis returns a `babel.message.Catalog` object containing all of the\ntranslatable strings from any module tagged with one of the passed tags. It\ncan be passed to `babel.messages.pofile.write_po()` to create a portable\nobject template (`.pot`) file.\n\n#### ModulemdTranslationHelpers.get_modulemd_translations()\nThis returns an iterable of modulemd-translation objects generated from a\nset of paths to portable object (`.po`) files containing translation\ninformation.\n\n### ModulemdTranslationHelpers.Fedora\nThis package provides helper routines for dealing with translations in Fedora\nModules.\n\n#### ModulemdTranslationHelpers.Fedora.KOJI_URL\nThe URL to the standard Fedora Koji instance.\n\n#### ModulemdTranslationHelpers.Fedora.get_fedora_rawhide_version()\nLooks up which Fedora version the current Rawhide branch will become.\n\n#### ModulemdTranslationHelpers.Fedora.get_tags_for_fedora_branch()\nGets the list of tags for modules in a given Fedora branch. (For rawhide,\nmake sure to use the value returned from get_fedora_rawhide_version.)\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fedora-modularity/ModulemdTranslationHelpers", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ModulemdTranslationHelpers", "package_url": "https://pypi.org/project/ModulemdTranslationHelpers/", "platform": "", "project_url": "https://pypi.org/project/ModulemdTranslationHelpers/", "project_urls": { "Homepage": "https://github.com/fedora-modularity/ModulemdTranslationHelpers" }, "release_url": "https://pypi.org/project/ModulemdTranslationHelpers/0.6/", "requires_dist": [ "click", "requests", "babel" ], "requires_python": "", "summary": "Tools for working with translations of modulemd", "version": "0.6" }, "last_serial": 4382859, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f1bc6835a148a4eaf10509c7f67dd8d4", "sha256": "3ab838e7a8cacafe5dd528ba991ed7837efbcd5ad964c0065f946eec52a44b63" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f1bc6835a148a4eaf10509c7f67dd8d4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8858, "upload_time": "2018-09-25T17:10:23", "url": "https://files.pythonhosted.org/packages/d7/ef/efa5cdf3b153a8090d01e02455b865e71198ce1ffd5a09e5febfcc311447/ModulemdTranslationHelpers-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d382797b8881fec27b05c0315d7b948f", "sha256": "546df0e02ed3c30674154fcdfa1c9a915a6b00299ee514c2e5a92eb9d121d121" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.1.tar.gz", "has_sig": false, "md5_digest": "d382797b8881fec27b05c0315d7b948f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7241, "upload_time": "2018-09-25T17:10:24", "url": "https://files.pythonhosted.org/packages/49/be/9332da314a6f711bc860406ecee4f64e772e5e830d58b1575a475cd2c350/ModulemdTranslationHelpers-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "00e7874b3cf09eeecac25b276776b3d3", "sha256": "30f2e8dac470476cd1e7b9f8a47ab8745d15828163564eb129a6af0dc1a4f48f" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "00e7874b3cf09eeecac25b276776b3d3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8883, "upload_time": "2018-09-25T17:22:42", "url": "https://files.pythonhosted.org/packages/8c/56/d3e686588fea5d6caa0ca845b61b693e5cbb110bfe8afb2d29770fdef3c5/ModulemdTranslationHelpers-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc88fedaf997f5bbec111fcf94867ff9", "sha256": "0ffdc49555f933915e2fc33f0918d33d6850be1269d358e116bade73b240a402" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.2.tar.gz", "has_sig": false, "md5_digest": "fc88fedaf997f5bbec111fcf94867ff9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7272, "upload_time": "2018-09-25T17:22:43", "url": "https://files.pythonhosted.org/packages/be/d9/b1d0d9f0c6cfae6a9d28d2cda6b2b50427f0eadb4d1c426bd0d51d2def4a/ModulemdTranslationHelpers-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "e769067aa8733e47c9d324d9b8b6314c", "sha256": "3e4e0fb1aa74cc131d71ed29e4b50dc199519621a9b96c6fce5c120218dc1b61" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "e769067aa8733e47c9d324d9b8b6314c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8884, "upload_time": "2018-09-25T17:40:40", "url": "https://files.pythonhosted.org/packages/c5/cd/d74803c97f6ccb85c0e9d2334dba935fd005e0f72ba9cc89c4c468b42d48/ModulemdTranslationHelpers-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ae972a1748fc661301fb940516615d69", "sha256": "1491b46a431ec2a62be127b2317f721f884c151d9ca360efb74ec3b5ce385c31" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.3.tar.gz", "has_sig": false, "md5_digest": "ae972a1748fc661301fb940516615d69", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7291, "upload_time": "2018-09-25T17:40:42", "url": "https://files.pythonhosted.org/packages/a6/10/a226eb4690aa4b235af57eacc6413124dbe76034a0176561a39438b05eb2/ModulemdTranslationHelpers-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "9dbd8368454fc19323fc1cc380531abc", "sha256": "8b0deb21385855591b9dced07edc4b92f6c820a2199457ce3643baf0f69e0d09" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "9dbd8368454fc19323fc1cc380531abc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8879, "upload_time": "2018-09-25T18:54:17", "url": "https://files.pythonhosted.org/packages/9f/46/de95f8d93f366977f518e504ea11b4e42b34db8d2bce6fd742a424a6e433/ModulemdTranslationHelpers-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4cbee9d3960009620b65264580687789", "sha256": "25eafa1a6a130562ca0091f4aa9b1d409d3166394b98b27653d9420eb1bb9898" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.4.tar.gz", "has_sig": false, "md5_digest": "4cbee9d3960009620b65264580687789", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7299, "upload_time": "2018-09-25T18:54:18", "url": "https://files.pythonhosted.org/packages/64/46/0bfea6feecbdb41a2331fc6a08755afb568e5f10c10cbbd841aaa25674dd/ModulemdTranslationHelpers-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "f67a3f867791a7599a79e0285a9b5a29", "sha256": "627064f48c1e75a427931611a6b57c632a713e2fbabde9ea058831dec2d097f8" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "f67a3f867791a7599a79e0285a9b5a29", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8878, "upload_time": "2018-09-25T18:57:54", "url": "https://files.pythonhosted.org/packages/ae/a7/885fa9fd10d3a77d62c2038159af81979ba8beb232ad94d0663287a852bd/ModulemdTranslationHelpers-0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "452faac19b10517e103c3eeb0a8a647a", "sha256": "0cb082b02b2da480e6e3726b506752c4dddcbcfba4ec1a8f6efe26a58aeba14b" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.5.tar.gz", "has_sig": false, "md5_digest": "452faac19b10517e103c3eeb0a8a647a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7281, "upload_time": "2018-09-25T18:57:56", "url": "https://files.pythonhosted.org/packages/b1/f8/df6495ad9bb0270cd71886894dc1b6cf3c5e49756dcf69babd1a6522a4fd/ModulemdTranslationHelpers-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "6bb9f520c483d2612f2e70a59ac263d8", "sha256": "4ebb841d61276c9b7cde5e9e23751773647f1b845ba9b933892e0e47e9a7b723" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "6bb9f520c483d2612f2e70a59ac263d8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8831, "upload_time": "2018-10-16T19:06:13", "url": "https://files.pythonhosted.org/packages/11/de/57dc55133a98ddbae9e099291300249dedb99e06943574b7d9da81701264/ModulemdTranslationHelpers-0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cebfc3cfe0b615f3e2f091fe72821e5a", "sha256": "104e3ba4041aa4c2934dfeccaf19decbf79423c9fba566eac65ee801050bd0c1" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.6.tar.gz", "has_sig": false, "md5_digest": "cebfc3cfe0b615f3e2f091fe72821e5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7281, "upload_time": "2018-10-16T19:06:14", "url": "https://files.pythonhosted.org/packages/d6/2b/ba3a7cff487ecc3156b25e712fc475db0f78d7d540aac5c877961a2df736/ModulemdTranslationHelpers-0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6bb9f520c483d2612f2e70a59ac263d8", "sha256": "4ebb841d61276c9b7cde5e9e23751773647f1b845ba9b933892e0e47e9a7b723" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "6bb9f520c483d2612f2e70a59ac263d8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8831, "upload_time": "2018-10-16T19:06:13", "url": "https://files.pythonhosted.org/packages/11/de/57dc55133a98ddbae9e099291300249dedb99e06943574b7d9da81701264/ModulemdTranslationHelpers-0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cebfc3cfe0b615f3e2f091fe72821e5a", "sha256": "104e3ba4041aa4c2934dfeccaf19decbf79423c9fba566eac65ee801050bd0c1" }, "downloads": -1, "filename": "ModulemdTranslationHelpers-0.6.tar.gz", "has_sig": false, "md5_digest": "cebfc3cfe0b615f3e2f091fe72821e5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7281, "upload_time": "2018-10-16T19:06:14", "url": "https://files.pythonhosted.org/packages/d6/2b/ba3a7cff487ecc3156b25e712fc475db0f78d7d540aac5c877961a2df736/ModulemdTranslationHelpers-0.6.tar.gz" } ] }