
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
rexpand-pyutils-file
Advanced tools
A comprehensive Python utility package for file system operations, providing easy-to-use functions for reading, writing, finding, and downloading files.
You can install the package using pip:
pip install rexpand-pyutils-file
from rexpand_pyutils_file import read_file, write_file, find_files
# Read a JSON file
data = read_file("path/to/file.json")
# Write data to a CSV file
write_file("path/to/output.csv", data)
# Find all CSV files in a directory
csv_files = find_files("path/to/directory", file_suffix="csv")
read_file(path, verbose=None, encoding=None, excel_sheet_name=None)
: Read a file (supports .json, .csv, .xlsx, .html, .txt, .log, .md)write_file(path, data, verbose=None, encoding=None, csv_and_excel_overwrite=True, csv_fieldnames=None, excel_sheet_name="Sheet1", excel_enable_str_conversion=False)
: Write data to a filedownload_file(url, file_path_without_extension, verbose=None)
: Download a file from a URLunzip_file(path, output_path=None, verbose=None)
: Unzip a gzip (.gz) filefind_files(path, ignored_file_set=None, file_suffix=None, recursive=False)
: Find files in a directoryfind_folders(path, ignored_folder_set=None, recursive=False)
: Find folders in a directoryrefine_path(path)
: Refine a path with cross-platform supportThis project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Python utilities for file system operations
We found that rexpand-pyutils-file demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.