{"id":21459927,"url":"https://github.com/juftin/pathlibrs","last_synced_at":"2026-05-20T02:44:28.235Z","repository":{"id":237420200,"uuid":"694462085","full_name":"juftin/pathlibrs","owner":"juftin","description":"A ⚡️fast⚡️ implementation of the pathlib.Path class. Written in Rust, built for Python.","archived":false,"fork":false,"pushed_at":"2023-09-21T05:31:51.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T14:17:03.610Z","etag":null,"topics":["maturin","pathlib","pyo3","python","rust"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juftin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-21T03:37:55.000Z","updated_at":"2023-09-21T04:00:12.000Z","dependencies_parsed_at":"2024-05-01T16:21:09.613Z","dependency_job_id":"9837d0e3-28f6-475a-ac5c-0de0412d33e5","html_url":"https://github.com/juftin/pathlibrs","commit_stats":null,"previous_names":["juftin/pathlibrs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juftin%2Fpathlibrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juftin%2Fpathlibrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juftin%2Fpathlibrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juftin%2Fpathlibrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juftin","download_url":"https://codeload.github.com/juftin/pathlibrs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243975378,"owners_count":20377567,"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":["maturin","pathlib","pyo3","python","rust"],"created_at":"2024-11-23T06:37:12.189Z","updated_at":"2026-05-20T02:44:23.201Z","avatar_url":"https://github.com/juftin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# pathlib.rs\n\nA ⚡️fast⚡️ implementation of the [pathlib.Path](https://docs.python.org/3/library/pathlib.html) class.\nWritten in Rust, built for Python.\n\n## Usage\n\n```python\nfrom pathlibrs import Path\n\np = Path(\"foo/bar\")\np.mkdir(parents=True)\nbaz_file = p / \"baz.txt\"\nbaz_file.write_text(\"Hello, world!\")\n```\n\n## Performance\n\n`pathlibrs` is much faster than the standard library's `pathlib` module\nfor certain operations. For example, traversing a directory tree can be\n~4x faster:\n\n```python\nfrom pathlib import Path\nfrom pathlibrs import Path as PathRS\n\np = Path(\"~/Downloads\")\nr = PathRS(\"~/Downloads\")\n\n%timeit\nlist(p.glob(\"**/*\"))\n# 1.03 s ± 6.04 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n\n%timeit\nlist(r.glob(\"**/*\"))\n# 253 ms ± 1.04 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuftin%2Fpathlibrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuftin%2Fpathlibrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuftin%2Fpathlibrs/lists"}