Skip to main content

📁 futilz – A Simple & Powerful File Utility Library

🌟 Overview

futilz is a lightweight and efficient Python utility library designed to simplify file system operations, checksum generation, and file downloading. Whether you're working on automation scripts, data processing, or general file management, futilz provides essential tools to make your tasks easier.

With futilz, you can:
✅ Locate the root directory of a Git repository.
✅ Manage directories and create nested folders effortlessly.
✅ Normalize and clean file paths to avoid inconsistencies.
✅ Retrieve and validate file extensions (including images and fonts).
✅ Search for files recursively with filtering options.
✅ Compute SHA hash values for files and content to ensure integrity.
✅ Download files from URLs while handling encoding formats.
✅ And more in the future! 🚀

🚀 Features

🔍 Repository & Path Management

  • Find Git Repository Root – Detects the base directory of a Git repository.
  • Fix File Paths – Cleans up redundant path elements like // or /./.
  • Create Directories – Ensures nested directories exist without errors.

📂 File Operations

  • File Extension Handling – Retrieve and validate file extensions.
  • Detect Image & Font Files – Supports formats like PNG, JPG, SVG, TTF, and more.
  • Recursive File Search – Search directories while filtering by file type.

🔒 Data Integrity & Checksums

  • Generate SHA Hashes – Compute secure hash values (SHA-1, SHA-256, etc.) for file verification.
  • Hash Content & Files – Validate file integrity using checksum functions.

🌐 File Downloading

  • Download Any File – Fetch files from the web with built-in support for handling encoding issues.
  • Automatic Directory Creation – Ensures the destination folder exists before saving files.

🔮 Future Enhancements

  • More file-handling utilities 🔄
  • Additional hashing algorithms 🔑
  • Performance optimizations ⚡
  • And much more to come! 🚀

📥 Installation

Installing futilz is quick and easy with pip:

pip install futilz

🔧 Usage Examples

1️⃣ Find All .txt Files in a Directory

import futilz

files = futilz.find(dirname=".", extensions=["txt"])
print(files)

2️⃣ Generate a SHA-256 Hash of a String

import futilz

hash_value = futilz.shasum_content("Hello, World!", algo="sha256")
print(hash_value)

3️⃣ Download a File from a URL

import futilz

futilz.download_file("https://example.com/sample.txt", "downloads/sample.txt")
print("Download complete!")

🎯 Why Use futilz?

✔️ Lightweight & Efficient – Minimal dependencies, optimized for performance.
✔️ Easy to Use – Simple, intuitive functions for common tasks.
✔️ Versatile – Suitable for automation, data processing, and file management.
✔️ Cross-Platform – Works on Windows, macOS, and Linux.
✔️ Actively Improved – More features and optimizations coming soon!


📢 Connect with Me

💻 GitHub: github.com/abdelmathin/futilz
🌍 Website: abdelmathin.com
🔗 LinkedIn: linkedin.com/in/abdelmathin

💡 Contribute: Have suggestions or improvements? Feel free to contribute!
🐞 Issues: Found a bug? Open an issue on the GitHub repository.
📜 License: Open-source and free to use under the MIT License.

🚀 Start using futilz today and make file handling in Python easier than ever! 🎉

Metadata

Release files for futilz 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for futilz 0.1.2
File Size Uploaded
futilz-0.1.2.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for futilz 0.1.2
File Interpreter ABI Platform
futilz-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / futilz-0.1.2.tar.gz

Download URL futilz-0.1.2.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6188dbd07b4c15a7e8c7e12e7d772c33ff2fc5bad5dc875da21726e0e26b1aa7
BLAKE2b-256 checksum
How to use checksums
6ee969ad8999548273f077ec8e1ca8a6ab21a09a0657d3736c8caf1422fb46ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / futilz-0.1.2-py3-none-any.whl

Download URL futilz-0.1.2-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a23b7fa7e2040d161342fe8d0f43d06e9e31f8d5acbef80ef69c2dbf4ab11193
BLAKE2b-256 checksum
How to use checksums
08ec244804eedc602a299e75782991350e86abb5a57b0b15675594a7396a23d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page