Skip to main content

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


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)

Uploaded Source

Built Distribution

filehelper-1.0.1-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page