jaraco.path


Namejaraco.path JSON
Version 3.7.2 PyPI version JSON
download
home_pageNone
Summarymiscellaneous path functions
upload_time2024-12-22 16:39:39
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            .. image:: https://img.shields.io/pypi/v/jaraco.path.svg
   :target: https://pypi.org/project/jaraco.path

.. image:: https://img.shields.io/pypi/pyversions/jaraco.path.svg

.. image:: https://github.com/jaraco/jaraco.path/actions/workflows/main.yml/badge.svg
   :target: https://github.com/jaraco/jaraco.path/actions?query=workflow%3A%22tests%22
   :alt: tests

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Ruff

.. .. image:: https://readthedocs.org/projects/PROJECT_RTD/badge/?version=latest
..    :target: https://PROJECT_RTD.readthedocs.io/en/latest/?badge=latest

.. image:: https://img.shields.io/badge/skeleton-2024-informational
   :target: https://blog.jaraco.com/skeleton

Hidden File Detection
---------------------

``jaraco.path`` provides cross platform hidden file detection::

    from jaraco import path
    if path.is_hidden('/'):
        print("Your root is hidden")

    hidden_dirs = filter(is_hidden, os.listdir('.'))


Directory Builder
-----------------

When testing (and perhaps in other cases), it's often necessary to construct
a tree of directories/files. This project provides a ``build`` function to
simply create such a directory from a dictionary definition::

    from jaraco.path import build
    build(
        {
            'foo': 'Content of foo',
            'subdir': {
                'foo': 'Content of subdir/foo',
            },
        },
    )

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "jaraco.path",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "\"Jason R. Coombs\" <jaraco@jaraco.com>",
    "download_url": "https://files.pythonhosted.org/packages/0a/b4/05c65ee5637d8156863bb34340cb41f6bd316a019b39ae64632502eb5cfa/jaraco_path-3.7.2.tar.gz",
    "platform": null,
    "description": ".. image:: https://img.shields.io/pypi/v/jaraco.path.svg\n   :target: https://pypi.org/project/jaraco.path\n\n.. image:: https://img.shields.io/pypi/pyversions/jaraco.path.svg\n\n.. image:: https://github.com/jaraco/jaraco.path/actions/workflows/main.yml/badge.svg\n   :target: https://github.com/jaraco/jaraco.path/actions?query=workflow%3A%22tests%22\n   :alt: tests\n\n.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json\n    :target: https://github.com/astral-sh/ruff\n    :alt: Ruff\n\n.. .. image:: https://readthedocs.org/projects/PROJECT_RTD/badge/?version=latest\n..    :target: https://PROJECT_RTD.readthedocs.io/en/latest/?badge=latest\n\n.. image:: https://img.shields.io/badge/skeleton-2024-informational\n   :target: https://blog.jaraco.com/skeleton\n\nHidden File Detection\n---------------------\n\n``jaraco.path`` provides cross platform hidden file detection::\n\n    from jaraco import path\n    if path.is_hidden('/'):\n        print(\"Your root is hidden\")\n\n    hidden_dirs = filter(is_hidden, os.listdir('.'))\n\n\nDirectory Builder\n-----------------\n\nWhen testing (and perhaps in other cases), it's often necessary to construct\na tree of directories/files. This project provides a ``build`` function to\nsimply create such a directory from a dictionary definition::\n\n    from jaraco.path import build\n    build(\n        {\n            'foo': 'Content of foo',\n            'subdir': {\n                'foo': 'Content of subdir/foo',\n            },\n        },\n    )\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "miscellaneous path functions",
    "version": "3.7.2",
    "project_urls": {
        "Source": "https://github.com/jaraco/jaraco.path"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ae0298c441a44d434eef26343bcfc66e43acaa7ff7593fd35ee17a5f10857dc4",
                "md5": "749900e20887502b65e20e2e67db7a8c",
                "sha256": "dfe30433a9e37fb359ca91a62513266d48ed60dcb35e91a12ac0fb0d06367183"
            },
            "downloads": -1,
            "filename": "jaraco.path-3.7.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "749900e20887502b65e20e2e67db7a8c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 6585,
            "upload_time": "2024-12-22T16:39:38",
            "upload_time_iso_8601": "2024-12-22T16:39:38.769888Z",
            "url": "https://files.pythonhosted.org/packages/ae/02/98c441a44d434eef26343bcfc66e43acaa7ff7593fd35ee17a5f10857dc4/jaraco.path-3.7.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ab405c65ee5637d8156863bb34340cb41f6bd316a019b39ae64632502eb5cfa",
                "md5": "1e3e22665d2a4c58e632d99fa54b0967",
                "sha256": "1263c4bb481002e83a96e9253915b33241ac3e1ed6219a2793d3121f65159107"
            },
            "downloads": -1,
            "filename": "jaraco_path-3.7.2.tar.gz",
            "has_sig": false,
            "md5_digest": "1e3e22665d2a4c58e632d99fa54b0967",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 12360,
            "upload_time": "2024-12-22T16:39:39",
            "upload_time_iso_8601": "2024-12-22T16:39:39.747219Z",
            "url": "https://files.pythonhosted.org/packages/0a/b4/05c65ee5637d8156863bb34340cb41f6bd316a019b39ae64632502eb5cfa/jaraco_path-3.7.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-22 16:39:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jaraco",
    "github_project": "jaraco.path",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "jaraco.path"
}
        
Elapsed time: 0.70701s