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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file filehelper-1.0.1.tar.gz.

File metadata

  • Download URL: filehelper-1.0.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5

File hashes

Hashes for filehelper-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fd3f1b3b629d6a6f050d0f6929c698cad2f9e49eb39869ea606af21cadc068b3
MD5 d8decadafdf6c08d3ff5140a9fcc434d
BLAKE2b-256 5b514a83068c517e3a2cbab0da037f3ec00253b102fed83cfbd6872f7afc141b

See more details on using hashes here.

File details

Details for the file filehelper-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: filehelper-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5

File hashes

Hashes for filehelper-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c7ca3eb6a005f46ccc59a0907f8ae56299046bd476140022f1cc115fb6081b9
MD5 ef917bce3677f7eaf48262201f2f645a
BLAKE2b-256 9d1fc726eac8a30294b158796185588a511e80453e204a7450d6d524681959d0

See more details on using hashes here.

Supported by

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