Helper functions to manage files
Project description
FileHelper - Easy File Enumeration
FileHelper is designed to easily allow simple file manipulations and enumerations with minimal boilerplate code.
Installation
You can install FileHelper from PyPi
pip install filehelper
Usage
The main benefit of FileHelper
is the ease of enumeration over files/folders
import filehelper
# Find all python files in the current directory
py_files = filehelper.list_files('.', patterns['*.py'])
# Find all text and json files in the current directory and subdirectories
txt_files = filehelper.list_files('.', patterns=['*.txt', '*.json'], recursive=True)
# List all folders in the home directory
folders = filehelper.list_folders('/home')
# List all folders in a user's directory
folders = filehelper.list_folders('/home/user', recursive=True)
Authors
All of the work and vision was developed by Jonathan Grizou.
Graham Keenan updated the code to Python3 and removed the dependency on os
and replace with pathlib
Codebase is currently maintained by Graham Keenan
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
filehelper-1.0.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for filehelper-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c7ca3eb6a005f46ccc59a0907f8ae56299046bd476140022f1cc115fb6081b9 |
|
MD5 | ef917bce3677f7eaf48262201f2f645a |
|
BLAKE2b-256 | 9d1fc726eac8a30294b158796185588a511e80453e204a7450d6d524681959d0 |