Metadata-Version: 2.4
Name: filehandler6027
Version: 1.1.2
Summary: A simple cross-platform file handling utility
Author-email: Charlie Sky <your@email.com>
License: MIT License
        
        Copyright (c) 2025 charlie6027
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE_local
Dynamic: license-file

# 🎉 filehandler6027

[![PyPI version](https://img.shields.io/pypi/v/filehandler6027.svg)](https://pypi.org/project/filehandler6027/)
[![License](https://img.shields.io/pypi/l/filehandler6027)](https://github.com/charlie6027/filehandler6027/blob/main/LICENSE)

A lightweight Python package to handle file operations (traditional and modern) in a platform-independent way.

---

## 📖 Table of Contents

- [✅ Features](#-features)
- [🚀 Demo](#-demo)
- [📦 Installation](#-installation)
- [🛠️ Optional Enhancements](#-optional-enhancements-if-you-like)

---

## ✅ Features

- Clean file path builder using `~`
- JSON-style data handling
- Traditional and modern mode support

---

## 🚀 Demo

```bash
python examples/demo_celebration_output.py

## 📸 Example Output

Here’s what it looks like when running `FileHandler` in both modes:

![Terminal demo output](docs/img/docs/img/fh_screenshot_dmo.png)


## ➕ Append Example

```python
from filehandler import FileHandler, FileHandleMode

fh = FileHandler(FileHandleMode.Modern)

fh.append('~/Documents/logfile.txt', {'event': 'login', 'user': 'charlie'})
fh.append('~/Documents/logfile.txt', "raw string log entry")

