{"id":19360795,"url":"https://github.com/shawwn/unixpath","last_synced_at":"2026-06-17T19:06:49.345Z","repository":{"id":62586454,"uuid":"391813600","full_name":"shawwn/unixpath","owner":"shawwn","description":"unix-style path processing functions","archived":false,"fork":false,"pushed_at":"2021-08-02T04:47:50.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T19:24:11.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shawwn.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":"2021-08-02T04:20:19.000Z","updated_at":"2021-08-03T17:40:11.000Z","dependencies_parsed_at":"2022-11-03T22:09:00.164Z","dependency_job_id":null,"html_url":"https://github.com/shawwn/unixpath","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shawwn%2Funixpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shawwn%2Funixpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shawwn%2Funixpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shawwn%2Funixpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shawwn","download_url":"https://codeload.github.com/shawwn/unixpath/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240475311,"owners_count":19807305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-10T07:19:25.452Z","updated_at":"2025-11-16T19:02:26.033Z","avatar_url":"https://github.com/shawwn.png","language":"Python","funding_links":["https://www.patreon.com/shawwn)!","https://www.patreon.com/shawwn"],"categories":[],"sub_categories":[],"readme":"# unixpath\n\n\u003e unix-style path processing functions\n\n\n## Why?\n\nMy goal was to provide `posixpath` path processing functions in pure Python (e.g. `normpath`, `join`, `split`, etc) *minus* any functions that rely on any kind of \"filesystem\" concept (`stat`, etc).\n\nBasically, this is a \"minimum viable unix path processing framework.\" Path processing functions are useful for e.g. ML libraries that want to use unix-style paths to refer to model variables.\n\n(Honestly `unixpath` is kind of pointless. Its functions are copy-pasted from `posixpath`, so why not just `import posixpath` and not worry about the extra dependency on `unixpath`? Answer: because I was curious how Python implemented their unix path processing functions, so I made this library as a learning exercise.)\n\n\n## Install\n\n```\npython3 -m pip install -U unixpath\n```\n\n## Usage\n\n```py\nimport unixpath\nunixpath.join('a', 'b') # 'a/b'\nunixpath.join('a', 'b', '..', 'c') # 'a/b/../c'\nunixpath.normpath('a/b/../c') # 'a/c'\n```\n\n## License\n\nMIT\n\n## Contact\n\nA library by [Shawn Presser](https://www.shawwn.com). If you found it useful, please consider [joining my patreon](https://www.patreon.com/shawwn)!\n\nMy Twitter DMs are always open; you should [send me one](https://twitter.com/theshawwn)! It's the best way to reach me, and I'm always happy to hear from you.\n\n- Twitter: [@theshawwn](https://twitter.com/theshawwn)\n- Patreon: [https://www.patreon.com/shawwn](https://www.patreon.com/shawwn)\n- HN: [sillysaurusx](https://news.ycombinator.com/threads?id=sillysaurusx)\n- Website: [shawwn.com](https://www.shawwn.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshawwn%2Funixpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshawwn%2Funixpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshawwn%2Funixpath/lists"}