{"id":41328991,"url":"https://github.com/albmarin/winpath","last_synced_at":"2026-01-23T06:12:15.320Z","repository":{"id":57477745,"uuid":"237696618","full_name":"albmarin/winpath","owner":"albmarin","description":"Retrieves common Windows system paths as Unicode strings","archived":false,"fork":false,"pushed_at":"2020-02-02T23:52:47.000Z","size":14,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-20T00:32:10.182Z","etag":null,"topics":["filesystem","paths","python","system-paths","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/albmarin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-02T00:14:51.000Z","updated_at":"2025-04-24T08:53:40.000Z","dependencies_parsed_at":"2022-09-10T04:23:34.850Z","dependency_job_id":null,"html_url":"https://github.com/albmarin/winpath","commit_stats":null,"previous_names":["git-albertomarin/winpath"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/albmarin/winpath","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albmarin%2Fwinpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albmarin%2Fwinpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albmarin%2Fwinpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albmarin%2Fwinpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albmarin","download_url":"https://codeload.github.com/albmarin/winpath/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albmarin%2Fwinpath/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682039,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filesystem","paths","python","system-paths","windows"],"created_at":"2026-01-23T06:12:14.768Z","updated_at":"2026-01-23T06:12:15.302Z","avatar_url":"https://github.com/albmarin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WinPath\n[![PyPi](https://img.shields.io/pypi/v/winpath.svg)](https://pypi.python.org/pypi/winpath)\n[![Build status](https://codecov.io/gh/git-albertomarin/winpath/branch/master/graph/badge.svg)](https://codecov.io/gh/git-albertomarin/winpath)\n[![Coverage](https://ci.appveyor.com/api/projects/status/foncpfby5exty5e9?svg=true)](https://ci.appveyor.com/project/git-albertomarin/winpath)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://en.wikipedia.org/wiki/MIT_License)\n\nWinPath is a python module for retrieving common Windows system paths as Unicode strings.\nIt is especially useful in cases where the default path to a system file has been changed by the user.\ni.e When a user has changed the default path to their Documents folder.\n\nWinPath is a fork of the original [`WinPaths`](http://ginstrom.com/code/winpaths.html)\nmodule by Ryan Ginstrom. It includes bug fixes for issues present in the\n[`WinPaths`](http://ginstrom.com/code/winpaths.html)\nmodule and allows its inclusion in platform agnostic projects.\n\n# Installing\n\nInstall and update using pip:\n\n```bash\npip install -U winpath\n```\n\n# A Simple Example\n\nWinPath can be imported and used within your own project like so.\n\nThe following example assumes that the user has chosen to sync their Documents directory with Onedrive.\n\n```python\nimport sys\nimport winpath\n\nif sys.platform == \"win32\": # WinPath will only work on Windows\n    my_documents = winpath.get_my_documents()\n    print(my_documents) # C:\\\\Users\\\\username\\\\Onedrive\\\\Documents\n```\n\n# Available Functions\n\n   * `get_local_appdata`: Path to `%LOCALAPPDATA%`\n\n   * `get_appdata`: Path to `%APPDATA%`\n\n   * `get_desktop`: Path to the logged in user's desktop folder\n\n   * `get_programs`: current user -\u003e Start menu -\u003e Programs\n\n   * `get_admin_tools`: current user -\u003e Start menu -\u003e Programs -\u003e Admin tools\n\n   * `get_common_admin_tools`: all users -\u003e Start menu -\u003e Programs -\u003e Admin tools\n\n   * `get_common_appdata`: Path to program data folder\n\n   * `get_common_documents`: Path to public documents folder\n\n   * `get_cookies`: Path to internet explorer cookies folder\n\n   * `get_history`: Path to internet explorer history folder\n\n   * `get_internet_cache`: Path to internet explorer cache folder\n\n   * `get_my_pictures`: Path to the logged in user's pictures folder\n\n   * `get_my_documents`: Path to the logged in user's documents folder\n\n   * `get_program_files`: Path to Windows program files folder\n\n   * `get_program_files_common`: Path to Windows' program files -\u003e common files folder\n\n   * `get_system`: Path to Windows' System32 folder\n\n   * `get_windows`: Path to Windows folder\n\n   * `get_favorites`: Path to the logged in user's favorites folder\n\n   * `get_startup`: current user -\u003e start menu -\u003e programs -\u003e startup\n\n   * `get_recent`: Path to the logged in user's recently used files folder\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbmarin%2Fwinpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbmarin%2Fwinpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbmarin%2Fwinpath/lists"}