yamlconf-wmf


Nameyamlconf-wmf JSON
Version 0.2.10 PyPI version JSON
download
home_pagehttps://github.com/wikimedia/yamlconf
SummaryYaml-based configuration file reader. This is a fork of the original yamlfconf package. This fork is maintained by WMF Machine Learning Team
upload_time2023-09-18 13:44:17
maintainer
docs_urlNone
authorAaron Halfaker
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Yaml Configuration
==================

This library provides a means to read yaml configuration files and propagate
default values in reasonable ways.  Nothing complicated.

* **Installation:** ``pip install yamlconfig``

:Example:

    >>> import yamlconf
    >>>
    >>> doc = yamlconf.loads("""
    ... test: demo_test
    ...
    ... tests:
    ...     defaults:
    ...         foo: 5
    ...     demo_test:
    ...         bar: 6
    ... """)
    >>>
    >>> doc['tests'][doc['test']]['foo']
    5
    >>> doc['tests'][doc['test']]['bar']
    6

:Functions:

* load(*file-like*) : Returns a *dict* with defaults propagated
* loads(*string*) : Returns a *dict* with defaults propagated
* load_module(*class-path*) : Imports and returns

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wikimedia/yamlconf",
    "name": "yamlconf-wmf",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Aaron Halfaker",
    "author_email": "aaron.halfaker@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5f/bb/dbac02abe0bc78cfe8c2b2588fe41e732deb223ea9cc534d438dc8acaa1b/yamlconf-wmf-0.2.10.tar.gz",
    "platform": null,
    "description": "Yaml Configuration\n==================\n\nThis library provides a means to read yaml configuration files and propagate\ndefault values in reasonable ways.  Nothing complicated.\n\n* **Installation:** ``pip install yamlconfig``\n\n:Example:\n\n    >>> import yamlconf\n    >>>\n    >>> doc = yamlconf.loads(\"\"\"\n    ... test: demo_test\n    ...\n    ... tests:\n    ...     defaults:\n    ...         foo: 5\n    ...     demo_test:\n    ...         bar: 6\n    ... \"\"\")\n    >>>\n    >>> doc['tests'][doc['test']]['foo']\n    5\n    >>> doc['tests'][doc['test']]['bar']\n    6\n\n:Functions:\n\n* load(*file-like*) : Returns a *dict* with defaults propagated\n* loads(*string*) : Returns a *dict* with defaults propagated\n* load_module(*class-path*) : Imports and returns\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Yaml-based configuration file reader. This is a fork of the original yamlfconf package. This fork is maintained by WMF Machine Learning Team",
    "version": "0.2.10",
    "project_urls": {
        "Homepage": "https://github.com/wikimedia/yamlconf"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f55265fb0d0c3a81dfe98b62dfeea7e71272762bd5140ab289344b5d9b20850",
                "md5": "e5e0e76d155ee382dda6fac0f5289c65",
                "sha256": "2d56dfd2d9c14ca06a274e001ea61c6097402775ab56e6e203b76fe1e2902a2a"
            },
            "downloads": -1,
            "filename": "yamlconf_wmf-0.2.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e5e0e76d155ee382dda6fac0f5289c65",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8138,
            "upload_time": "2023-09-18T13:44:16",
            "upload_time_iso_8601": "2023-09-18T13:44:16.160808Z",
            "url": "https://files.pythonhosted.org/packages/5f/55/265fb0d0c3a81dfe98b62dfeea7e71272762bd5140ab289344b5d9b20850/yamlconf_wmf-0.2.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5fbbdbac02abe0bc78cfe8c2b2588fe41e732deb223ea9cc534d438dc8acaa1b",
                "md5": "b675cca16284ac41d58f7c21f07ef91d",
                "sha256": "30d21a2331819392885d35877fde171a1f7e169ab5db3e74b98db1b7373f3a4a"
            },
            "downloads": -1,
            "filename": "yamlconf-wmf-0.2.10.tar.gz",
            "has_sig": false,
            "md5_digest": "b675cca16284ac41d58f7c21f07ef91d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4701,
            "upload_time": "2023-09-18T13:44:17",
            "upload_time_iso_8601": "2023-09-18T13:44:17.937601Z",
            "url": "https://files.pythonhosted.org/packages/5f/bb/dbac02abe0bc78cfe8c2b2588fe41e732deb223ea9cc534d438dc8acaa1b/yamlconf-wmf-0.2.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-18 13:44:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wikimedia",
    "github_project": "yamlconf",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "yamlconf-wmf"
}
        
Elapsed time: 1.72700s