deep_merge


Namedeep_merge JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://github.com/halfak/deep_merge
SummaryA simple utility for merging python dictionaries.
upload_time2018-03-27 20:38:34
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.
            # Deep Merge

This library contains a simple utility for deep-merging dictionaries and the
data structures they contain.

* **Installation:** ``pip install deep_merge``
* **Documentation:** https://pythonhosted.org/deep_merge
* **Repositiory:** https://github.com/halfak/deep_merge
* **License:** MIT

## Example

    >>> import deep_merge
    >>>
    >>> print(deep_merge.merge({'a': {'b': 10}}, {'a': {'c': 5}}))
    {'a': {'b': 10, 'c': 5}}

Note that the first parameter is modified and will be assigned the return value.

    >>> d1 = {}
    >>> d2 = {'a': 1}
    >>> deep_merge.merge(d1, d2)
    >>> print(d1)
    {'a': 1}

## Author
* Aaron Halfaker -- https://github.com/halfak

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/halfak/deep_merge",
    "name": "deep_merge",
    "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/a5/25/aa35c20acd8a4f515f9e4c8dee4c7731446234101a6dae0c34cf498bb342/deep_merge-0.0.4.tar.gz",
    "platform": "",
    "description": "# Deep Merge\n\nThis library contains a simple utility for deep-merging dictionaries and the\ndata structures they contain.\n\n* **Installation:** ``pip install deep_merge``\n* **Documentation:** https://pythonhosted.org/deep_merge\n* **Repositiory:** https://github.com/halfak/deep_merge\n* **License:** MIT\n\n## Example\n\n    >>> import deep_merge\n    >>>\n    >>> print(deep_merge.merge({'a': {'b': 10}}, {'a': {'c': 5}}))\n    {'a': {'b': 10, 'c': 5}}\n\nNote that the first parameter is modified and will be assigned the return value.\n\n    >>> d1 = {}\n    >>> d2 = {'a': 1}\n    >>> deep_merge.merge(d1, d2)\n    >>> print(d1)\n    {'a': 1}\n\n## Author\n* Aaron Halfaker -- https://github.com/halfak\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple utility for merging python dictionaries.",
    "version": "0.0.4",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "a5c6f0d0b844c8538d5226656538a1e6",
                "sha256": "8056b4b43c6dfddf5c7b1feb3a09f1ab1cbd74e8382e43736ea8c5619e8e5a4e"
            },
            "downloads": -1,
            "filename": "deep_merge-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a5c6f0d0b844c8538d5226656538a1e6",
            "packagetype": "bdist_wheel",
            "python_version": "3.5",
            "requires_python": null,
            "size": 5133,
            "upload_time": "2018-03-27T20:38:35",
            "upload_time_iso_8601": "2018-03-27T20:38:35.518432Z",
            "url": "https://files.pythonhosted.org/packages/e0/07/94e20c6407d93bb7800cf316762d64a6c9fb7b76a1163f90a7af4c3ae1da/deep_merge-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "18aef6f77e11db68c83d8f20a253b3e8",
                "sha256": "b54415f90934c42e334114e2864cb4d4e7335b34ad396e35ad8610c96065a47e"
            },
            "downloads": -1,
            "filename": "deep_merge-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "18aef6f77e11db68c83d8f20a253b3e8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2946,
            "upload_time": "2018-03-27T20:38:34",
            "upload_time_iso_8601": "2018-03-27T20:38:34.437450Z",
            "url": "https://files.pythonhosted.org/packages/a5/25/aa35c20acd8a4f515f9e4c8dee4c7731446234101a6dae0c34cf498bb342/deep_merge-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2018-03-27 20:38:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "halfak",
    "github_project": "deep_merge",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "deep_merge"
}
        
Elapsed time: 0.05312s