![PyPI - Python Version](https://img.shields.io/pypi/pyversions/translation-builder)![PyPI - Version](https://img.shields.io/pypi/v/translation-builder)[![wakatime](https://wakatime.com/badge/user/90c8afe4-47c1-4f14-9423-4474ab0618ae/project/2a4d5581-e29c-4cd6-b898-103f15fa8b1b.svg)](https://wakatime.com/badge/user/90c8afe4-47c1-4f14-9423-4474ab0618ae/project/2a4d5581-e29c-4cd6-b898-103f15fa8b1b)
## INFO
This is a simple library providing the ability to generate a Python file from a `YML` file. It's make easy to use the data from the original file, for example for translation files.
## Installation
The library is available on PyPi, so you can install it in the standard way:
##### Windows
```bash
pip install translation-builder
```
##### Ubuntu/macOS
```bash
pip3 install translation-builder
```
## Example
#### YML file example
```my_file.yml
good-translation:
cool: "No!"
one-more-cool:
- 1
- 2
- 3
```
#### File generation
```bash
g-translation --file my_file.yml --py_result ./my_directory/
```
#### Usage in your code
```main.py
from my_directory import my_file_tg
print(my_file_tg.Root.good_translation.cool)
print(my_file_tg.Root.good_translation.one_more_cool[1])
```
#### Result
```bash
No!
2
```
![MEW](https://media1.tenor.com/m/bn7amhoVqkIAAAAd/%D1%81%D0%B8%D0%B4%D0%B8%D1%82-%D0%BA%D0%BE%D0%BC%D0%B0%D1%80%D0%B8%D0%BA.gif)
Raw data
{
"_id": null,
"home_page": "https://github.com/Komo4ekoI/translations-builder",
"name": "translation-builder",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "package, translation, translator, komo4ek, convert, convertor, builder, translation-builder, translation-generator, g-translation",
"author": "Vadym Teliatnyk",
"author_email": "laivhakin@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/af/bf/d1263b7e0e65379f5ff642b54b12e3f98bdd89e8cee97a510df7b81407a8/translation_builder-1.0.2.tar.gz",
"platform": null,
"description": "\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/translation-builder)![PyPI - Version](https://img.shields.io/pypi/v/translation-builder)[![wakatime](https://wakatime.com/badge/user/90c8afe4-47c1-4f14-9423-4474ab0618ae/project/2a4d5581-e29c-4cd6-b898-103f15fa8b1b.svg)](https://wakatime.com/badge/user/90c8afe4-47c1-4f14-9423-4474ab0618ae/project/2a4d5581-e29c-4cd6-b898-103f15fa8b1b)\n\n\n## INFO\n\nThis is a simple library providing the ability to generate a Python file from a `YML` file. It's make easy to use the data from the original file, for example for translation files.\n## Installation\n\nThe library is available on PyPi, so you can install it in the standard way:\n\n##### Windows\n```bash\n pip install translation-builder\n```\n##### Ubuntu/macOS\n```bash\n pip3 install translation-builder\n```\n## Example\n\n#### YML file example\n```my_file.yml\ngood-translation:\n cool: \"No!\"\n one-more-cool:\n - 1\n - 2\n - 3\n```\n\n#### File generation\n```bash\ng-translation --file my_file.yml --py_result ./my_directory/\n```\n\n#### Usage in your code\n```main.py\nfrom my_directory import my_file_tg\n\nprint(my_file_tg.Root.good_translation.cool)\nprint(my_file_tg.Root.good_translation.one_more_cool[1])\n```\n\n#### Result\n```bash\nNo!\n2\n```\n![MEW](https://media1.tenor.com/m/bn7amhoVqkIAAAAd/%D1%81%D0%B8%D0%B4%D0%B8%D1%82-%D0%BA%D0%BE%D0%BC%D0%B0%D1%80%D0%B8%D0%BA.gif)\n",
"bugtrack_url": null,
"license": null,
"summary": "A tool for generating Python classes from YAML files",
"version": "1.0.2",
"project_urls": {
"Bug Reports": "https://github.com/Komo4ekoI/translations-builder/issues",
"Documentation": "https://github.com/Komo4ekoI/translations-builder",
"Homepage": "https://github.com/Komo4ekoI/translations-builder",
"Source Code": "https://github.com/Komo4ekoI/translations-builder"
},
"split_keywords": [
"package",
" translation",
" translator",
" komo4ek",
" convert",
" convertor",
" builder",
" translation-builder",
" translation-generator",
" g-translation"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "238536693c58c4b046c68cfebdf7d1616e5c4bdd5eacc34d48b1240d410752ee",
"md5": "abd80cfa32c001f171f4a1d0c4da812e",
"sha256": "e780707ca0baaafbcfe996461358e6b3ee399226cacdf36e7deb5ce53117851b"
},
"downloads": -1,
"filename": "translation_builder-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "abd80cfa32c001f171f4a1d0c4da812e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 9934,
"upload_time": "2024-09-06T09:45:39",
"upload_time_iso_8601": "2024-09-06T09:45:39.103114Z",
"url": "https://files.pythonhosted.org/packages/23/85/36693c58c4b046c68cfebdf7d1616e5c4bdd5eacc34d48b1240d410752ee/translation_builder-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "afbfd1263b7e0e65379f5ff642b54b12e3f98bdd89e8cee97a510df7b81407a8",
"md5": "742858bc4c54e6f78db006cbebef4e1b",
"sha256": "2dc8c83abcf2ea5d861edf75e5b062ce61e2df4483f0a1f4afa37d1fc7c037df"
},
"downloads": -1,
"filename": "translation_builder-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "742858bc4c54e6f78db006cbebef4e1b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 9215,
"upload_time": "2024-09-06T09:45:40",
"upload_time_iso_8601": "2024-09-06T09:45:40.362091Z",
"url": "https://files.pythonhosted.org/packages/af/bf/d1263b7e0e65379f5ff642b54b12e3f98bdd89e8cee97a510df7b81407a8/translation_builder-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-06 09:45:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Komo4ekoI",
"github_project": "translations-builder",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "translation-builder"
}