{"id":21687,"library":"pathlib3x","title":"pathlib3x","description":"A backport of Python 3.10's pathlib module to Python 3.6-3.9 (now 3.8+) with a few extensions. It aims to provide a pure-Python drop-in replacement for pathlib.Path with additional features like globbing and pattern matching from later versions. Current version: 2.0.3, release cadence is low.","status":"maintenance","version":"2.0.3","language":"python","source_language":"en","source_url":"https://github.com/bitranox/pathlib3x","tags":["pathlib","backport","filesystem","path"],"install":[{"cmd":"pip install pathlib3x","lang":"bash","label":"default"}],"dependencies":[],"imports":[{"note":"Standard library pathlib is different, especially on older Python versions.","wrong":"from pathlib import Path","symbol":"Path","correct":"from pathlib3x import Path"}],"quickstart":{"code":"from pathlib3x import Path\n\np = Path('/tmp')\nprint(p.exists())\n\n# Using extended features (e.g., glob with pattern matching)\nfor f in p.glob('**/*.txt'):\n    print(f)","lang":"python","description":"Basic usage mimicking pathlib with extended features."},"warnings":[{"fix":"Remove pathlib3x dependency and use `from pathlib import Path`.","message":"Python 3.10+ users: pathlib3x is unnecessary; use the standard library.","severity":"deprecated","affected_versions":">=3.10"},{"fix":"If performance is critical, consider using `pathlib` from stdlib or `scandir`.","message":"pathlib3x is pure Python, not implemented in C like the stdlib pathlib. Performance may be notably slower for large directory trees.","severity":"gotcha","affected_versions":"all"},{"fix":"Update Python to 3.8+ if pinned to pathlib3x>=2.0.0.","message":"pathlib3x 2.0.0 dropped Python 3.6 and 3.7 support. Only 3.8+ is supported.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install pathlib3x` in the correct environment.","cause":"Package not installed or environment mismatch.","error":"ModuleNotFoundError: No module named 'pathlib3x'"},{"fix":"Use `from pathlib3x import Path` instead of `from pathlib import Path`.","cause":"Mistakenly imported stdlib pathlib instead of pathlib3x.","error":"AttributeError: module 'pathlib' has no attribute 'Path'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}