pyyaml-loaders


Namepyyaml-loaders JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryPyYAML loaders with enhanced functionalities.
upload_time2025-08-08 14:21:47
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords yaml pyyaml
VCS
bugtrack_url
requirements PyYAML
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyyaml-loaders

[PyPI package page](https://pypi.org/project/pyyaml-loaders/).

PyYAML loaders with enhanced functionalities.


## Description

### [`IgnoreLoader`](pyyaml_loaders/IgnoreLoader.py)

Ignore all constructors with tag `!`. Load YAML file as is.


### [`IncludeLoader`](pyyaml_loaders/IncludeLoader.py)

Tag: `!include`

Include values from other fields in the same YAML file, or from other file, while potentially replacing a subfield in the included field with a given value.

Syntax:
```yaml
!include [OTHER_FILE#]FIELD_TO_INCLUDE [SUBFIELD_TO_REPLACE:VALUE_TO_REPLACE_WITH]
```


## Installation

```bash
pip install pyyaml-loaders
```


## Usage

In preamble:

```python
from pyyaml_loaders import IncludeLoader, IgnoreLoader
```

When loading YAML file:
```python
with open(yaml_file, "r") as f:
    data = yaml.load(f, IncludeLoader)
```
(or `IgnoreLoader` instead of `IncludeLoader`)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyyaml-loaders",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Fran\u00e7ois De Keersmaeker <francois.dekeersmaeker+github@proton.me>",
    "keywords": "yaml, pyyaml",
    "author": null,
    "author_email": "Fran\u00e7ois De Keersmaeker <francois.dekeersmaeker+github@proton.me>",
    "download_url": "https://files.pythonhosted.org/packages/53/d6/f3ee427745499d57168121388fd1325b060213b1d832578c90d188637022/pyyaml_loaders-0.2.0.tar.gz",
    "platform": null,
    "description": "# pyyaml-loaders\n\n[PyPI package page](https://pypi.org/project/pyyaml-loaders/).\n\nPyYAML loaders with enhanced functionalities.\n\n\n## Description\n\n### [`IgnoreLoader`](pyyaml_loaders/IgnoreLoader.py)\n\nIgnore all constructors with tag `!`. Load YAML file as is.\n\n\n### [`IncludeLoader`](pyyaml_loaders/IncludeLoader.py)\n\nTag: `!include`\n\nInclude values from other fields in the same YAML file, or from other file, while potentially replacing a subfield in the included field with a given value.\n\nSyntax:\n```yaml\n!include [OTHER_FILE#]FIELD_TO_INCLUDE [SUBFIELD_TO_REPLACE:VALUE_TO_REPLACE_WITH]\n```\n\n\n## Installation\n\n```bash\npip install pyyaml-loaders\n```\n\n\n## Usage\n\nIn preamble:\n\n```python\nfrom pyyaml_loaders import IncludeLoader, IgnoreLoader\n```\n\nWhen loading YAML file:\n```python\nwith open(yaml_file, \"r\") as f:\n    data = yaml.load(f, IncludeLoader)\n```\n(or `IgnoreLoader` instead of `IncludeLoader`)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "PyYAML loaders with enhanced functionalities.",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/smart-home-network-security/pyyaml-loaders",
        "Source": "https://github.com/smart-home-network-security/pyyaml-loaders"
    },
    "split_keywords": [
        "yaml",
        " pyyaml"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5cc0dbfde5027319b745125e7101e9565b9520db0fdc9cce7ba86180649ddba1",
                "md5": "e1d916007cbb58587ffcc23410dd15d3",
                "sha256": "54f273496dcf19ec8f757b7b680daf37a9b56d0589a6061f0d1dca7fe3a56e85"
            },
            "downloads": -1,
            "filename": "pyyaml_loaders-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e1d916007cbb58587ffcc23410dd15d3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 16697,
            "upload_time": "2025-08-08T14:21:46",
            "upload_time_iso_8601": "2025-08-08T14:21:46.007909Z",
            "url": "https://files.pythonhosted.org/packages/5c/c0/dbfde5027319b745125e7101e9565b9520db0fdc9cce7ba86180649ddba1/pyyaml_loaders-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "53d6f3ee427745499d57168121388fd1325b060213b1d832578c90d188637022",
                "md5": "33925f9b11b05a7037d93c4b0c236b01",
                "sha256": "cea6cde69357b8d774803ec41afaf038990f33589c623d48ae02fbd620051760"
            },
            "downloads": -1,
            "filename": "pyyaml_loaders-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "33925f9b11b05a7037d93c4b0c236b01",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 16366,
            "upload_time": "2025-08-08T14:21:47",
            "upload_time_iso_8601": "2025-08-08T14:21:47.292545Z",
            "url": "https://files.pythonhosted.org/packages/53/d6/f3ee427745499d57168121388fd1325b060213b1d832578c90d188637022/pyyaml_loaders-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-08 14:21:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "smart-home-network-security",
    "github_project": "pyyaml-loaders",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "PyYAML",
            "specs": []
        }
    ],
    "lcname": "pyyaml-loaders"
}
        
Elapsed time: 0.84655s