pathable


Namepathable JSON
Version 0.4.4 PyPI version JSON
download
home_pagehttps://github.com/p1c2u/pathable
SummaryObject-oriented paths
upload_time2025-01-10 18:43:13
maintainerNone
docs_urlNone
authorArtur Maciag
requires_python<4.0.0,>=3.7.0
licenseApache-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": null,
    "docs_url": null,
    "requires_python": "<4.0.0,>=3.7.0",
    "maintainer_email": null,
    "keywords": "dict, dictionary, list, lookup, path, pathable",
    "author": "Artur Maciag",
    "author_email": "maciag.artur@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/67/93/8f2c2075b180c12c1e9f6a09d1a985bc2036906b13dff1d8917e395f2048/pathable-0.4.4.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\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Object-oriented paths",
    "version": "0.4.4",
    "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": "7debb6260b31b1a96386c0a880edebe26f89669098acea8e0318bff6adb378fd",
                "md5": "334edf9705b69220e660481632268209",
                "sha256": "5ae9e94793b6ef5a4cbe0a7ce9dbbefc1eec38df253763fd0aeeacf2762dbbc2"
            },
            "downloads": -1,
            "filename": "pathable-0.4.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "334edf9705b69220e660481632268209",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0.0,>=3.7.0",
            "size": 9592,
            "upload_time": "2025-01-10T18:43:11",
            "upload_time_iso_8601": "2025-01-10T18:43:11.880125Z",
            "url": "https://files.pythonhosted.org/packages/7d/eb/b6260b31b1a96386c0a880edebe26f89669098acea8e0318bff6adb378fd/pathable-0.4.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67938f2c2075b180c12c1e9f6a09d1a985bc2036906b13dff1d8917e395f2048",
                "md5": "7a2e844ac997eb9ca91f72b15c033ad3",
                "sha256": "6905a3cd17804edfac7875b5f6c9142a218c7caef78693c2dbbbfbac186d88b2"
            },
            "downloads": -1,
            "filename": "pathable-0.4.4.tar.gz",
            "has_sig": false,
            "md5_digest": "7a2e844ac997eb9ca91f72b15c033ad3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0.0,>=3.7.0",
            "size": 8124,
            "upload_time": "2025-01-10T18:43:13",
            "upload_time_iso_8601": "2025-01-10T18:43:13.247583Z",
            "url": "https://files.pythonhosted.org/packages/67/93/8f2c2075b180c12c1e9f6a09d1a985bc2036906b13dff1d8917e395f2048/pathable-0.4.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-10 18:43:13",
    "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.38482s