translation-builder


Nametranslation-builder JSON
Version 1.0.4 PyPI version JSON
download
home_pagehttps://github.com/Komo4ekoI/translations-builder
SummaryA tool for generating Python classes from YAML files
upload_time2024-12-24 08:55:29
maintainerNone
docs_urlNone
authorVadym Teliatnyk
requires_python>=3.8
licenseNone
keywords package translation translator komo4ek convert convertor builder translation-builder translation-generator g-translation
VCS
bugtrack_url
requirements PyYAML black setuptools twine build
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
![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/a6/28/cf16fd518509fd93a77349b983efcc1e889b51ece828bcbfe1830c88c329/translation_builder-1.0.4.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.4",
    "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": "3bb53b796867c18fc118519039f7c5068f2d99346951c30554c635f58cb38ae9",
                "md5": "324a43806a167989ff5a364257335fe3",
                "sha256": "9453db2dc66d27fe67601d12bbaf472006fdb2695108a85c97bdf5c3debae7a2"
            },
            "downloads": -1,
            "filename": "translation_builder-1.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "324a43806a167989ff5a364257335fe3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 10057,
            "upload_time": "2024-12-24T08:55:27",
            "upload_time_iso_8601": "2024-12-24T08:55:27.223336Z",
            "url": "https://files.pythonhosted.org/packages/3b/b5/3b796867c18fc118519039f7c5068f2d99346951c30554c635f58cb38ae9/translation_builder-1.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a628cf16fd518509fd93a77349b983efcc1e889b51ece828bcbfe1830c88c329",
                "md5": "2e0a064585e01438aa1267a1c1ca8983",
                "sha256": "6a65c690f567c69ba40f182d40e4d0bbd7e51c40a2eed2fc4c3218f41063d1b6"
            },
            "downloads": -1,
            "filename": "translation_builder-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "2e0a064585e01438aa1267a1c1ca8983",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 9746,
            "upload_time": "2024-12-24T08:55:29",
            "upload_time_iso_8601": "2024-12-24T08:55:29.237763Z",
            "url": "https://files.pythonhosted.org/packages/a6/28/cf16fd518509fd93a77349b983efcc1e889b51ece828bcbfe1830c88c329/translation_builder-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-24 08:55:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Komo4ekoI",
    "github_project": "translations-builder",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "PyYAML",
            "specs": [
                [
                    "==",
                    "6.0.2"
                ]
            ]
        },
        {
            "name": "black",
            "specs": [
                [
                    "==",
                    "24.8.0"
                ]
            ]
        },
        {
            "name": "setuptools",
            "specs": [
                [
                    "==",
                    "74.1.2"
                ]
            ]
        },
        {
            "name": "twine",
            "specs": [
                [
                    "==",
                    "4.0.2"
                ]
            ]
        },
        {
            "name": "build",
            "specs": [
                [
                    "==",
                    "1.2.1"
                ]
            ]
        }
    ],
    "lcname": "translation-builder"
}
        
Elapsed time: 2.09328s