windows-pathlib


Namewindows-pathlib JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/fa0311/windows_pathlib
SummaryBest Practices for Handling Paths in Windows.
upload_time2023-08-31 02:26:55
maintainer
docs_urlNone
authoryuki
requires_python
licenseMIT
keywords pathlib
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # windows_pathlib

Best Practices for Handling Paths in Windows.

Have you written code like this?

```python
import os
import pathlib as Path

# In Windows, the desktop can be changed to any location. The desktop is not necessarily located in the home directory.
print(Path(os.path.expanduser("~/Desktop")))

# This does not work.
print(Path("%APPDATA%/Microsoft"))

```

windows_pathlib can be used for concise writing.

```python
from windows_pathlib import WindowsPathlib as Path

# C:\Users\username\Desktop
print(Path.desktop())

# C:\Users\username\AppData\Roaming\Microsoft
print(Path("%APPDATA%/Microsoft"))
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fa0311/windows_pathlib",
    "name": "windows-pathlib",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "pathlib",
    "author": "yuki",
    "author_email": "yuki@yuki0311.com",
    "download_url": "https://files.pythonhosted.org/packages/fa/2a/e0733dbad368b96561cdf6b72fe9efa8d1d7cf66bd34627b2fdc055db579/windows_pathlib-0.0.1.tar.gz",
    "platform": null,
    "description": "# windows_pathlib\r\n\r\nBest Practices for Handling Paths in Windows.\r\n\r\nHave you written code like this?\r\n\r\n```python\r\nimport os\r\nimport pathlib as Path\r\n\r\n# In Windows, the desktop can be changed to any location. The desktop is not necessarily located in the home directory.\r\nprint(Path(os.path.expanduser(\"~/Desktop\")))\r\n\r\n# This does not work.\r\nprint(Path(\"%APPDATA%/Microsoft\"))\r\n\r\n```\r\n\r\nwindows_pathlib can be used for concise writing.\r\n\r\n```python\r\nfrom windows_pathlib import WindowsPathlib as Path\r\n\r\n# C:\\Users\\username\\Desktop\r\nprint(Path.desktop())\r\n\r\n# C:\\Users\\username\\AppData\\Roaming\\Microsoft\r\nprint(Path(\"%APPDATA%/Microsoft\"))\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Best Practices for Handling Paths in Windows.",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/fa0311/windows_pathlib"
    },
    "split_keywords": [
        "pathlib"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "be7b79e4b80a32e92ab00ed3dda2c291a45b40aa1cdb78af05c2df65983a3bf7",
                "md5": "7a2cd4a5ee74887e3e2cb42226f0aa3e",
                "sha256": "ed82734d9cca6760ee3e17fbfe1dddb24f74b6b718442034af01562f2e17c53b"
            },
            "downloads": -1,
            "filename": "windows_pathlib-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7a2cd4a5ee74887e3e2cb42226f0aa3e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2537,
            "upload_time": "2023-08-31T02:26:53",
            "upload_time_iso_8601": "2023-08-31T02:26:53.632100Z",
            "url": "https://files.pythonhosted.org/packages/be/7b/79e4b80a32e92ab00ed3dda2c291a45b40aa1cdb78af05c2df65983a3bf7/windows_pathlib-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fa2ae0733dbad368b96561cdf6b72fe9efa8d1d7cf66bd34627b2fdc055db579",
                "md5": "d183629cb19c0f791725ce208effe849",
                "sha256": "2a65d0e722b8d3d10ae20ed982df055fdb56727c2798df55ae418c7504f7f836"
            },
            "downloads": -1,
            "filename": "windows_pathlib-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d183629cb19c0f791725ce208effe849",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2492,
            "upload_time": "2023-08-31T02:26:55",
            "upload_time_iso_8601": "2023-08-31T02:26:55.269541Z",
            "url": "https://files.pythonhosted.org/packages/fa/2a/e0733dbad368b96561cdf6b72fe9efa8d1d7cf66bd34627b2fdc055db579/windows_pathlib-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-31 02:26:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fa0311",
    "github_project": "windows_pathlib",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "windows-pathlib"
}
        
Elapsed time: 1.47861s