pathable


Namepathable JSON
Version 0.4.3 PyPI version JSON
download
home_pagehttps://github.com/p1c2u/pathable
SummaryObject-oriented paths
upload_time2022-09-01 22:33:33
maintainer
docs_urlNone
authorArtur Maciag
requires_python>=3.7.0,<4.0.0
licenseApache License, Version 2.0
keywords dict dictionary list lookup path pathable
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ********
pathable
********


About
#####

Object-oriented paths

Key features
************

* Traverse resources like paths
* Access resources on demand with separate accessor layer

Usage
#####

.. code-block:: python

   from pathable import DictPath
   
   d = {
       "parts": {
           "part1": {
               "name": "Part One",
           },
           "part2": {
               "name": "Part Two",
           },
       },
   }
   
   dp = DictPath(d)
   
   # Concatenate paths with /
   parts = dp / "parts"
   
   # Stat path keys
   "part2" in parts
   
   # Open path dict
   with parts.open() as parts_dict:
       print(parts_dict)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/p1c2u/pathable",
    "name": "pathable",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7.0,<4.0.0",
    "maintainer_email": "",
    "keywords": "dict,dictionary,list,lookup,path,pathable",
    "author": "Artur Maciag",
    "author_email": "maciag.artur@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/9d/ed/e0e29300253b61dea3b7ec3a31f5d061d577c2a6fd1e35c5cfd0e6f2cd6d/pathable-0.4.3.tar.gz",
    "platform": null,
    "description": "********\npathable\n********\n\n\nAbout\n#####\n\nObject-oriented paths\n\nKey features\n************\n\n* Traverse resources like paths\n* Access resources on demand with separate accessor layer\n\nUsage\n#####\n\n.. code-block:: python\n\n   from pathable import DictPath\n   \n   d = {\n       \"parts\": {\n           \"part1\": {\n               \"name\": \"Part One\",\n           },\n           \"part2\": {\n               \"name\": \"Part Two\",\n           },\n       },\n   }\n   \n   dp = DictPath(d)\n   \n   # Concatenate paths with /\n   parts = dp / \"parts\"\n   \n   # Stat path keys\n   \"part2\" in parts\n   \n   # Open path dict\n   with parts.open() as parts_dict:\n       print(parts_dict)\n\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "Object-oriented paths",
    "version": "0.4.3",
    "project_urls": {
        "Homepage": "https://github.com/p1c2u/pathable",
        "Repository": "https://github.com/p1c2u/pathable"
    },
    "split_keywords": [
        "dict",
        "dictionary",
        "list",
        "lookup",
        "path",
        "pathable"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5b0aacfb251ba01009d3053f04f4661e96abf9d485266b04a0a4deebc702d9cb",
                "md5": "bd5bbc4fc38b3caf17be179b69030b48",
                "sha256": "cdd7b1f9d7d5c8b8d3315dbf5a86b2596053ae845f056f57d97c0eefff84da14"
            },
            "downloads": -1,
            "filename": "pathable-0.4.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bd5bbc4fc38b3caf17be179b69030b48",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7.0,<4.0.0",
            "size": 9587,
            "upload_time": "2022-09-01T22:33:31",
            "upload_time_iso_8601": "2022-09-01T22:33:31.972683Z",
            "url": "https://files.pythonhosted.org/packages/5b/0a/acfb251ba01009d3053f04f4661e96abf9d485266b04a0a4deebc702d9cb/pathable-0.4.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9dede0e29300253b61dea3b7ec3a31f5d061d577c2a6fd1e35c5cfd0e6f2cd6d",
                "md5": "af246636f9d93fca61d1bd5182c9c0f5",
                "sha256": "5c869d315be50776cc8a993f3af43e0c60dc01506b399643f919034ebf4cdcab"
            },
            "downloads": -1,
            "filename": "pathable-0.4.3.tar.gz",
            "has_sig": false,
            "md5_digest": "af246636f9d93fca61d1bd5182c9c0f5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7.0,<4.0.0",
            "size": 8679,
            "upload_time": "2022-09-01T22:33:33",
            "upload_time_iso_8601": "2022-09-01T22:33:33.698099Z",
            "url": "https://files.pythonhosted.org/packages/9d/ed/e0e29300253b61dea3b7ec3a31f5d061d577c2a6fd1e35c5cfd0e6f2cd6d/pathable-0.4.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-09-01 22:33:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "p1c2u",
    "github_project": "pathable",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pathable"
}
        
Elapsed time: 0.73159s