Skip to main content

Sage is a python package that offers a detailed overview of folder contents and streamlines the process of copying and managing directories.

Project description

Sage

Sage is a python package that offers a detailed overview of folder contents and streamlines the process of copying and managing directories.It is designed to enhance productivity and simplify file management. It provides a detailed of folder contents, including the file types, size, and subfolder structures, enabling quick insights into the organization of your directory.

Beyond analysis, the tool offers robust functionality for copying and cloning entire directories, ensuring seamless management and replication of data environments. Whether you're organizing complex project files, backing up critical datasets, or duplicating environments, this tool is built to optimize your workflow.

Installation

pip install sage_directory

Usage

Main Features

Comprehensive Folder Overview Generate detailed summaries of folder contents, including file types, sizes, and subfolder structures,

import sage_directory

sage.get_folder_overview('.')
Path Folder Name Is Folder? File Name File Size (Bytes) File Extensions Number of Files in Folder Depth
./bathoom.py . False bathoom_cal.py 2151 .py 0 0
./kitchen.png . False kitchen.png 2151 .png 0 0
./shops shops True N/A 0 N/A 2 1

Selective Copying Choose a specific file to overwrite another in multiple directories

import sage_directory

# overwrites the entered filename (basement.png) in the renovated_kitchen folder with the file in kitchen_catelog folder

sage_directory.batch_file_overwrite(./kitchen_catelog, ./renovated_kitchen, "basement.png")

Batch Operations Perform operations on multiple directories

import sage_directory

# only copies 10 folders that are in the kitchen_catelog that share the same folder names as those in the old_kitchen folder in the renovated_kitchen folder

sage_directory.copy_num_folders(./old_kitchen, ./kitchen_catelog, ./renovated_kitchen, 10)

# only copies folders that are in the kitchen_catelog that share the same folder names as those in the old_kitchen folder in the renovated_kitchen folder

sage_directory.copy_folders(./old_kitchen, ./kitchen_catelog, ./renovated_kitchen)

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

sage_directory-0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

sage_directory-0.0.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file sage_directory-0.0.1.tar.gz.

File metadata

  • Download URL: sage_directory-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.13

File hashes

Hashes for sage_directory-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4ea3217a1ccc2369c8daf13b1d36ccabfe608bb6c9c76c0567c5349445ed7eb7
MD5 ab019b1739f1586479c9b2ca4dae7bf0
BLAKE2b-256 9b12d57176f2676eabd6350e55bda73422153aae9daf2f0f9ed672db2097e5f5

See more details on using hashes here.

File details

Details for the file sage_directory-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sage_directory-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 479aab4c3f7bf8f698d1bb5a5403a19957853a9c60d09f3f5c33bc3ebaa3f170
MD5 a90f7a6725cffcc3136303c436ad60a5
BLAKE2b-256 399029549cd718c2f73fd1f9954b5b0df9be33243c556173fb37f605bdaddba2

See more details on using hashes here.

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