Skip to main content

A library that extends file management functionality in Python with many useful features in order to save your time and make life easier!

Project description

FinderZ

A library that extends file management functionality in Python with many useful features in order to save your time and make life easier!

finderz-logo

FinderZ uses the os, subprocess, and shutil libraries in order to function properly.

Written in python, this library provides you with different file operation commands as well as info gathering commands on directories as well as files.


CHANGELOG: 1.2.4

  • Release version 1.2.4
  • Added new functions: createFile and removeFile
  • With these new functions, you can easily create and remove singular files.
  • Fixed some README issues.

If you want to create a single file, you can do so like this:

from FinderZ import fileOperands

fileOperands.createFile("FileName", "fileCreationPath")

Note that the "FileName" in this case may also include a file extension.

  • Documentation will be added soon that explains each function and functionality of each function in a detailed manner.

Thank you all for 10K Downloads!

Usage

Installation:

pip3 install FinderZ

Importing:

import FinderZ

Example for finding files with a specific keyword:

FinderZ.fileOperands.findFiles("fileName", "Custom Directory")

Or, if you want to import a single class:

from FinderZ import fileOperands

#Find the file, calling the command "fO":
print(fileOperands.findFiles("fileName", "Custom Path"))

Features

  • Consists of three classes: GatherInfo, fileOperands, and callBash.
  • Find any file with a certain keyword. This means you no longer have to necessarily know the full name of the file in case you forgot it.
  • Gather information such as files in a directory, name of those files, and even a createFiles tool as well as a curated removeFiles tool.
  • Is easy to add new things to the library.
  • In case of functionality restrictions, callBash is a function that calls a bash script in order to expand functionality at its peak.
  • Easy to use.
  • You no longer have to take your time in making those file management algorithms that take a while to complete.
  • Fast and efficient, includes a plethora of other features.

Why?

  • I wanted to showcase how one can easily create a full library that manages files in order to save time in an efficient way.
  • Who wouldn't want a tool to manage their files easily in their python scripts? This will save time!

How?

  • Using iterating techniques for a few of the functions, I was able to complete actions recursively through different directories.
  • The use of the os and subprocess modules (especially os) made everything easier, and what I did was basically structure a library to make life easier.

User notice

  • Some of the functions are only there in case one has to get user input or wants to format things in a more visible way. These functions include askMainDir, and the expandListInfo functions.
  • This project is still a work in progress! It is very flexible in adding new functions. So far, there are still basic functions being added frequently, and some more advanced functions being added gradually. Thanks for being patient, and enjoy!

Services used (Credits):


Make sure to leave a star!

  • If you like this project, leaving a star is what motivates me in doing more. Thank you, and I hope this is useful to all.

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

finderz-1.2.4.tar.gz (19.0 kB view hashes)

Uploaded Source

Built Distribution

finderz-1.2.4-py3-none-any.whl (18.4 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