Skip to main content

A global utility package for all the data sorting and inspection needs.

Reason this release was yanked:

non functional

Project description

🌟 gutil: Your Global Utility Toolkit 🛠️

Python Version License

Welcome to gutil, your one-stop solution for all your file and directory management needs! 🚀

🌈 Features

  • 📁 Directory Inspection: Generate beautiful tree structures of your directories
  • 🔍 Smart File Sorting: Copy files with ease using powerful wildcard patterns
  • 🔎 File Search: Find files matching specific criteria across directories
  • 📊 File Organization: Categorize files based on their types
  • 🔄 Duplicate Detection: Identify and manage duplicate files
  • 📏 Large File Finder: Locate files exceeding specified size thresholds
  • 📝 Metadata Extraction: Extract and display file metadata
  • 📊 Directory Size Calculator: Calculate total size of directories
  • 🧹 Empty Directory Cleaner: Identify and remove empty directories
  • 💾 File Backup: Create timestamped backups of files and directories
  • 🗜️ File Archiving: Create and extract zip archives
  • 🔐 File Integrity: Calculate and verify file checksums
  • 🕒 Recent File Finder: Locate recently modified or created files
  • 🏷️ Batch File Renaming: Rename multiple files based on patterns
  • 🔧 Extensible Design: Built with future expansion in mind

🎯 Vision

gutil is on a mission to become the Swiss Army knife of utility packages. We've expanded our capabilities to cover a wide range of file and directory operations!

🚀 Quick Start

Installation

pip install globalutil (currently unavailable, in publishing)

Use Case

gutil

gutil is a Python library that provides utilities for file system operations, including file analysis, searching, organizing, and more.

Installation

You can install gutil using pip:

pip install globalutil

Usage

Example Use Case: Preparing Files for LLM Upload

When working with Large Language Models (LLMs), it's often useful to have all relevant files in a single location and to have a clear understanding of the project structure. Here's how you can use gutil to prepare your files for LLM upload:

from local package

from gutil.filesystem import Inspect, Sort

# Collect all Python files into a single folder
structure = Inspect.generate_copy_structure("./", "./temp")
Sort.copy_structure(structure, patterns=["*.py"])

# Generate a tree structure of your project
tree = Inspect.get_directory_tree(".")
with open("tree.txt", "w") as f:
    f.write(tree)

This code will:

  1. Copy all .py files from the current directory and its subdirectories into a "./temp" folder.
  2. Generate a tree structure of the current directory and save it to "tree.txt".

Now you have:

  • All your Python files collected in the "./temp" folder, ready for easy upload to the LLM.
  • A "tree.txt" file that provides a clear overview of your project structure, which you can also share with the LLM to give it context about your project organization.

This approach makes it easy to provide the LLM with both your code files and a structural overview of your project, enabling more informed and context-aware interactions.

📚 Documentation

For detailed documentation, visit our GitHub Pages.

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

🌟 Show Your Support

If you find this project useful, give it a star on GitHub! ⭐

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

globalutil-0.3.6.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

globalutil-0.3.6-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file globalutil-0.3.6.tar.gz.

File metadata

  • Download URL: globalutil-0.3.6.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for globalutil-0.3.6.tar.gz
Algorithm Hash digest
SHA256 24e2764596768e1287e31de28e38729eb2235aaf35e6d5d41ab386753a3f9c8a
MD5 6aed274fcfb313e7e0523dd0e3247d8b
BLAKE2b-256 dea841b5a27a87b240ae33e9635f32ed2bb2467285e28a576ef650fdd31e64aa

See more details on using hashes here.

File details

Details for the file globalutil-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: globalutil-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for globalutil-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7ad27025f3d3820bb29b8dc69b88d9e8f3b9c20de0c5bd172bacd101b033c818
MD5 5b71e397626f5a6310d0dfc3b6cfe24e
BLAKE2b-256 1f06073e203b53a1a12fa805cdec0b030ebf03f38863a12aa7f4ced422cdce02

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