Packages
Watches file system changes and triggers callbacks or process restarts when files are modified, with both synchronous and asynchronous APIs.
Install it if you need file system monitoring for development or production workflows.
Watchdog monitors file system events across Linux, macOS, Windows, and BSD, providing a Python API and command-line utilities to detect file and directory changes in real time.
Install it if you need to monitor file system events; the medium install friction is a one-time cost for reliable, platform-native behavior.
Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.
Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.
Infers file type and MIME type by examining magic number signatures in files or byte buffers, with no external dependencies.
However, the last release was 2022-11-02 with no recent commits, so it may not support the newest file formats or receive bug fixes promptly.
Sanitize and validate filenames and file paths by removing or replacing invalid characters, reserved names, and unprintable characters across multiple platforms (Linux, Windows, macOS, POSIX, and universal).
Install it if you need reliable filename or path validation across platforms; the low friction and clear API make it a straightforward addition to any project…
Provides object-oriented filesystem path handling as a backport for Python versions before 3.4, when pathlib became part of the standard library.
Sets file creation time on Windows systems via Python, allowing you to modify the creation timestamp of files programmatically.
flexparser lets you build parsers by writing dataclasses with a `from_string` method, automatically handling file parsing, error reporting, and structured output with type safety.
Caches the results of expensive computations to disk, automatically detecting when source files change and invalidating stale cached data based on file modification time or content hash.
However, expect no active bug fixes or compatibility updates; evaluate whether your project's stability requirements align with that trade-off.
pyfakefs mocks the Python file system modules to run tests against an in-memory fake filesystem instead of the real disk, with no changes required to the code under test.
Install it if your test suite touches the filesystem.
Backport of Python's standard pathlib module for older Python versions, providing object-oriented filesystem path manipulation.
Provides a unified filesystem abstraction layer that lets you work with local directories, zip files, FTP servers, and other storage backends through a single consistent API.
However, note that maintenance is aging—the last release was 2022-05-02—so if you rely on active development or rapid bug fixes, evaluate whether that matters for…
fcache provides a dictionary-like file-based cache that persists data to disk, with an optional write buffer and Shelf compatibility for simple key-value storage without a database.
However, the dormant maintenance status means you should verify that the package meets your performance and concurrency requirements before adopting it in production;…
Provides faster directory iteration and os.walk() replacement by yielding DirEntry objects with cached file type and stat information, avoiding redundant system calls.
A Python library that provides pathlib-like access to JFrog Artifactory repositories, enabling you to browse, download, upload, and manage artifacts through a filesystem-like interface.
Provides a high-level API for common file-system operations—creating, reading, copying, deleting, and querying files and directories—without external dependencies.
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.
A dict subclass that adds dot-notation access, keypath queries, and normalized I/O for formats like JSON, YAML, CSV, XML, and others.
Install it if you work frequently with nested dicts, multi-format data loading, or want cleaner syntax for accessing deeply nested values—the keypath and I/O features…
gsutil is a command-line tool for managing Google Cloud Storage buckets and objects, supporting operations like creation, deletion, upload, download, listing, and ACL editing.
littlefs-python provides a Python interface to littlefs, a filesystem designed for small embedded systems, allowing creation, inspection, and modification of littlefs filesystem images.
However, verify the license status before use in proprietary contexts, and ensure the bundled littlefs version matches your target system's requirements.
Monitors Linux filesystem events (file creation, modification, deletion) and triggers callbacks when they occur, allowing Python programs to react to filesystem changes in real time.
fatfs-ng wraps ChaN's FatFS library to create, mount, and manipulate FAT filesystems in memory or on disk, with extended directory traversal, file operations, and ESP32 wear-leveling support.
Watches a directory for file changes and triggers code reloads or custom callbacks when files are modified, with both synchronous and asynchronous APIs.
ftputil provides a high-level FTP client library that wraps FTP connections with a virtual file system interface, allowing you to interact with remote FTP servers using file-like objects and functions similar to Python's os, os.path, and shutil modules.
Install it if you need reliable, high-level FTP access in Python.
Builds asynchronous FTP servers in Python with RFC-959 compliance, supporting FTPS, IPv6, and concurrent client handling through event-driven I/O.
However, install friction is high due to backport dependencies (pyasynchat, pyasyncore), and the license status is unclear—verify the license before use in…
Python library for programmatic access to the Artifactory REST API, enabling management of users, groups, repositories, artifacts, builds, and access tokens.
Install it if you need programmatic Artifactory management; the typed API and straightforward dependency chain make it reliable for automation.
pywatchman is a Python client for Watchman, a file watching service that monitors filesystem changes and can trigger actions when matching files change.
Hachoir parses and displays binary files as a tree of typed fields, letting you inspect and edit individual bits, bytes, and structures within any binary stream.
bitmath converts and performs arithmetic on file sizes across SI and NIST prefix units (kB to YiB), with support for human-readable formatting, rich comparisons, and capacity math.
fusepy provides Python bindings to FUSE (Filesystem in Userspace), allowing you to implement custom filesystems in Python that appear as mounted volumes to the operating system.
However, verify compatibility with your Python version and OS before relying on it for production—the last release was 2018-09-17 and the codebase was written for 2x…
Provides a cross-platform abstraction for managing application data directories, logs, and configuration files in standard OS-specific locations.
Install it if your application needs to store data, logs, or config files and you want to respect OS conventions without writing platform detection logic yourself.
Read and write Log ASCII Standard (LAS) files used for borehole geophysical, geological, and petrophysical logging data, supporting LAS versions 1.2 and 2.0.
Provides pattern matching and utility functions for working with file system paths in a cross-platform way.
S3FS provides a PyFilesystem interface to Amazon S3, letting you read, write, and manage files in S3 buckets using standard filesystem operations.
A Python HTTP client library for interacting with IPFS (InterPlanetary File System) nodes, enabling you to add, retrieve, and manage content on IPFS networks through a local or remote daemon.
No—install only if you are maintaining legacy code already using this library.
Provides a pathlib-like Python interface for browsing, downloading, and uploading artifacts to JFrog Artifactory repositories over HTTP.
Provides a more intuitive Python API for working with filesystem paths, wrapping os.path and zipfile operations with sensible defaults for common scripting tasks.
YORM maps Python object attributes bidirectionally to YAML files, automatically synchronizing changes between in-memory objects and text-based storage.
fs.sshfs provides a PyFilesystem2 interface to remote SSH/SFTP servers, letting you read, write, and navigate files over SSH as if they were a local filesystem.
Provides a cross-platform wrapper around os.startfile that opens files and URLs with their default system applications on Windows, macOS, and Linux.
Install it if you need to open files or URLs with system defaults in a portable way.
mfusepy provides Python bindings to libfuse 2 and 3, enabling you to create custom filesystems in userspace that the kernel exposes as mountable volumes.
Install it if you need to build a custom filesystem in Python and have libfuse available on your system.