From a5047a552c574c0a68893dd587815bfb432e373a Mon Sep 17 00:00:00 2001 From: HERITAGE-XION Date: Sat, 3 Jan 2026 16:02:14 +0100 Subject: [PATCH] Metadata-Scrubber-Tool: initial commit --- .env.example | 5 +++ README.md | 15 +++++++++ docker-compose.yml | 10 ++++++ requirements.txt | Bin 0 -> 326 bytes src/__init__.py | 0 src/__pycache__/__init__.cpython-314.pyc | Bin 0 -> 164 bytes src/__pycache__/main.cpython-314.pyc | Bin 0 -> 1701 bytes src/commands/__init__.py | 1 + src/commands/utils.py | 1 + src/main.py | 38 +++++++++++++++++++++++ 10 files changed, 70 insertions(+) create mode 100644 .env.example create mode 100644 README.md create mode 100644 docker-compose.yml create mode 100644 requirements.txt create mode 100644 src/__init__.py create mode 100644 src/__pycache__/__init__.cpython-314.pyc create mode 100644 src/__pycache__/main.cpython-314.pyc create mode 100644 src/commands/__init__.py create mode 100644 src/commands/utils.py create mode 100644 src/main.py diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..6a81f92b --- /dev/null +++ b/.env.example @@ -0,0 +1,5 @@ +# Environment Variables Example +# Copy this file to .env and fill in your values + +# Example: +# API_KEY=your_api_key_here diff --git a/README.md b/README.md new file mode 100644 index 00000000..21c4e265 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# Metadata Scrubber Tool + +A tool for scrubbing metadata from files. + +## Installation + +```bash +uv pip install -r requirements.txt +``` + +## Usage + +```bash +python -m src.main +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..c38bf62a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3.8' + +services: + app: + build: . + container_name: metadata-scrubber + volumes: + - .:/app + env_file: + - .env diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..50e3b916229b8d0fde24d7c193b65ff22f7f73a9 GIT binary patch literal 326 zcmX|+VG6=96od0y@F>b!r|1vw;0;7J*@kr+T}8dTnwQELZ-wSdUi$r12PuF;m4|9^E=B1tJ zXt?Fdl!Qryr|NK+nW(0%G^Z9uX8X+>u8BWSF-$^6Gh&+QXZ-SYQ;PMAfgc4f0an|ved1Omu<*$TuL;x%b>9NgLV0vkUiub% zgKh$SAyp+yDuAUoEV&>L_yu_enaVRR$Et68Bu?B4sAs#T94ir{v04rS7cT9oS;TLg zjz7Hke&Jd~XjHgSCA3y>$XCP-LXY^Y;1Om!HnX!)h1SbuLbD896e3zFcy`Utg^k!K zm2BS+n9WG3L{Eat6ELIKfwa(bG$gG^`-1K&9kKp$wI_FB2dW%K4?+?qWT|$Wz(D5G z9ISlw>S{@OWB@YWRzlfQLS-#!sY0U(O(Il|>axKr_@7bG28z6F>3PLUUg+;y?AIQ; zm4X_ko1dkx*bQ7It{Y$$U>nz=K)LklEu78vYKm(SS32{!#_$#;ghkj3D8XUi));Xc zxpZ@KIS3r=fG6^N+V*#0~Bbi##|C>5o@?) z-Be<|(nDgbg|y}~szQZKmFloi-i=uINEAW1u~rG(fJS`7>@3FA;8smkh>iiz-(_?e z2sGV5$;^{XcF)<%x8J$eHu4<>rG`5RG&1(R_T<#`{l)vU?KeJYkAAwN|1mtaqa7rW zW^AwBS=&ATv)-Ot`dxc4dg-CMOf%r{*yG@E;Z5tF6IZ?baV)^oGi929ts*5;qAB2E z5fByd7l{bi3c_IF|Du*F4+ni{5ud z$H8!x8_xh~p@Ve4&Ofg69_$(I(RUxJ?}^0XWU0j8bg5)YmrMh&(g+ES4O**IbA6al zUivsKR3ZPk1YlzAs@SU7VJO1lu<|_HcLXv-5ZpWel1ioDkhrcFXz~LuaOy7kh@J<} zydjYbq@zfZ^d~YNBm5Xm0C03;`}Q}t?|LoeQF`Q_+0sELYun>@#_yi}N9KP_S3&Yn lN3fl9hqeP5+SfM$*U2E&*l9jc&OB1}?>^sGkoua4=3n$eXo~;< literal 0 HcmV?d00001 diff --git a/src/commands/__init__.py b/src/commands/__init__.py new file mode 100644 index 00000000..fef0be3c --- /dev/null +++ b/src/commands/__init__.py @@ -0,0 +1 @@ +# Commands module diff --git a/src/commands/utils.py b/src/commands/utils.py new file mode 100644 index 00000000..d41ddc6d --- /dev/null +++ b/src/commands/utils.py @@ -0,0 +1 @@ +# Utility functions for commands diff --git a/src/main.py b/src/main.py new file mode 100644 index 00000000..15a6fccd --- /dev/null +++ b/src/main.py @@ -0,0 +1,38 @@ +import typer +from rich.console import Console +from rich.panel import Panel + +# Initialize the app and the console +app = typer.Typer() +console = Console() + + +@app.command() +def hello(name: str, formal: bool = False): + """ + Say hello to a user. + If --formal is used, it greets more politely. + """ + if formal: + message = ( + f"Good day to you, [bold magenta]{name}[/bold magenta]. It is a pleasure." + ) + color = "green" + else: + message = f"Yo [bold cyan]{name}[/bold cyan]! What's up?" + color = "yellow" + + # Use Rich to print a pretty panel instead of a boring print() + console.print(Panel(message, title="Greeting System", style=color)) + + +@app.command() +def goodbye(name: str): + """ + Say goodbye. + """ + console.print(f"[red]Goodbye, {name}![/red] 👋") + + +if __name__ == "__main__": + app()