easypath is a lightweight Python toolkit for file, folder, and path workflows on top of pathlib, now expanded with a major advanced utility layer for automation, integrity checks, and data pipelines.
pip install easypathThis release extends the library with 45 new tools focused on high-impact workflows:
- Atomic and resilient file writes
- Backup and restore flows
- File checksum and verification
- Fast search/replace and file grep
- Zip/Tar/Gzip archive workflows
- Directory snapshots + diffing
- Folder synchronization and filtered copy
- NDJSON + CSV append helpers
- JSON deep merge and merge-from-files
- Permission inspection and executable toggles
normalize_pathis_absolute_pathpath_depthcommon_pathsame_path
read_text_safewrite_text_atomicbackup_filerestore_filecopy_if_newerremove_filestouch_fileswait_for_path
file_checksumverify_checksumcompare_file_contentscount_lineshead_filetail_filefind_in_filereplace_in_filegrep_filesmerge_text_filesconcat_binary_fileslist_recent_fileslist_largest_files
make_zip_archiveextract_zip_archivemake_tar_archiveextract_tar_archivegzip_filegunzip_filehardlink_fileduplicate_tree_structure
snapshot_directorydiff_snapshotssync_folderscopy_folder_filtered
read_ndjsonwrite_ndjsonappend_csv_rowjson_mergemerge_json_files
get_path_permissionsmake_executable
from easypath import (
write_text_atomic,
backup_file,
file_checksum,
snapshot_directory,
diff_snapshots,
sync_folders,
merge_json_files,
)
write_text_atomic("data/config.txt", "version=2\n")
backup = backup_file("data/config.txt")
print("backup:", backup)
digest = file_checksum("data/config.txt")
print("sha256:", digest)
before = snapshot_directory("data", include_checksum=False)
write_text_atomic("data/notes.txt", "hello\n")
after = snapshot_directory("data", include_checksum=False)
print(diff_snapshots(before, after))
print(sync_folders("data", "mirror", delete_extras=False, dry_run=True))
print(merge_json_files("base.json", "override.json"))All existing folder/file/path helpers remain available (creation, deletion, move/copy, JSON/CSV read-write, path transforms, permissions, tree listing, and disk usage).
For usage examples across both legacy and new APIs, see DOCUMENTATION.md.