props2yaml


Nameprops2yaml JSON
Version 0.1.2 PyPI version JSON
download
home_page
SummaryConvert .properties files into .yaml
upload_time2023-06-15 22:08:47
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT
keywords yaml properties converter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # props2yaml

Convert `.properties` files into `.yaml`

## install

```bash
pip install -U props2yaml
props2yaml --version
```

## cli usage

- ```bash
   props2yaml config.properties -o config.yml          # (1)
   ```
- ```bash
   props2yaml config.properties > config.yml           # (2)
   ```
- ```bash
   cat config.properties | props2yaml -o config.yml    # (3)
   ```
- ```bash
   cat config.properties | props2yaml > config.yml     # (4)
   ```

## python usage

```python3
from props2yaml import convert_properties_to_yaml

converted = convert_properties_to_yaml("config.prop.value=50")
print(converted)
```
_output:_
```yaml
config:
  prop:
    value: '50'
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "props2yaml",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "yaml,properties,converter",
    "author": "",
    "author_email": "\"Jorge F. S\u00e1nchez\" <props2yaml@jfsanchez.net>",
    "download_url": "https://files.pythonhosted.org/packages/f0/be/06c5a9c84e051726a028d92efe3abf168c44b41e15b4844b5f099f92fa41/props2yaml-0.1.2.tar.gz",
    "platform": null,
    "description": "# props2yaml\n\nConvert `.properties` files into `.yaml`\n\n## install\n\n```bash\npip install -U props2yaml\nprops2yaml --version\n```\n\n## cli usage\n\n- ```bash\n   props2yaml config.properties -o config.yml          # (1)\n   ```\n- ```bash\n   props2yaml config.properties > config.yml           # (2)\n   ```\n- ```bash\n   cat config.properties | props2yaml -o config.yml    # (3)\n   ```\n- ```bash\n   cat config.properties | props2yaml > config.yml     # (4)\n   ```\n\n## python usage\n\n```python3\nfrom props2yaml import convert_properties_to_yaml\n\nconverted = convert_properties_to_yaml(\"config.prop.value=50\")\nprint(converted)\n```\n_output:_\n```yaml\nconfig:\n  prop:\n    value: '50'\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Convert .properties files into .yaml",
    "version": "0.1.2",
    "project_urls": {
        "Bug Tracker": "https://github.com/jfsanchez91/props2yaml/issues",
        "Homepage": "https://github.com/jfsanchez91/props2yaml"
    },
    "split_keywords": [
        "yaml",
        "properties",
        "converter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "17554d9c65e77ecc37e9abdf50b2d3ab185d7f1b05a94cf8b26227b6d1fd5be4",
                "md5": "c15c43fc80c412236dbb816dc7483742",
                "sha256": "b27c3a64fd3b8b0a74513f6183d209a0a65dfa139892998f0e1a2d2b48fc24f1"
            },
            "downloads": -1,
            "filename": "props2yaml-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c15c43fc80c412236dbb816dc7483742",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4592,
            "upload_time": "2023-06-15T22:08:46",
            "upload_time_iso_8601": "2023-06-15T22:08:46.575655Z",
            "url": "https://files.pythonhosted.org/packages/17/55/4d9c65e77ecc37e9abdf50b2d3ab185d7f1b05a94cf8b26227b6d1fd5be4/props2yaml-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0be06c5a9c84e051726a028d92efe3abf168c44b41e15b4844b5f099f92fa41",
                "md5": "c9fb94a7277f413f9b2089e8b06bdf44",
                "sha256": "3bcc83b40bca30512d007cffba522be162a0c89093ad2b66cb5eac776cb9406c"
            },
            "downloads": -1,
            "filename": "props2yaml-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c9fb94a7277f413f9b2089e8b06bdf44",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 6031,
            "upload_time": "2023-06-15T22:08:47",
            "upload_time_iso_8601": "2023-06-15T22:08:47.818092Z",
            "url": "https://files.pythonhosted.org/packages/f0/be/06c5a9c84e051726a028d92efe3abf168c44b41e15b4844b5f099f92fa41/props2yaml-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-15 22:08:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jfsanchez91",
    "github_project": "props2yaml",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "props2yaml"
}
        
Elapsed time: 0.18894s