python-fsutil
high-level file-system operations for lazy devs.
What it is and what it does
python-fsutil wraps Python's built-in file-system modules into a single, cohesive API with methods for common tasks. It handles file and directory creation, deletion, copying, moving, renaming, reading, writing, compression (tar and zip), metadata queries (size, dates, permissions, hashes), and path manipulation—all without requiring external dependencies.
The package is designed for developers who want to avoid writing boilerplate path-handling and error-checking code. It supports Python 3.10, 3.11, 3.12, 3.13, 3.14 and PyPy, runs on all major operating systems, and is actively maintained. Most methods are straightforward wrappers, though some (like download_file and read_file_from_url) require requests to be installed separately if used.
Use it for:
- Build scripts that need to create, clean, and archive project directories without manual boilerplate
- CLI tools that validate and manipulate file hierarchies (e.g., checking paths exist, getting file sizes, listing contents)
- Data pipeline code that reads, transforms, and writes JSON or text files in bulk
- Test fixtures that set up and tear down temporary file structures
- Deployment utilities that copy, compress, and organize artifacts across directories
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a high-level API for common file-system operations—creating, reading, copying, deleting, and querying files and directories—without external dependencies.
Yes. It is actively maintained, has no dependencies, carries a permissive license, and offers genuine convenience for file-system work. Install it if you find yourself repeatedly writing path checks, directory creation, or file-copy logic; skip it if your code already uses built-in modules idiomatically.
Install
python-fsutil on PyPI
pip
pip install python-fsutiluv
uv add python-fsutilpoetry
poetry add python-fsutilInstalling python-fsutil
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained (last commit 2026-08-10, release 38 days old) and marked production-stable.
License in practice
MIT license (permissive): you may use, modify, and distribute this package freely in both open-source and proprietary projects, provided you retain the copyright notice and license text.
Quickstart
pip install python-fsutil
import fsutil
# Create a directory
fsutil.create_dir('/path/to/dir')
# Read a file
content = fsutil.read_file('/path/to/file.txt')
# Copy a file
fsutil.copy_file('/source/file.txt', '/dest/file.txt')
Verify before relying
- Performance characteristics when operating on very large directory trees or files
- Whether all methods handle symlinks and special files consistently across platforms
- Exact count of available methods in the public API
Package facts
| License | MIT License Copyright (c) 2020-present Fabio Caccamo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),… (full text in the JSON record) (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 38 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,517,153/month — #3,822 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python_fsutil-0.17.0-py3-none-any.whl
Keywords: python, file, system, util, utils, utility, utilities, dir, directory, path, fs, os, shutil, glob
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
fsProvides a unified filesystem abstraction layer…
permissive · top 5,000 on PyPI
fs-s3fsS3FS provides a PyFilesystem interface to…
permissive · top 15,000 on PyPI
ftputilftputil provides a high-level FTP client…
permissive · top 15,000 on PyPI
fsspecfsspec provides a unified filesystem interface…
unclear · top 100 on PyPI
win32-setctimeSets file creation time on Windows systems via…
permissive · top 5,000 on PyPI
pathlib-abcProvides abstract base classes for implementing…
permissive · top 1,000 on PyPI
pathtoolsProvides pattern matching and utility functions…
permissive · top 15,000 on PyPI
gsutilgsutil is a command-line tool for managing…
permissive · top 5,000 on PyPI
path.pyProvides Path objects that wrap filesystem…
permissive · top 15,000 on PyPI
dirhashComputes a single hash value for an entire…
permissive · top 5,000 on PyPI