tree-handler
OS wrapper to grab specific/all files from all the subdirectories of the given folder, process them with your algorithm and save the output retaining the same input structure
Installation
You can easily install the package using
pip install treeHandler
Usage
This package will help you to find all/specific files from the subdirectories of a given directory. Thus you can process these files and save them retaining the complex tree structure.
eg: If you have a complex tree structured folder and you need to get all the files from the folder, use
from treeHandler import treeHandler
th=treeHandler()
fileTuple=th.getFiles('inputFolder')
### fileTuple is a list of tuples with each tuple containing file names and their folder path
### eg: [('image11.jpg', 'sampleData/folder1'),('image21.jpg', 'sampleData/folder2')]
### If you need to filter specific file extensions eg: .jpg,.png
th.getFiles('inputFolder',['jpg','png'])
### If you need case sensitive (only lowercase 'jpg')
th.getFiles('inputFolder',['jpg'],caseSensitive=True)
The output will be obtained instantly.
Authors
- Sreekiran A R - Senior Analytics Consultant, AI Labs, Bridgei2i Analytics Solutions - Github , Stackoverflow
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Metadata
Release files for treeHandler 1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| treeHandler-1.5.tar.gz | 2.3 kB | Without provenance | Details for treeHandler-1.5.tar.gz |
Release files / treeHandler-1.5.tar.gz
| Download URL | treeHandler-1.5.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52e61b25191ae8a8c8fcc12c559b495034964adeee1f225bd4d60903f6e45217
|
|
BLAKE2b-256 checksum How to use checksums |
6a330289481b177ee22527689ee5a1bc5218214d3b2f225094aa6e5bb55695b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.2
|
Security for treeHandler 1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.