vpd


Namevpd JSON
Version 0.9.11 PyPI version JSON
download
home_pagehttps://github.com/dbotwinick/python-vpd
SummaryVirtualPathDictChains. Hierarchical, Addressable Dicts, potentially using YaML
upload_time2023-07-29 15:59:36
maintainer
docs_urlNone
authorDrew Botwinick
requires_python>=3.9
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # python-vpd

VirtualPathDictChains - Hierarchical Settings Management using YaML

This is an amalgamation of existing code that has been separated into its own package.

Hosted on GitHub: https://github.com/dbotwinick/python-vpd

As of version 0.9.5+, python 2.7 support is being phased out and targeting 3.9+ for python support. The legacy code
is actually still python 2.7 compatible; however, the vpd.next code is not guaranteed to support python versions
less than 3.9.

The base legacy code for VirtualPathDictChains is still useful and provides a mechanism to find data in "chains" of
yaml. For example, if you had a dict: "{"test": {"v1": "v1", "v2":"v2"}}", using the VPD/VirtualPathDictChain approach,
you could query for "test/v1" and get the result "v1". This was originally designed for complex settings or
preferences management in python applications.

The "chain" part is that if a value is not found, the next source/VirtualPathDict would be searched. By having a chain,
settings could be "merged" into a single queryable view. String values in the dicts also supported default arg
substitution such that if a query result contained a text value of "{test/v2}", the bracketed expression
would be used as a lookup to find that value--allowing references--which is also really useful for managing complex
settings or preferences for an application etc.

The legacy code is maintained at vpd.legacy and backwards-compatible stubs are provided in the package root. Therefore,
the following packages still work:

- vpd.arguments
- vpd.cid
- vpd.cmp
- vpd.iterable
- vpd.yaml_dict

The newer generation code expands on this base concept to allow modeling arbitrary relationships among data "types"
(expected to be yaml or yaml-like) to be able to create novel use-cases. So the next generation mechanism can also
be used to model settings and use references to share settings/preferences. It's basically something like a simple,
non-indexed, in-memory graph database for modeling relationships that do not require much complexity such that a
real graph solution is warranted; however, the problem at hand benefits from describing relationships first and
then lazily calculating some result following along the data relationships.

This newer code is in "vpd.next.graph".

As an additional utility basis, vpd.next.k8s provides utility mechanisms for Kubernetes. These are meant to ease
tasks managing state (via ConfigMaps) and secrets for python applications. These can be combined with the legacy
VirtualPathDict mechanisms as well as the vpd.next.graph mechanisms as part of maintaining complex applications
intended to operate in a Kubernetes context. Note that the official Kubernetes python client is required for Kubernetes
functionality.

More documentation to come...



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dbotwinick/python-vpd",
    "name": "vpd",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "",
    "author": "Drew Botwinick",
    "author_email": "foss@drewbotwinick.com",
    "download_url": "https://files.pythonhosted.org/packages/df/71/0ef1a09794ee02336090ed2243775299d8a159520ae4c2ecabada0692095/vpd-0.9.11.tar.gz",
    "platform": null,
    "description": "# python-vpd\n\nVirtualPathDictChains - Hierarchical Settings Management using YaML\n\nThis is an amalgamation of existing code that has been separated into its own package.\n\nHosted on GitHub: https://github.com/dbotwinick/python-vpd\n\nAs of version 0.9.5+, python 2.7 support is being phased out and targeting 3.9+ for python support. The legacy code\nis actually still python 2.7 compatible; however, the vpd.next code is not guaranteed to support python versions\nless than 3.9.\n\nThe base legacy code for VirtualPathDictChains is still useful and provides a mechanism to find data in \"chains\" of\nyaml. For example, if you had a dict: \"{\"test\": {\"v1\": \"v1\", \"v2\":\"v2\"}}\", using the VPD/VirtualPathDictChain approach,\nyou could query for \"test/v1\" and get the result \"v1\". This was originally designed for complex settings or\npreferences management in python applications.\n\nThe \"chain\" part is that if a value is not found, the next source/VirtualPathDict would be searched. By having a chain,\nsettings could be \"merged\" into a single queryable view. String values in the dicts also supported default arg\nsubstitution such that if a query result contained a text value of \"{test/v2}\", the bracketed expression\nwould be used as a lookup to find that value--allowing references--which is also really useful for managing complex\nsettings or preferences for an application etc.\n\nThe legacy code is maintained at vpd.legacy and backwards-compatible stubs are provided in the package root. Therefore,\nthe following packages still work:\n\n- vpd.arguments\n- vpd.cid\n- vpd.cmp\n- vpd.iterable\n- vpd.yaml_dict\n\nThe newer generation code expands on this base concept to allow modeling arbitrary relationships among data \"types\"\n(expected to be yaml or yaml-like) to be able to create novel use-cases. So the next generation mechanism can also\nbe used to model settings and use references to share settings/preferences. It's basically something like a simple,\nnon-indexed, in-memory graph database for modeling relationships that do not require much complexity such that a\nreal graph solution is warranted; however, the problem at hand benefits from describing relationships first and\nthen lazily calculating some result following along the data relationships.\n\nThis newer code is in \"vpd.next.graph\".\n\nAs an additional utility basis, vpd.next.k8s provides utility mechanisms for Kubernetes. These are meant to ease\ntasks managing state (via ConfigMaps) and secrets for python applications. These can be combined with the legacy\nVirtualPathDict mechanisms as well as the vpd.next.graph mechanisms as part of maintaining complex applications\nintended to operate in a Kubernetes context. Note that the official Kubernetes python client is required for Kubernetes\nfunctionality.\n\nMore documentation to come...\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "VirtualPathDictChains. Hierarchical, Addressable Dicts, potentially using YaML",
    "version": "0.9.11",
    "project_urls": {
        "Homepage": "https://github.com/dbotwinick/python-vpd"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "330e95e4e15627e30c2f5ad07a6046f25553b10ac8fdb05e1c8665c21fff552b",
                "md5": "e2aaf6d29ea9f41a79e26c1694d38054",
                "sha256": "836a88dfa0759ffa91cbe5fbf9a84d89c981166d93192739346a7eb40df118ff"
            },
            "downloads": -1,
            "filename": "vpd-0.9.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e2aaf6d29ea9f41a79e26c1694d38054",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 32750,
            "upload_time": "2023-07-29T15:59:33",
            "upload_time_iso_8601": "2023-07-29T15:59:33.826982Z",
            "url": "https://files.pythonhosted.org/packages/33/0e/95e4e15627e30c2f5ad07a6046f25553b10ac8fdb05e1c8665c21fff552b/vpd-0.9.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df710ef1a09794ee02336090ed2243775299d8a159520ae4c2ecabada0692095",
                "md5": "952d5e80c9fab81574027b2c0df64514",
                "sha256": "6f4cb0a01e25c5167100e941a2ef2ee189d46df5220bc1ec6838f3d60133c414"
            },
            "downloads": -1,
            "filename": "vpd-0.9.11.tar.gz",
            "has_sig": false,
            "md5_digest": "952d5e80c9fab81574027b2c0df64514",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 27422,
            "upload_time": "2023-07-29T15:59:36",
            "upload_time_iso_8601": "2023-07-29T15:59:36.175750Z",
            "url": "https://files.pythonhosted.org/packages/df/71/0ef1a09794ee02336090ed2243775299d8a159520ae4c2ecabada0692095/vpd-0.9.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-29 15:59:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dbotwinick",
    "github_project": "python-vpd",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "vpd"
}
        
Elapsed time: 0.09587s